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

Bash completions file from modules/tools/contrib not installed into installation prefix #434

Closed
mhuijgen opened this issue Dec 11, 2023 · 3 comments
Assignees

Comments

@mhuijgen
Copy link

Describe the bug
When installing into a prefix with make DESTDIR=/my/custom/path install the bash completion script will still be copied to the systems root /etc/bash_completion.d instead of $DESTDIR/etc/bash_completion.d
This fails the install because the system is not writable.

To Reproduce
Steps to reproduce the behavior. For example:
Build and then run make install with DESTDIR set to a writeable path.

Expected behavior
The bash script should be installedinto the installation prefix

Output/Screenshots

-- Installing: /etc/bash_completion.d/ifm3d_completions
CMake Error at modules/tools/contrib/cmake_install.cmake:54 (file):
  file INSTALL cannot copy file
  "/home/builder/workspace/ifm-ifm3d/build-debian-bullseye-x86_64/ifm3d-prefix/src/ifm3d-build/modules/tools/ifm3d_completions"
  to "/etc/bash_completion.d/ifm3d_completions": Permission denied.
Call Stack (most recent call first):
  modules/tools/cmake_install.cmake:52 (include)
  cmake_install.cmake:60 (include)

Proposed Solution
Per cmake docs https://cmake.org/cmake/help/latest/command/install.html a relative path will be interpreted relative to the installation prefix.

On line

DESTINATION /etc/bash_completion.d

the leading / from the DESTINATION path /etc/bash_completion.d should be removed.

@inbangsa
Copy link
Collaborator

@mhuijgen Thanks for this, I confirm the issue and will be resolved in next release.

ifm-csr pushed a commit that referenced this issue Jan 9, 2024
ifm-csr pushed a commit that referenced this issue Jan 9, 2024
Download websocketpp  at compile time & fix for bug #434 from github

Closes #264

See merge request syntron/support/csr/ifm3d/ifm3d!350
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 14, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

BigBoot pushed a commit that referenced this issue Oct 25, 2024
BigBoot pushed a commit that referenced this issue Oct 25, 2024
Download websocketpp  at compile time & fix for bug #434 from github

Closes #264

See merge request syntron/support/csr/ifm3d/ifm3d!350
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants