Bug 418328

Summary: Inappropriately tries to install udev rules to /lib
Product: [Frameworks and Libraries] frameworks-bluez-qt Reporter: Nate Graham <nate>
Component: generalAssignee: David Rosca <nowrep>
Status: REPORTED ---    
Severity: normal CC: subdiff
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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. ***