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

Fix problem with make install for AUR package #19846

Merged
merged 3 commits into from
May 26, 2022

Conversation

mppf
Copy link
Member

@mppf mppf commented May 20, 2022

This PR makes 3 improvements motivated by the effort to create an Arch Linux AUR package:

  • adjusts get_bundled_link_args in util/chplenv/third_party_utils.py to fix a problem with falling back on a -l flag if the .la file for the library is missing since the AUR install process removes the .la files. This fallback logic originated in Fall back to plain -lpkg, when third-party 'pkg.la' doesn't satisfy. #15000 but was disrupted by later changes to that function.
  • adjusts chpl --print-chpl-settings to print out all internal settings if --devel is also passed (to make it easier to debug problems with chplenv scripts)
  • adjusts install.sh to only consider it a staged install if the stage directory is not the empty string (since the Makefile calling it always passes --stage=${DESTDIR}. As far as I know, this does not change the behavior of install.sh, but it fixes something that would probably be confusing if relied upon in more ways.

Reviewed by @ronawho - thanks!

  • full local testing

@mppf mppf mentioned this pull request May 20, 2022
mppf added 3 commits May 20, 2022 16:40
Because `make install` always passes --stage= but it might be empty

---
Signed-off-by: Michael Ferguson <[email protected]>
This logic originated in PR chapel-lang#15000 but was extended in a way that caused
it to longer work since then with other PRs.

---
Signed-off-by: Michael Ferguson <[email protected]>
@mppf mppf force-pushed the adjust-install branch from de07eed to 027d84a Compare May 20, 2022 20:40
@mppf mppf requested a review from ronawho May 20, 2022 20:41
@mppf mppf changed the title Adjust install Fix problem with make install for AUR package May 20, 2022
@mppf mppf merged commit 55ea9c7 into chapel-lang:main May 26, 2022
@mppf mppf deleted the adjust-install branch May 26, 2022 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants