Bug 418328 - Inappropriately tries to install udev rules to /lib
Summary: Inappropriately tries to install udev rules to /lib
Status: REPORTED
Alias: None
Product: frameworks-bluez-qt
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
: 421022 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-02-29 17:03 UTC by Nate Graham
Modified: 2024-02-09 22:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2020-02-29 17:03:09 UTC
I'm running a hackathon and all of my students who are using Neon Dev (some in VMs, some on bare metal) are hitting the same cmake error when trying to build bluez-qt:

# kdesrc-build running: 'make' 'install/fast'
# from directory: /home/mweepigeon/kde/build/bluez-qt
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /home/mweepigeon/kde/usr/lib/x86_64-linux-gnu/cmake/KF5BluezQt/KF5BluezQtConfig.cmake
-- Up-to-date: /home/mweepigeon/kde/usr/lib/x86_64-linux-gnu/cmake/KF5BluezQt/KF5BluezQtConfigVersion.cmake
-- Up-to-date: /home/mweepigeon/kde/usr/lib/x86_64-linux-gnu/cmake/KF5BluezQt/KF5BluezQtTargets.cmake
-- Up-to-date: /home/mweepigeon/kde/usr/lib/x86_64-linux-gnu/cmake/KF5BluezQt/KF5BluezQtTargets-relwithdebinfo.cmake
-- Up-to-date: /home/mweepigeon/kde/usr/include/KF5/bluezqt_version.h
-- Installing: /lib/udev/rules.d/61-kde-bluetooth-rfkill.rules
CMake Error at cmake_install.cmake:79 (file):
  file INSTALL cannot copy file
  "/home/mweepigeon/kde/src/bluez-qt/61-kde-bluetooth-rfkill.rules" to
  "/lib/udev/rules.d/61-kde-bluetooth-rfkill.rules".


Makefile:79: recipe for target 'install/fast' failed
make: *** [install/fast] Error 1

It seems inappropruate for it to be trying to install to /lib by default, as this will fail when the rest of the installation wants to go into ~/kde/usr (the default installation path).

I'm having them change INSTALL_UDEV_RULE to OFF to get past this. Changing the default or making it not try to overwrite a system path may bear investigation.
Comment 1 alem99393@gmail.com 2024-02-09 22:57:24 UTC
*** Bug 421022 has been marked as a duplicate of this bug. ***