Your message dated Fri, 01 Dec 2023 01:04:00 +0000
with message-id <[email protected]>
and subject line Bug#1056670: fixed in airspyone-host 1.0.10-3
has caused the Debian Bug report #1056670,
regarding libairspy0: DEP17 P7: Shared multiarch file loss
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.)
--
1056670: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056670
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libairspy0
Version: 1.0.10-2
Severity: important
Tags: patch
User: [email protected]
Usertags: dep17p7
X-Debbugs-CC: [email protected]
Dear Maintainer,
libairspy0 contains udev rules which are installed to /lib; these files
need to be moved to /usr/lib as part of Debian's usr-merge effort.
Because libairspy0 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[0] P7: Shared multiarch file
loss).
I have raised a Salsa MR[1] and attached an equivalent patch which avoids
the problem by implementating DEP17 M10 (Protective diversions for
shared files) for the affected files.
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.
Cheers,
[0] https://subdivi.de/~helmut/dep17.html
[1] https://salsa.debian.org/bottoms/pkg-airspy-host/-/merge_requests/3
--
Samuel Henrique <samueloph>
>From 88072b72a2a756df85f6760913363af2d23d8272 Mon Sep 17 00:00:00 2001
From: Samuel Henrique <[email protected]>
Date: Fri, 24 Nov 2023 16:13:38 +0000
Subject: [PATCH] DEP17: Install udev rules into /usr
With (M10) protective diversion against possible file loss as exhibited
by Multi-Arch: same packages (P7). Diversion code can be removed in
forky+1.
---
debian/{libairspy0.udev => 60-libairspy0.rules} | 0
debian/changelog | 8 ++++++++
debian/libairspy0.install | 1 +
debian/libairspy0.lintian-overrides | 2 ++
debian/libairspy0.postinst | 9 +++++++++
debian/libairspy0.postrm | 15 +++++++++++++++
debian/libairspy0.preinst | 14 ++++++++++++++
7 files changed, 49 insertions(+)
rename debian/{libairspy0.udev => 60-libairspy0.rules} (100%)
create mode 100644 debian/libairspy0.lintian-overrides
create mode 100644 debian/libairspy0.postrm
create mode 100644 debian/libairspy0.preinst
diff --git a/debian/libairspy0.udev b/debian/60-libairspy0.rules
similarity index 100%
rename from debian/libairspy0.udev
rename to debian/60-libairspy0.rules
diff --git a/debian/changelog b/debian/changelog
index 1ae9cf4..5d81bb9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+airspyone-host (1.0.10-3) UNRELEASED; urgency=medium
+
+ * DEP17: Install udev rules into /usr, with (M10) protective diversion
+ against possible file loss as exhibited by Multi-Arch: same packages (P7).
+ Diversion code can be removed in forky+1.
+
+ -- Samuel Henrique <[email protected]> Fri, 24 Nov 2023 14:23:28 +0000
+
airspyone-host (1.0.10-2) unstable; urgency=medium
* update to v1.0.10-6-g41c439f
diff --git a/debian/libairspy0.install b/debian/libairspy0.install
index a7e6b7c..38ee09d 100644
--- a/debian/libairspy0.install
+++ b/debian/libairspy0.install
@@ -1,2 +1,3 @@
usr/lib/*/lib*.so.*
debian/com.airspy.host.metainfo.xml usr/share/metainfo
+debian/60-libairspy0.rules usr/lib/udev/rules.d
diff --git a/debian/libairspy0.lintian-overrides b/debian/libairspy0.lintian-overrides
new file mode 100644
index 0000000..9c24985
--- /dev/null
+++ b/debian/libairspy0.lintian-overrides
@@ -0,0 +1,2 @@
+# protective diversion for upgrades of files moved from / to /usr
+libairspy0: diversion-for-unknown-file lib/udev/rules.d/60-libairspy0.rules [preinst:11]
diff --git a/debian/libairspy0.postinst b/debian/libairspy0.postinst
index 21edfc4..ecb72c2 100644
--- a/debian/libairspy0.postinst
+++ b/debian/libairspy0.postinst
@@ -20,6 +20,15 @@ if [ "$1" = "configure" ]; then
# try to update udev now
udevadm control --reload-rules || true ;
fi
+# begin-remove-after: released:forky
+ # protective diversion of files moved from / to /usr, to avoid file loss.
+ # Only for upgrades.
+ # 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-libairspy0.rules.usr-is-merged \
+ --remove /lib/udev/rules.d/60-libairspy0.rules
+# end-remove-after
+
fi
exit 0
diff --git a/debian/libairspy0.postrm b/debian/libairspy0.postrm
new file mode 100644
index 0000000..e370229
--- /dev/null
+++ b/debian/libairspy0.postrm
@@ -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" = "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-libairspy0.rules.usr-is-merged \
+ --remove /lib/udev/rules.d/60-libairspy0.rules
+fi
+# end-remove-after
+
diff --git a/debian/libairspy0.preinst b/debian/libairspy0.preinst
new file mode 100644
index 0000000..af1e4a4
--- /dev/null
+++ b/debian/libairspy0.preinst
@@ -0,0 +1,14 @@
+#!/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-libairspy0.rules.usr-is-merged \
+ --add /lib/udev/rules.d/60-libairspy0.rules
+fi
+# end-remove-after
+
--
2.42.0
--- End Message ---
--- Begin Message ---
Source: airspyone-host
Source-Version: 1.0.10-3
Done: A. Maitland Bottoms <[email protected]>
We believe that the bug you reported is fixed in the latest version of
airspyone-host, 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 airspyone-host
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: Thu, 30 Nov 2023 18:50:43 -0500
Source: airspyone-host
Architecture: source
Version: 1.0.10-3
Distribution: unstable
Urgency: medium
Maintainer: A. Maitland Bottoms <[email protected]>
Changed-By: A. Maitland Bottoms <[email protected]>
Closes: 1033121 1056670
Changes:
airspyone-host (1.0.10-3) unstable; urgency=medium
.
[ Samuel Henrique ]
* DEP17: Install udev rules into /usr, with (M10) protective diversion
against possible file loss as exhibited by Multi-Arch: same packages (P7).
Diversion code can be removed in forky+1. (Closes: #1056670)
.
[ Debian Janitor ]
* Trim trailing whitespace.
* debian/copyright: use spaces rather than tabs to start continuation lines.
* Update standards version to 4.6.2, no changes needed.
* Remove constraints unnecessary since buster (oldstable):
+ libairspy0: Drop conflict with removed package gr-osmosdr (<< 0.1.4-11)
in
Breaks.
+ libairspy0: Drop conflict with removed package libgnuradio-osmosdr0.1.4
(<< 0.1.4-11) in Breaks.
.
[ A. Maitland Bottoms ]
* libairspy-dev marked Multi-Arch: same
* use group plugdev along with uaccess to allow for systemd services
(Closes: #1033121)
Checksums-Sha1:
44d144ba8c764bda1edb61acdae050009abd1e3f 2065 airspyone-host_1.0.10-3.dsc
1c338cdba5e6b08edc2869d583c372fd9c93f15a 19180
airspyone-host_1.0.10-3.debian.tar.xz
45f1098aa09230b36d5835b86f6909ec908b115a 8183
airspyone-host_1.0.10-3_amd64.buildinfo
Checksums-Sha256:
2ebf35dafb40a1b62eed28c7499a9f345ecf0e08dcc1f30cd63e3cab045a08f5 2065
airspyone-host_1.0.10-3.dsc
0c06a89530c882802e3d570b40257860e71ece8815096cdd9b163159770a6a6b 19180
airspyone-host_1.0.10-3.debian.tar.xz
d556e171f6779ca1880bcb8c020b0e2eb01dd616076a9cf40d981d756e04ceec 8183
airspyone-host_1.0.10-3_amd64.buildinfo
Files:
042de22a6886dbaa4bfb9d5349ff933f 2065 libs optional airspyone-host_1.0.10-3.dsc
7a72741a3697d681c8912079877dd0fe 19180 libs optional
airspyone-host_1.0.10-3.debian.tar.xz
2a0860cb1d78bfe0e3fddae5065669ca 8183 libs optional
airspyone-host_1.0.10-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEB8qH3cTCsGJAtrF0UEHxiR9E4JAFAmVpKRIACgkQUEHxiR9E
4JAs/Q//fgcJ7rmfz/WZA/ykvBwRZt6RFozsmNNLdMkOz9NpOB87/x37m9PBlbAU
tm8U4Y5YjUK+xde88k/wkxrUfNeXkJB46f7z5jCx6ovhNUm7J3JlxxNuKQzhDwjG
yhiQS8w6Hqymr22DrchZXib5bG5ILVl9udCDtN6vn/rKuoGowd7tuFJspGeYLq+Z
y3Cf3XYgdTdpwaAHaRO8trFhKs/EmFMeKgtxCE0Rsy8ZDkWfo5WmE7GLcm74t5jC
c3E9pB8uNzo+XZF4lOF7i0eAXKuqB9Xc8MoiMLTpOkA3q8vOdb1vD/Oq7TPvdcHp
pzU2nbsd8jxha3ZphN88RcxvlRvVG+iM0r+Z7uKsRpj8bYS1WqoxPwpfps/EK9qy
P9C6I6jDvCNgm8FdISxU9AMVlYMG5w22pW7T0h6oW+qoYwXSY2X8C7QXcaC/1iWe
KhKRyvPV8bUjC2hKpDjTniNR13DHgEChlTDFrxxSlkbLWL4dSEM6NpAT/GhUtEWT
bZ/jSs+N1VSG0321ekZJ+YTDfgnzocT6eoxSWTRVi+sOKsoFStZpRe+N05O1rKhn
veG3lN4TEGoNA+pgh5+tr6qF6fPbS87u6jj8BC82ctQKy8xXE0TjU/R/SFiCGYsc
Hu7OyOJwgMbYOuwoqG/wvZlviYiBRruQezCJkAEurvlHZboRRU4=
=iLnI
-----END PGP SIGNATURE-----
--- End Message ---