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

Support dkms when it is not in PATH #90

Merged
merged 2 commits into from
Jul 26, 2024
Merged

Conversation

sergeyvfx
Copy link
Contributor

This change allows CMake configuration to detect that dkms command is not in the current PATH. This happens on some Linux systems which do no add /usr/sbin to all users, even if they are part of sudo/wheel. For example, this is default Raspbian OS onfiguration.

CMake's find_program() allows to detect dkms command when it is in /usr/sbin but not in the current PATH.

The code block which runs dkms command is still kept, so that if the dkms is uninstalled, CMake configuration adopts to it. It could be removed in the future, but for now the idea was to minimize impact this change is bringing.

This change allows CMake configuration to detect that dkms command is
not in the current PATH. This happens on some Linux systems which do
no add /usr/sbin to all users, even if they are part of sudo/wheel.
For example, this is default Raspbian OS onfiguration.

CMake's find_program() allows to detect dkms command when it is in
/usr/sbin but not in the current PATH.

The code block which runs dkms command is still kept, so that if the
dkms is uninstalled, CMake configuration adopts to it. It could be
removed in the future, but for now the idea was to minimize impact
this change is bringing.
@rjonaitis rjonaitis merged commit 4854fa4 into myriadrf:develop Jul 26, 2024
14 checks passed
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