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

[COMPILATION] setting capabilities on cmake install fails #990

Open
MattBlack85 opened this issue Oct 9, 2024 · 1 comment
Open

[COMPILATION] setting capabilities on cmake install fails #990

MattBlack85 opened this issue Oct 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@MattBlack85
Copy link
Contributor

Describe the bug
while compiling indi drivers, I got the following output

-- Installing: /home/XXXX/astroarch-pkgs/packages/indi-3rdparty-drivers/pkg/indi-3rdparty-drivers/usr/bin/indi_pentax
[sudo] password for XXXX: 
Failed to set capabilities on file '/usr/bin/indi_pentax': No such file or directory

this does not fail the build but probably renders the driver unusable? I fail to see unfortunately in which build step the capabilities are set. The failure is due to the path being wrong when building using arch (should be a local path until it gets shipped), how can I manipulate the path for setting the capabilities so that it will find the executable?

To Reproduce
Exact steps to reproduce the behavior.

mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
	-DUDEVRULES_INSTALL_DIR=/usr/lib/udev/rules.d \
	-DFIRMWARE_INSTALL_DIR=/usr/lib/firmware \
	../indi-3rdparty-$pkgver
make
make DESTDIR="$pkgdir" install

Expected behavior
No messages

Screenshots
can send them but are probably not useful

Desktop (please complete the following information):

  • OS: ArchLinuxARM (aarch64)
  • Version: kernel 6.6.54

Log Files
not needed

@MattBlack85 MattBlack85 added the bug Something isn't working label Oct 9, 2024
@knro
Copy link
Collaborator

knro commented Oct 9, 2024

In the indi-pentax CMakelists.txt, you have this:

install(CODE "execute_process(COMMAND ${SUDO} -S ${SETCAP} cap_sys_rawio+ep ${CMAKE_INSTALL_PREFIX}/bin/indi_pentax)")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants