Install udev rules only if building DVStar module#4254
Conversation
There was a problem hiding this comment.
Thanks Dawid — gating the ThumbDV udev rules on the DVStar module is the right call; there's no reason to drop them on a build that has no aether-dv-waveform target. Moving the block inside if(TARGET aether-dv-waveform) and switching CMAKE_SYSTEM_NAME STREQUAL "Linux" to LINUX are both fine (min CMake is 3.25, and LINUX is already used at line 1121).
One thing I'd like fixed before merge: the DESTINATION also changed from lib/udev/rules.d to ${CMAKE_INSTALL_LIBDIR}/udev/rules.d, which will actually break the rules install on the distros this PR targets — see the inline note.
Would like fixed before merge
- udev only scans
/usr/lib/udev/rules.d;${CMAKE_INSTALL_LIBDIR}resolves to a path udev never reads on multilib/multiarch distros. Keep the hardcodedlib/udev/rules.d.
Non-blocking note
- The metainfo hardware-IDs idea from your description isn't part of this diff — happy to look at it as a separate PR.
🤖 aethersdr-agent · cost: $4.0154 · model: claude-opus-4-8
Co-authored-by: aethersdr-agent[bot] <273844287+aethersdr-agent[bot]@users.noreply.github.com> Signed-off-by: Dawid Kulas <147207983+dawkagaming@users.noreply.github.com>
|
Okay, sorry for that. I have accepted the suggested commit 😄 |
|
@dawkagaming Can you file an issue about the compatible hardware IDs so we can track and fix the documentation? Thank you |
|
@jensenpat From this discussion: https://nw-digital-radio.groups.io/g/ambe/topic/ambe_server_install_no/102291698 - it looks like the ID is |
|
Holding for next week's release. |
|
First-pass triage review (not exhaustive — surfacing blockers to keep this moving): Blockers Secondary notes
Looks good on a first pass. Thanks! |
Hello,
I have noticed while packaging the newest version for Debian, that even when you don't build the DVStar subsystem the udev rules are placed there, so I made a PR to fix this.
Also, the metainfo file should contain section about compatible hardware IDs, so it can recommend users who have the particular hardware device the AetherSDR software 😄
Thanks,
Dawid Kulas
SP9SKA