Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

innotop: fix build on 10.15+ #66699

Closed

Conversation

mitchblank
Copy link
Contributor

The TermReadKey perl package fails to build due to a restriction apple added on dealing with .bundle files by their relative path name. This was diagnosed in 2019 by fink and I am adapting a workaround that @TheSin- proposed then: fink/fink-distributions#461 (comment)

The TermReadKey perl package fails to build due to a restriction
apple added on dealing with .bundle files by their relative path
name.  This was diagnosed in 2019 by fink and I am adapting
a workaround that @TheSin- proposed then:
  fink/fink-distributions#461 (comment)

Also:
- bump the sub-resources to their most recent versions while here
- build failed until I added Devel::CheckLib too
@mitchblank
Copy link
Contributor Author

BTW, this same approach will probably need to be applied to other TermReadKey using formulae: po4a, creduce, and rex.

Will see how this one goes first before attempting those.

# from a relative path -- while in the middle of our build we need to
# refer to them by their full path. Workaround adapted from:
# https://github.com/fink/fink-distributions/issues/461#issuecomment-563331868
inreplace "Makefile", "blib/", "$(shell pwd)/blib/" if r.name == "TermReadKey"
Copy link
Member

@carlocab carlocab Dec 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think $PWD here is actually #{buildpath}/#{r.name}.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, seems safer and simpler to just have make figure it out when it runs. That way it's less likely to break if things get rearranged. It only has to run a few times, so no real performance concern about running a few extra /bin/pwd commands.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, my first thought was to use Pathname.pwd since that is what other fomulae seem to do, but it didn't work for some reason. But I'm pretty happy with this solution so I didn't research further.

@mitchblank mitchblank mentioned this pull request Dec 12, 2020
@chenrui333 chenrui333 added the license License PRs label Dec 12, 2020
@chenrui333
Copy link
Member

@mitchblank thanks a lot for the fix, I will try it out on the po4a side.

@BrewTestBot
Copy link
Member

🤖 A scheduled task has triggered a merge.

@chenrui333
Copy link
Member

I was trying out this fix in po4a side, but it seems not quite working as expected.

@TheSin-
Copy link

TheSin- commented Dec 12, 2020

I forgot how I patched po4a feel free to check the history in fink I might have had to add more

@BrewTestBot BrewTestBot added the outdated PR was locked due to age label Jan 12, 2021
@Homebrew Homebrew locked as resolved and limited conversation to collaborators Jan 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
license License PRs outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants