Source: nbd
Version: 1:3.26.1-6.1
Severity: important
Tags: patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: udeb-usrmove

Hi,

your package produces a udeb package (nbd-client-udeb) which creates an
empty directory in an aliased location:

/sbin

Shipping files/directories in aliased locations is no longer allowed and
will trigger the "aliased-location" error which will prevent testing
migration going forward.

It appears, when moving the files to /usr in the main package, the
installation rules of the udeb package were broken and the nbd-client
binary was no longer installed, leading to a broken udeb package.

The attached patch fixes that and also moves the files in the udeb
package to /usr to make them usrmove compliant.


Please consider to apply the attached change with your next upload.


Regards,
Michael
diff -Nru nbd-3.26.1/debian/changelog nbd-3.26.1/debian/changelog
--- nbd-3.26.1/debian/changelog 2025-03-30 08:23:50.000000000 +0200
+++ nbd-3.26.1/debian/changelog 2026-02-04 10:24:56.000000000 +0100
@@ -1,3 +1,15 @@
+nbd (1:3.26.1-6.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix nbd-client-udeb and make it usrmove compliant.
+    Moving the binaries in the main package to /usr broke the installation of
+    the files for the udeb package and only left an empty /sbin directory.
+    Fix installation of the files for the udeb package in debian/rules and
+    move the binaries to /usr as well, as installing into aliased locations is
+    no longer allowed. (Closes: #-1)
+
+ -- Michael Biebl <[email protected]>  Wed, 04 Feb 2026 10:24:56 +0100
+
 nbd (1:3.26.1-6.1) unstable; urgency=medium
 
   * Non-maintainer upload with maintainer permission.
diff -Nru nbd-3.26.1/debian/rules nbd-3.26.1/debian/rules
--- nbd-3.26.1/debian/rules     2025-03-30 08:23:50.000000000 +0200
+++ nbd-3.26.1/debian/rules     2026-02-04 01:34:27.000000000 +0100
@@ -24,12 +24,12 @@
        install -d debian/tmp/usr/share/initramfs-tools/hooks
        install -d debian/tmp/etc
        install -d debian/tmp/usr/share/nbd-server
-       install -d debian/nbd-client-udeb/sbin
+       install -d debian/nbd-client-udeb/usr/sbin
        install -m 644 debian/nbd-client.nbdtab debian/tmp/etc/nbdtab
        install -m 755 debian/nbd-client.initrd 
debian/tmp/usr/share/initramfs-tools/scripts/local-top/nbd
        install -m 755 debian/nbd-client.initramfs-hook 
debian/tmp/usr/share/initramfs-tools/hooks/nbd
        install -m 644 debian/nbd-server.conf.tmpl 
debian/tmp/usr/share/nbd-server/nbd-server.conf.tmpl
-       if [ -f debian/tmp/sbin/min-nbd-client ]; then install -m 755 
debian/tmp/sbin/min-nbd-client debian/nbd-client-udeb/sbin/nbd-client; fi
+       if [ -f debian/tmp/usr/sbin/min-nbd-client ]; then install -m 755 
debian/tmp/usr/sbin/min-nbd-client debian/nbd-client-udeb/usr/sbin/nbd-client; 
fi
        dh_install -a
 
 override_dh_installinit:

Reply via email to