Source: teensy-loader-cli
Version: 2.2-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.

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 teensy-loader-cli-2.2/debian/49-teensy.rules teensy-loader-cli-2.2/debian/49-teensy.rules
--- teensy-loader-cli-2.2/debian/49-teensy.rules	2022-01-11 14:30:43.000000000 +0100
+++ teensy-loader-cli-2.2/debian/49-teensy.rules	1970-01-01 01:00:00.000000000 +0100
@@ -1,38 +0,0 @@
-# UDEV Rules for Teensy boards, http://www.pjrc.com/teensy/
-#
-# The latest version of this file may be found at:
-#   http://www.pjrc.com/teensy/49-teensy.rules
-#
-# This file must be placed at:
-#
-# /etc/udev/rules.d/49-teensy.rules    (preferred location)
-#   or
-# /lib/udev/rules.d/49-teensy.rules    (req'd on some broken systems)
-#
-# To install, type this command in a terminal:
-#   sudo cp 49-teensy.rules /etc/udev/rules.d/49-teensy.rules
-#
-# Or use the alternate way (from this forum message) to download and install:
-#   https://forum.pjrc.com/threads/45595?p=150445&viewfull=1#post150445
-#
-# After this file is installed, physically unplug and reconnect Teensy.
-#
-ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1"
-ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1"
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", TAG+="uaccess", TAG+="udev-acl"
-KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", TAG+="uaccess", TAG+="udev-acl"
-#
-# If you share your linux system with other users, or just don't like the
-# idea of write permission for everybody, you can replace MODE:="0666" with
-# OWNER:="yourusername" to create the device owned by you, or with
-# GROUP:="somegroupname" and mange access using standard unix groups.
-#
-#
-# If using USB Serial you get a new device each time (Ubuntu 9.10)
-# eg: /dev/ttyACM0, ttyACM1, ttyACM2, ttyACM3, ttyACM4, etc
-#    apt-get remove --purge modemmanager     (reboot may be necessary)
-#
-# Older modem proding (eg, Ubuntu 9.04) caused very slow serial device detection.
-# To fix, add this near top of /lib/udev/rules.d/77-nm-probe-modem-capabilities.rules
-#   SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789]?", GOTO="nm_modem_probe_end" 
-#
diff -Nru teensy-loader-cli-2.2/debian/changelog teensy-loader-cli-2.2/debian/changelog
--- teensy-loader-cli-2.2/debian/changelog	2022-01-15 21:59:54.000000000 +0100
+++ teensy-loader-cli-2.2/debian/changelog	2023-12-16 23:07:45.000000000 +0100
@@ -1,3 +1,10 @@
+teensy-loader-cli (2.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Let dh_installudev install udev rules. (Closes: #-1)
+
+ -- Chris Hofstaedtler <z...@debian.org>  Sat, 16 Dec 2023 23:07:45 +0100
+
 teensy-loader-cli (2.2-1) unstable; urgency=medium
 
   * New upstream release, contained all debian patches
diff -Nru teensy-loader-cli-2.2/debian/install teensy-loader-cli-2.2/debian/install
--- teensy-loader-cli-2.2/debian/install	2022-01-11 14:30:43.000000000 +0100
+++ teensy-loader-cli-2.2/debian/install	2023-12-16 23:07:45.000000000 +0100
@@ -1,2 +1 @@
 teensy_loader_cli /usr/bin/
-debian/49-teensy.rules /lib/udev/rules.d/
diff -Nru teensy-loader-cli-2.2/debian/rules teensy-loader-cli-2.2/debian/rules
--- teensy-loader-cli-2.2/debian/rules	2022-01-11 14:30:43.000000000 +0100
+++ teensy-loader-cli-2.2/debian/rules	2023-12-16 23:07:45.000000000 +0100
@@ -12,3 +12,6 @@
 
 %:
 	dh $@
+
+override_dh_installudev:
+	dh_installudev --priority=49 --name=teensy
diff -Nru teensy-loader-cli-2.2/debian/teensy-loader-cli.teensy.udev teensy-loader-cli-2.2/debian/teensy-loader-cli.teensy.udev
--- teensy-loader-cli-2.2/debian/teensy-loader-cli.teensy.udev	1970-01-01 01:00:00.000000000 +0100
+++ teensy-loader-cli-2.2/debian/teensy-loader-cli.teensy.udev	2022-01-11 14:30:43.000000000 +0100
@@ -0,0 +1,38 @@
+# UDEV Rules for Teensy boards, http://www.pjrc.com/teensy/
+#
+# The latest version of this file may be found at:
+#   http://www.pjrc.com/teensy/49-teensy.rules
+#
+# This file must be placed at:
+#
+# /etc/udev/rules.d/49-teensy.rules    (preferred location)
+#   or
+# /lib/udev/rules.d/49-teensy.rules    (req'd on some broken systems)
+#
+# To install, type this command in a terminal:
+#   sudo cp 49-teensy.rules /etc/udev/rules.d/49-teensy.rules
+#
+# Or use the alternate way (from this forum message) to download and install:
+#   https://forum.pjrc.com/threads/45595?p=150445&viewfull=1#post150445
+#
+# After this file is installed, physically unplug and reconnect Teensy.
+#
+ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1"
+ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1"
+SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", TAG+="uaccess", TAG+="udev-acl"
+KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", TAG+="uaccess", TAG+="udev-acl"
+#
+# If you share your linux system with other users, or just don't like the
+# idea of write permission for everybody, you can replace MODE:="0666" with
+# OWNER:="yourusername" to create the device owned by you, or with
+# GROUP:="somegroupname" and mange access using standard unix groups.
+#
+#
+# If using USB Serial you get a new device each time (Ubuntu 9.10)
+# eg: /dev/ttyACM0, ttyACM1, ttyACM2, ttyACM3, ttyACM4, etc
+#    apt-get remove --purge modemmanager     (reboot may be necessary)
+#
+# Older modem proding (eg, Ubuntu 9.04) caused very slow serial device detection.
+# To fix, add this near top of /lib/udev/rules.d/77-nm-probe-modem-capabilities.rules
+#   SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789]?", GOTO="nm_modem_probe_end" 
+#

Reply via email to