Source: indi-orion-ssg3 Version: 0.1+20221222180647-1 Severity: normal Tags: patch User: helm...@debian.org Usertags: dep17m2
Dear Maintainer, your package installs files related to udev, into /lib. These files need to be moved to /usr/lib as part of Debian's usr-merge effort [1]. Attached you will find a patch using udev.pc to place the udev files (using pkg-config). This works today in unstable and also for bookworm, and is safe to do now. Once udev.pc in unstable points to /usr/lib, your package will benefit automatically after a binNMU or any other upload. A debian/ patch to align CMakeLists.txt with regard to UDEVRULES_INSTALL_DIR with the other indi-*/camera libraries is also included. If during the trixie cycle your package will undergo structural changes or any other file moves, please see the wiki and upload to experimental first when these changes are done. Later during the trixie cycle I expect this bug class to raise in priority. Thank you for considering, Chris [1] https://wiki.debian.org/UsrMerge
diff -Nru indi-orion-ssg3-0.1+20221222180647/debian/changelog indi-orion-ssg3-0.1+20221222180647/debian/changelog --- indi-orion-ssg3-0.1+20221222180647/debian/changelog 2022-12-22 19:08:01.000000000 +0100 +++ indi-orion-ssg3-0.1+20221222180647/debian/changelog 2023-12-17 01:10:00.000000000 +0100 @@ -1,3 +1,10 @@ +indi-orion-ssg3 (0.1+20221222180647-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Use udev.pc to place udev files. (Closes: #-1) + + -- Chris Hofstaedtler <z...@debian.org> Sun, 17 Dec 2023 01:10:00 +0100 + indi-orion-ssg3 (0.1+20221222180647-1) unstable; urgency=medium * build version from git diff -Nru indi-orion-ssg3-0.1+20221222180647/debian/control indi-orion-ssg3-0.1+20221222180647/debian/control --- indi-orion-ssg3-0.1+20221222180647/debian/control 2022-12-22 19:06:51.000000000 +0100 +++ indi-orion-ssg3-0.1+20221222180647/debian/control 2023-12-17 01:10:00.000000000 +0100 @@ -8,6 +8,8 @@ , libusb-1.0-0-dev , libcfitsio-dev , libindi-dev + , pkgconf + , systemd-dev , zlib1g-dev , libnova-dev Standards-Version: 4.6.0 diff -Nru indi-orion-ssg3-0.1+20221222180647/debian/patches/CMakeLists-UDEVRULES_INSTALL_DIR.patch indi-orion-ssg3-0.1+20221222180647/debian/patches/CMakeLists-UDEVRULES_INSTALL_DIR.patch --- indi-orion-ssg3-0.1+20221222180647/debian/patches/CMakeLists-UDEVRULES_INSTALL_DIR.patch 1970-01-01 01:00:00.000000000 +0100 +++ indi-orion-ssg3-0.1+20221222180647/debian/patches/CMakeLists-UDEVRULES_INSTALL_DIR.patch 2023-12-17 01:10:00.000000000 +0100 @@ -0,0 +1,23 @@ +Allow overriding udev install location in upstream build system. + +Index: indi-orion-ssg3-0.1+20221222180647/CMakeLists.txt +=================================================================== +--- indi-orion-ssg3-0.1+20221222180647.orig/CMakeLists.txt ++++ indi-orion-ssg3-0.1+20221222180647/CMakeLists.txt +@@ -7,7 +7,7 @@ include(GNUInstallDirs) + + IF(APPLE) + ELSE(APPLE) +-set(RULES_INSTALL_DIR "/lib/udev/rules.d") ++set(UDEVRULES_INSTALL_DIR "/lib/udev/rules.d" CACHE PATH "Destination for udev rules files") + ENDIF() + set (ORION_SSG3_VERSION_MAJOR 0) + set (ORION_SSG3_VERSION_MINOR 1) +@@ -51,6 +51,6 @@ install(TARGETS indi_orion_ssg3_ccd RUNT + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/indi_orion_ssg3.xml DESTINATION ${INDI_DATA_DIR}) + + IF (${CMAKE_SYSTEM_NAME} MATCHES "Linux") +-install(FILES 99-orionssg3.rules DESTINATION ${RULES_INSTALL_DIR}) ++install(FILES 99-orionssg3.rules DESTINATION ${UDEVRULES_INSTALL_DIR}) + ENDIF() + diff -Nru indi-orion-ssg3-0.1+20221222180647/debian/patches/series indi-orion-ssg3-0.1+20221222180647/debian/patches/series --- indi-orion-ssg3-0.1+20221222180647/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ indi-orion-ssg3-0.1+20221222180647/debian/patches/series 2023-12-17 01:08:59.000000000 +0100 @@ -0,0 +1 @@ +CMakeLists-UDEVRULES_INSTALL_DIR.patch diff -Nru indi-orion-ssg3-0.1+20221222180647/debian/rules indi-orion-ssg3-0.1+20221222180647/debian/rules --- indi-orion-ssg3-0.1+20221222180647/debian/rules 2022-12-22 19:06:51.000000000 +0100 +++ indi-orion-ssg3-0.1+20221222180647/debian/rules 2023-12-17 01:10:00.000000000 +0100 @@ -2,3 +2,7 @@ %: dh $@ + +override_dh_auto_configure: + dh_auto_configure -- \ + -DUDEVRULES_INSTALL_DIR=$(shell pkg-config --variable=udevdir udev)/rules.d