Closed franzos closed 9 months ago
I'm not too familiar with cmake. I guess this should be adjustable with build flags?
Hmm. I'm new to cmake myself so trying to optimize things is good.
I like having the net capability enabled as part of the build process because it makes debugging possible without running the debugger as root. I'll have to figure out more conditional stuff in CMake.
I'd not heard of GNU Guix before. I read a little about it at https://guix.gnu.org/blog/2018/a-packaging-tutorial-for-guix/#Guix_Package_Path
I also had to refresh my memory of what type packages CPack can create by reading https://cmake.org/cmake/help/latest/manual/cpack-generators.7.html
I'd not heard of GNU Guix before.
Still pretty niche; Maybe Nix / NixOS rings a bell, though even that is niche I suppose - even in the Linux world.
I'm thinking of changing the setcap feature to be capability dependent. I need to figure out if I can recognize if sudo setcap
can be run during the CMake check dependencies process, and then only enable it if it works without user input.
Reading this thread right now about possibilities. https://stackoverflow.com/questions/72012474/integrate-granting-of-capabilities-into-the-build-process
How about the flag, I mentioned before? If you prefer this to be the default, maybe a flag to --skip_setcap
. It sure seems to work fine for most if not all other users.
@franzos Does conditionally running the command based on existence of a Raspberry Pi issue file fix your issue?
See this update: https://github.com/wcbonner/GoveeBTTempLogger/commit/f34dbb229b5ee3939de35c538f842ca5932af0a5
Hi there, thank you for developing this awesome application!
I wrote a guix package for the latest release:
I had to make a couple of changes for this to work:
POST_BUILD
, not sure what's best practive here, but since this may be build on a computer that will not run it, this may be undesired (sudo setcap 'cap_net_raw,cap_net_admin+eip'...
). In my case it failed because the build does not allow side-effects.Here's the diff with which I can build successfully:
I'm not too familiar with cmake. I guess this should be adjustable with build flags?