-
Notifications
You must be signed in to change notification settings - Fork 582
allow absolute GNU install dirs #1315
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
Open
chayleaf
wants to merge
1
commit into
PixarAnimationStudios:dev
Choose a base branch
from
chayleaf:gnu-install-dirs
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMAKE_INSTALL_LIBDIR and CMAKE_INSTALL_INCLUDEDIR are allowed to be absolute, so they shouldn't be concatenated to absolute paths. Instead, use CMAKE_INSTALL_FULL_LIBDIR and CMAKE_INSTALL_FULL_INCLUDEDIR, which are known to be absolute.
Member
|
Filed as internal issue #OSD-430 |
Member
Author
|
Just did that |
robertkirkman
added a commit
to robertkirkman/termux-packages
that referenced
this pull request
Jun 5, 2025
- Context: similar to termux#24956. This might be helpful for a future nested dependency of Blender. - Fixes this error when some projects import `opensubdiv` through CMake, by preventing the generation of a malformed path `/data/data/com.termux/files/usr//data/data/com.termux/files/usr/lib` in `OpenSubdivConfig.cmake`: ``` CMake Error at /data/data/com.termux/files/usr/lib/cmake/OpenSubdiv/OpenSubdivConfig.cmake:11 (message): File or directory /data/data/com.termux/files/usr//data/data/com.termux/files/usr/lib referenced by variable OpenSubdiv_LIB_DIR does not exist ! Call Stack (most recent call first): /data/data/com.termux/files/usr/lib/cmake/OpenSubdiv/OpenSubdivConfig.cmake:28 (set_and_check) cmake/defaults/Packages.cmake:225 (find_package) CMakeLists.txt:23 (include) -- Configuring incomplete, errors occurred! ``` - Copied and pasted from PixarAnimationStudios/OpenSubdiv#1315
robertkirkman
added a commit
to termux/termux-packages
that referenced
this pull request
Jun 6, 2025
- Context: similar to #24956. This might be helpful for a future nested dependency of Blender. - Fixes this error when some projects import `opensubdiv` through CMake, by preventing the generation of a malformed path `/data/data/com.termux/files/usr//data/data/com.termux/files/usr/lib` in `OpenSubdivConfig.cmake`: ``` CMake Error at /data/data/com.termux/files/usr/lib/cmake/OpenSubdiv/OpenSubdivConfig.cmake:11 (message): File or directory /data/data/com.termux/files/usr//data/data/com.termux/files/usr/lib referenced by variable OpenSubdiv_LIB_DIR does not exist ! Call Stack (most recent call first): /data/data/com.termux/files/usr/lib/cmake/OpenSubdiv/OpenSubdivConfig.cmake:28 (set_and_check) cmake/defaults/Packages.cmake:225 (find_package) CMakeLists.txt:23 (include) -- Configuring incomplete, errors occurred! ``` - Copied and pasted from PixarAnimationStudios/OpenSubdiv#1315
termux-pacman-bot
added a commit
to termux-pacman/termux-packages
that referenced
this pull request
Jun 6, 2025
- Context: similar to termux/termux-packages#24956. This might be helpful for a future nested dependency of Blender. - Fixes this error when some projects import `opensubdiv` through CMake, by preventing the generation of a malformed path `/data/data/com.termux/files/usr//data/data/com.termux/files/usr/lib` in `OpenSubdivConfig.cmake`: ``` CMake Error at /data/data/com.termux/files/usr/lib/cmake/OpenSubdiv/OpenSubdivConfig.cmake:11 (message): File or directory /data/data/com.termux/files/usr//data/data/com.termux/files/usr/lib referenced by variable OpenSubdiv_LIB_DIR does not exist ! Call Stack (most recent call first): /data/data/com.termux/files/usr/lib/cmake/OpenSubdiv/OpenSubdivConfig.cmake:28 (set_and_check) cmake/defaults/Packages.cmake:225 (find_package) CMakeLists.txt:23 (include) -- Configuring incomplete, errors occurred! ``` - Copied and pasted from PixarAnimationStudios/OpenSubdiv#1315
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CMAKE_INSTALL_LIBDIRandCMAKE_INSTALL_INCLUDEDIRare allowed to be absolute as per CMake docs, so they shouldn't be concatenated to absolute paths. Instead, useCMAKE_INSTALL_FULL_LIBDIRandCMAKE_INSTALL_FULL_INCLUDEDIR, which are known to be absolute.Absolute
CMAKE_INSTALL_*DIRpaths 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.