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

allow absolute GNU install dirs #893

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

chayleaf
Copy link
Contributor

@chayleaf chayleaf commented Aug 12, 2023

Description

CMAKE_INSTALL_LIBDIR is allowed to be an absolute path as per CMake docs. This patch changes the build script to use CMAKE_INSTALL_FULL_LIBDIR instead, and gets rid of the prefix detection code (many other libraries, such as LLVM, have gotten rid of it already as it's quite finicky in practice due to absolute dirs being allowed).

Absolute CMAKE_INSTALL_LIBDIRs are used at least on NixOS. This is because NixOS packages are allowed to have multiple outputs (e.g. put docs in one dir, headers and other files for development to another, the binaries to a third one), and NixOS isn't FHS-compliant (There's no /usr, each package output has its own directory instead).

GNU Guix is a similar distro, but I'm not sure how CMake packages are built there. Either way, it's good to fully conform to the spec.

Checklist

  • The documentation has been updated.
  • If the PR solves a specific issue, it is set to be closed on merge.

@chayleaf chayleaf changed the title respect GNU install dirs allow absolute GNU install dirs Aug 13, 2023
@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (ae2f14f) 0.00% compared to head (7645f30) 0.00%.

❗ Current head 7645f30 differs from pull request most recent head ddca837. Consider uploading reports for the commit ddca837 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #893   +/-   ##
=======================================
  Coverage    0.00%    0.00%           
=======================================
  Files        1918     1918           
  Lines      188614   188614           
=======================================
  Misses     188614   188614           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@weslleyspereira
Copy link
Collaborator

Hello @chayleaf. Would you be able to merge to/rebase with the current master branch? The script for the Github Actions needed to be updated in a recent commit. Thanks!

CMAKE_INSTALL_LIBDIR is allowed to be an absolute path. Use
CMAKE_INSTALL_FULL_LIBDIR instead.
@weslleyspereira weslleyspereira merged commit fa75a82 into Reference-LAPACK:master Oct 31, 2023
9 checks passed
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