Your message dated Mon, 27 Nov 2023 01:49:25 +0000
with message-id <[email protected]>
and subject line Bug#1056927: fixed in hackrf 2023.01.1-3
has caused the Debian Bug report #1056927,
regarding libhackrf0: Move files into /usr (incl. DEP17 P7 mitigation)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1056927: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056927
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libhackrf0
Version: 2023.01.1-2
Severity: important
Tags: patch
User: [email protected]
Usertags: dep17p7
X-Debbugs-Cc: [email protected]

Dear Maintainer,

libhackrf0 contains udev files which are installed to /lib; these files
need to be moved to /usr/lib as part of Debian's usr-merge effort.
Because your package is Multi-Arch: same, an unfortunate corner-case can
occur whereby shared files (such as the udev rules) may be erroneously
removed on upgrades (please see DEP17[1] P7: Shared multiarch file
loss).

You will find a patch attached to move the udev files, including the
mitigation for the file loss scenario.

Please consider applying this patch at your earliest convenience. This
bug will be upgraded to release critical soon, as it blocks the overall
usr-merge effort which is being undertaken for the trixie release.


Many thanks,
Chris


[1] https://wiki.debian.org/UsrMerge
diff -Nru hackrf-2023.01.1/debian/changelog hackrf-2023.01.1/debian/changelog
--- hackrf-2023.01.1/debian/changelog   2023-10-15 02:26:21.000000000 +0200
+++ hackrf-2023.01.1/debian/changelog   2023-11-26 20:37:03.000000000 +0100
@@ -1,3 +1,11 @@
+hackrf (2023.01.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Move udev files from /lib to /usr/lib, including protective diversion
+    against Multi-Arch: same file loss scenario (DEP17 P7 M10). (Closes: #-1)
+
+ -- Chris Hofstaedtler <[email protected]>  Sun, 26 Nov 2023 20:37:03 +0100
+
 hackrf (2023.01.1-2) unstable; urgency=medium
 
   * update to v2023.01.1-15-g1fd67f66 (Closes: #1036862)
diff -Nru hackrf-2023.01.1/debian/libhackrf0.lintian-overrides 
hackrf-2023.01.1/debian/libhackrf0.lintian-overrides
--- hackrf-2023.01.1/debian/libhackrf0.lintian-overrides        1970-01-01 
01:00:00.000000000 +0100
+++ hackrf-2023.01.1/debian/libhackrf0.lintian-overrides        2023-11-26 
20:36:59.000000000 +0100
@@ -0,0 +1,4 @@
+# begin-remove-after: released:forky
+# protective diversion for upgrades of files moved from / to /usr
+libhackrf0: diversion-for-unknown-file lib/udev/rules.d/60-libhackrf0.rules 
[preinst:*]
+# end-remove-after
diff -Nru hackrf-2023.01.1/debian/libhackrf0.postinst 
hackrf-2023.01.1/debian/libhackrf0.postinst
--- hackrf-2023.01.1/debian/libhackrf0.postinst 1970-01-01 01:00:00.000000000 
+0100
+++ hackrf-2023.01.1/debian/libhackrf0.postinst 2023-11-26 20:36:59.000000000 
+0100
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+set -e
+
+# begin-remove-after: released:forky
+# protective diversion of files moved from / to /usr, to avoid file loss.
+# Only for upgrades.
+if [ "$1" = "configure" ]; then
+    # At this point, the package will have installed the same file in */usr*.
+    dpkg-divert --package usr-is-merged --no-rename \
+        --divert /lib/udev/rules.d/60-libhackrf0.rules.usr-is-merged \
+        --remove /lib/udev/rules.d/60-libhackrf0.rules
+fi
+# end-remove-after
+
+#DEBHELPER#
diff -Nru hackrf-2023.01.1/debian/libhackrf0.postrm 
hackrf-2023.01.1/debian/libhackrf0.postrm
--- hackrf-2023.01.1/debian/libhackrf0.postrm   1970-01-01 01:00:00.000000000 
+0100
+++ hackrf-2023.01.1/debian/libhackrf0.postrm   2023-11-26 20:36:59.000000000 
+0100
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+# begin-remove-after: released:forky
+# protective diversion of files moved from / to /usr, to avoid file loss.
+# Only for upgrades.
+if [ "$1" = "remove" ] && [ "$DPKG_MAINTSCRIPT_PACKAGE_REFCOUNT" = "1" ]; then
+    # Cleanup in case package is removed before upgrade is finished (postinst 
ran).
+    dpkg-divert --package usr-is-merged --no-rename \
+        --divert /lib/udev/rules.d/60-libhackrf0.rules.usr-is-merged \
+        --remove /lib/udev/rules.d/60-libhackrf0.rules
+fi
+# end-remove-after
+
+#DEBHELPER#
+
diff -Nru hackrf-2023.01.1/debian/libhackrf0.preinst 
hackrf-2023.01.1/debian/libhackrf0.preinst
--- hackrf-2023.01.1/debian/libhackrf0.preinst  1970-01-01 01:00:00.000000000 
+0100
+++ hackrf-2023.01.1/debian/libhackrf0.preinst  2023-11-26 20:36:59.000000000 
+0100
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+
+# begin-remove-after: released:forky
+# protective diversion of files moved from / to /usr, to avoid file loss.
+# Only for upgrades.
+if [ "$1" = "upgrade" ]; then
+    dpkg-divert --package usr-is-merged --no-rename \
+        --divert /lib/udev/rules.d/60-libhackrf0.rules.usr-is-merged \
+        --add /lib/udev/rules.d/60-libhackrf0.rules
+fi
+# end-remove-after
+
+#DEBHELPER#
+
diff -Nru hackrf-2023.01.1/debian/rules hackrf-2023.01.1/debian/rules
--- hackrf-2023.01.1/debian/rules       2023-10-15 02:26:21.000000000 +0200
+++ hackrf-2023.01.1/debian/rules       2023-11-26 20:37:03.000000000 +0100
@@ -43,3 +45,9 @@
 
 override_dh_installdocs-indep:
        dh_installdocs --indep
+
+override_dh_installudev:
+       dh_installudev
+       # This should be harmless for indep builds or after dh_installudev 
changes the install path.
+       set -e; if test -d debian/libhackrf0/lib/udev/rules.d; then mv 
debian/libhackrf0/lib/udev debian/libhackrf0/usr/lib; fi
+       set -e; if test -d debian/libhackrf0/lib; then rmdir 
debian/libhackrf0/lib; fi

--- End Message ---
--- Begin Message ---
Source: hackrf
Source-Version: 2023.01.1-3
Done: A. Maitland Bottoms <[email protected]>

We believe that the bug you reported is fixed in the latest version of
hackrf, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
A. Maitland Bottoms <[email protected]> (supplier of updated hackrf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 26 Nov 2023 20:00:39 -0500
Source: hackrf
Architecture: source
Version: 2023.01.1-3
Distribution: unstable
Urgency: medium
Maintainer: A. Maitland Bottoms <[email protected]>
Changed-By: A. Maitland Bottoms <[email protected]>
Closes: 1056926 1056927
Changes:
 hackrf (2023.01.1-3) unstable; urgency=medium
 .
   * update to v2023.01.1-18-gf5dd48a5
     Call fftw_execute once prior to starting IQ streaming
     Add options to use/save to an FFTW wisdom file and specify plan
     Fix bug where using -P would also enable one-shot mode
   * Handle underscore.js links with new sphinx (Closes: #1056926)
   * MMove files into /usr (incl. DEP17 P7 mitigation) (Closes: #1056927)
Checksums-Sha1:
 418d451e6427d4dd9674adedbb91123a9bcaed6a 2575 hackrf_2023.01.1-3.dsc
 ed1e1d3fdbefa3f5fb48fb75d35323b117f1facd 971008 
hackrf_2023.01.1-3.debian.tar.xz
 b1d7dd85888a0625ef46590f4073239be65e866c 12161 
hackrf_2023.01.1-3_amd64.buildinfo
Checksums-Sha256:
 0edb14030d0394ddb9d46ee843173d1b24446ee5248809bf53ff9d1e813ff245 2575 
hackrf_2023.01.1-3.dsc
 a5a41fe7e2a1946577e00bf83d61890a36747b14c5d11508227f0644b3319101 971008 
hackrf_2023.01.1-3.debian.tar.xz
 134ddde22e3f311781738328e85408184665acf670be89a09b48f80c2b8d50f3 12161 
hackrf_2023.01.1-3_amd64.buildinfo
Files:
 2589260024da05e47d8750352f8f1316 2575 libs optional hackrf_2023.01.1-3.dsc
 5a97bcdce431e53879cb099fc8c9a71a 971008 libs optional 
hackrf_2023.01.1-3.debian.tar.xz
 234f3ed198cebdcc5a6ce2abb46db17e 12161 libs optional 
hackrf_2023.01.1-3_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEB8qH3cTCsGJAtrF0UEHxiR9E4JAFAmVj8kQACgkQUEHxiR9E
4JDrKhAAvYwnuEBB9XTIDRIrVdk0ypCdAYXO/jeJrw3ZKe2dUQlyRLHR93qp4BJy
Tm9lLrwMJ5nA7svGrW7oNEZHoLBcM+DY4yx/d72hRZ76Tz2hJk9Uj9CaYeux/wGJ
vyQF5YpdKE3KCkUMPfa6srBij/i3zrJWivzDYBSut0AX89IaFQvF0xxO+WXmw90Z
rXbV8R1p59RdMqBb1RUHH9mTn64S2fWHzJa8X3EqU3dpMNOJdXvFioZuzz9gxfhg
/QzVA2aJVq3K5cALukl/vbGj7YD93EegOEdJ1kqs0fwDAHR3tJNCib1imrsR5B3Y
ZxQqCYGe8e1TTVjZ6yJIp6ULiv0XKYEDsRYutkB8I7r8LR8szPhs6HP2wySXVoP+
6rSJ7gpfO9XGiXtUavyhZrNftV4REpONA0k56sdzsvzCVS8wcb0B6zjOTUESWzYB
ZQylJMp9F/Rw+ly7TMYwM96AiWnxNWSqPCdXqfAKBbioRGYgL5na9j6ybMeAyWlP
u1RCR0RpP9W147E2FUKbFVmeHO33GhB5sHnJnxUkHVHe1dbKUR3TJDQc0tusGz3i
UaVFc9istHFrWodbsoa2p7otLbR44lQri13a7XzYFMARww8Fz5G/QSW9cJhUZBpP
L40wsbwzVrJ2/XK3pG1tqD+2mFLnMLULiRnL3/BHQv1rtjnfkuQ=
=EAuT
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to