Skip to content

Conversation

dforsi
Copy link
Contributor

@dforsi dforsi commented Apr 1, 2023

This PR allows the execution of make package as an ordinary user and prevents the overwriting of a system file.

Fixes:
CPack: Create package using ZIP
CPack: Install projects
CPack: - Run preinstall target for: direwolf
CPack: - Install project: direwolf []
CMake Error at .../build/conf/cmake_install.cmake:54 (file):
  file INSTALL cannot copy file
  ".../conf/99-direwolf-cmedia.rules"
  to "/etc/udev/rules.d/99-direwolf-cmedia.rules": Permission denied.
Call Stack (most recent call first):
  .../build/cmake_install.cmake:74 (include)

CPack Error: Error when generating package: direwolf
make: *** [Makefile:71: package] Errore 1
Copy link

@Pandapip1 Pandapip1 left a comment

Choose a reason for hiding this comment

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

Can confirm that this builds fine. This is also generally useful for overriding INSTALL_UDEV_DIR for e.g. distro packaging.

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