Your message dated Sun, 03 Dec 2023 18:53:55 +0000
with message-id <[email protected]>
and subject line Bug#1056914: fixed in libiio 0.25-2
has caused the Debian Bug report #1056914,
regarding libiio0: 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.)


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

Dear Maintainer,

libiio0 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 libiio-0.25/debian/changelog libiio-0.25/debian/changelog
--- libiio-0.25/debian/changelog        2023-08-11 01:28:57.000000000 +0200
+++ libiio-0.25/debian/changelog        2023-11-26 16:29:08.000000000 +0100
@@ -1,3 +1,11 @@
+libiio (0.25-1.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 16:29:08 +0100
+
 libiio (0.25-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru libiio-0.25/debian/libiio0.install libiio-0.25/debian/libiio0.install
--- libiio-0.25/debian/libiio0.install  2022-07-10 18:20:01.000000000 +0200
+++ libiio-0.25/debian/libiio0.install  2023-11-26 16:29:08.000000000 +0100
@@ -1,2 +1,2 @@
 usr/lib/*/libiio.so.0*
-lib/udev/rules.d/90-libiio0.rules
+usr/lib/udev/rules.d/90-libiio0.rules
diff -Nru libiio-0.25/debian/libiio0.lintian-overrides 
libiio-0.25/debian/libiio0.lintian-overrides
--- libiio-0.25/debian/libiio0.lintian-overrides        1970-01-01 
01:00:00.000000000 +0100
+++ libiio-0.25/debian/libiio0.lintian-overrides        2023-11-26 
16:29:08.000000000 +0100
@@ -0,0 +1,4 @@
+# begin-remove-after: released:forky
+# protective diversion for upgrades of files moved from / to /usr
+libiio0: diversion-for-unknown-file lib/udev/rules.d/90-libiio0.rules 
[preinst:*]
+# end-remove-after
diff -Nru libiio-0.25/debian/libiio0.postinst 
libiio-0.25/debian/libiio0.postinst
--- libiio-0.25/debian/libiio0.postinst 1970-01-01 01:00:00.000000000 +0100
+++ libiio-0.25/debian/libiio0.postinst 2023-11-26 16:29:08.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/90-libiio0.rules.usr-is-merged \
+        --remove /lib/udev/rules.d/90-libiio0.rules
+fi
+# end-remove-after
+
+#DEBHELPER#
diff -Nru libiio-0.25/debian/libiio0.postrm libiio-0.25/debian/libiio0.postrm
--- libiio-0.25/debian/libiio0.postrm   1970-01-01 01:00:00.000000000 +0100
+++ libiio-0.25/debian/libiio0.postrm   2023-11-26 16:29:08.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/90-libiio0.rules.usr-is-merged \
+        --remove /lib/udev/rules.d/90-libiio0.rules
+fi
+# end-remove-after
+
+#DEBHELPER#
+
diff -Nru libiio-0.25/debian/libiio0.preinst libiio-0.25/debian/libiio0.preinst
--- libiio-0.25/debian/libiio0.preinst  1970-01-01 01:00:00.000000000 +0100
+++ libiio-0.25/debian/libiio0.preinst  2023-11-26 16:29:08.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/90-libiio0.rules.usr-is-merged \
+        --add /lib/udev/rules.d/90-libiio0.rules
+fi
+# end-remove-after
+
+#DEBHELPER#
+
diff -Nru libiio-0.25/debian/rules libiio-0.25/debian/rules
--- libiio-0.25/debian/rules    2023-08-10 21:39:04.000000000 +0200
+++ libiio-0.25/debian/rules    2023-11-26 16:29:08.000000000 +0100
@@ -6,7 +6,8 @@
 
 override_dh_auto_configure:
        dh_auto_configure -- -DCMAKE_SKIP_INSTALL_RPATH=On -DWITH_SYSTEMD=On 
-DWITH_SYSVINIT=On \
-               -DPYTHON_BINDINGS=ON -DWITH_DOC=ON -DWITH_MAN=ON
+               -DPYTHON_BINDINGS=ON -DWITH_DOC=ON -DWITH_MAN=ON \
+               -DUDEV_RULES_INSTALL_DIR=/usr/lib/udev/rules.d
 
 override_dh_compress:
        dh_compress -X.c -X.C

--- End Message ---
--- Begin Message ---
Source: libiio
Source-Version: 0.25-2
Done: A. Maitland Bottoms <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libiio, 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 libiio 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, 03 Dec 2023 13:12:50 -0500
Source: libiio
Architecture: source
Version: 0.25-2
Distribution: experimental
Urgency: medium
Maintainer: A. Maitland Bottoms <[email protected]>
Changed-By: A. Maitland Bottoms <[email protected]>
Closes: 1045678 1056914
Changes:
 libiio (0.25-2) experimental; urgency=medium
 .
   [ Chris Hofstaedtler ]
   * Move udev files from /lib to /usr/lib, including protective diversion
     against Multi-Arch: same file loss scenario (DEP17 P7 M10).
     (Closes: #1056914)
 .
   [ A. Maitland Bottoms ]
   * improve clean target to remove __pycache__ (Closes: #1045678)
   * upload to experimental as requested in #1057190
Checksums-Sha1:
 1baf642d9b4cb569afa2109ba862430069db08d8 2413 libiio_0.25-2.dsc
 d4d9aacbe1a4b6c896bce86c5c8691f7dc1914ae 9768 libiio_0.25-2.debian.tar.xz
 09aceec08872088961ddb6dd6c5ef0a530c6e9e8 14474 libiio_0.25-2_amd64.buildinfo
Checksums-Sha256:
 732482734b0d6fb05f5829ca9ef22e43703d30460fe250438a723c5048c009ed 2413 
libiio_0.25-2.dsc
 94873be48a29835c9bb6ddf8a538c8a51481ed249af649ca6ce3a2979afb3a77 9768 
libiio_0.25-2.debian.tar.xz
 25bb1031d1ac7afc39449bf712629b934e4aca920da5755d3e5199b8e73ee14e 14474 
libiio_0.25-2_amd64.buildinfo
Files:
 cd34869f1112f0a5c6a7b6edf772a1a4 2413 libs optional libiio_0.25-2.dsc
 9dd5baf2dcd71d63b0eed2afb449fd14 9768 libs optional libiio_0.25-2.debian.tar.xz
 09297468dd44a01f0e50ccf3ef5447da 14474 libs optional 
libiio_0.25-2_amd64.buildinfo

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

iQIzBAEBCAAdFiEEB8qH3cTCsGJAtrF0UEHxiR9E4JAFAmVsymcACgkQUEHxiR9E
4JD5VBAAkQrfbjvFyNpXZ0p3WKixMVz4DBvk6dnDepscVAGyQzScr5TNJxJnXNEY
kOHwhOV+/YoYCeRlZDAJTdUcJecW5HSRBFyuupbgsuKjpXZ1Pdho+4mz6Xq1nmf6
5EmNu+87VVfgEDicuplwfAqCcWojzZ6+PYKTJtktCYLWsPgFGmhY9QjBEUtBTs9/
mpnIB06uG7UyLtkIRpscar40MeKq0bXdpk9Fp1xNlXXzBi/uW7HGw7cnHnT2xOIC
SqfX0Wo8+DwokzoRv2L6XLAZIm+7U99GhQlaIF7rIfzzmnu3r4FixnlBci0YEc00
krNjXskqax8rXI5AHrC2YjNg04XyG1eertOuu1now6TcVthBvpt18lsOEiT2zSIN
XXRyGz7b42sNLePWirGbjbcebZU22uj3JLkwW1GKgFVxXDWmvFjI6oea/1/KCrCe
NTRZPhFK8CXfh5L4aLXzzUuj0RsGTVEd0Dx6QnaZ5grCwZexyM3Pp9axT17Et19B
PbFBsDjk+C5TvwFX8CK9cPZsyQLu6Lt4NIhFWss5AC2L3+hs3hEfnftR5GhqGXUE
J7BHvV/T7GF2Dq0EpV2bK7Wicaf9puXVnCKLQV9xVO9hqb4w7jBXUzWFqxo61DYV
uErpOmB/DjODV9ECbAKv2qYlSpLvaI4UdxYTLZoBxamL7XjEhGU=
=vj4W
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to