Package: coreutils-from-uutils
Version: 0.0.0
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

updating my unstable (arm64) system appears to have pulled in 
coreutils-from-uutils
and the Rust coreutils package:

-------------------------------------------------------------------------------
$ dpkg -l | grep coreutils
ii  coreutils               9.7-999+0.0.0 all   coreutils meta package
ii  coreutils-from-uutils   0.0.0         all   coreutils from the uutils 
project
ii  rust-coreutils          0.0.30-4      arm64 Universal coreutils utils, 
written in Rust
-------------------------------------------------------------------------------

Great! But other packages are not aware of this yet and along the way other
packages wanted to install their updates as well, triggering the re-generation 
of the
kernel's initrd, and broke with:

-------------------------------------------------------------------------------
update-initramfs: Generating /boot/initrd.img-6.18.3+deb14-arm64
error: unexpected argument '-Z' found

  tip: to pass '-Z' as a value, use '-- -Z'

Usage: cp [OPTION]... [-T] SOURCE DEST
       cp [OPTION]... SOURCE... DIRECTORY
       cp [OPTION]... -t DIRECTORY SOURCE...

For more information, try '--help'.
E: /usr/share/initramfs-tools/hooks/kmod failed with return 1.
-------------------------------------------------------------------------------

Or the "apparmor" package:

-------------------------------------------------------------------------------
Installing new version of config file /etc/init.d/apparmor ...
error: unexpected argument '-Z' found

  tip: to pass '-Z' as a value, use '-- -Z'

Usage: mv [OPTION]... [-T] SOURCE DEST
       mv [OPTION]... SOURCE... DIRECTORY
       mv [OPTION]... -t DIRECTORY SOURCE...

For more information, try '--help'.
dpkg: error processing package apparmor (--configure):
 old apparmor package postinst maintainer script subprocess failed with exit 
status 1
-------------------------------------------------------------------------------

The quick fix was to remove the "-Z" option from the install scripts, e.g.

-------------------------------------------------------------------------------
$ diff -u /var/lib/dpkg/info/apparmor.postinst{.bak,}
--- /var/lib/dpkg/info/apparmor.postinst.bak    2026-01-13 14:07:38.000000000 
+0000
+++ /var/lib/dpkg/info/apparmor.postinst        2026-01-25 15:15:02.413000917 
+0000
@@ -69,7 +69,7 @@
 EOM
         fi
         mkdir -p /etc/apparmor.d/tunables/home.d 2>/dev/null || true
-        mv -Z -f "$tmp" /etc/apparmor.d/tunables/home.d/ubuntu
+        mv -f "$tmp" /etc/apparmor.d/tunables/home.d/ubuntu
         chmod 644 /etc/apparmor.d/tunables/home.d/ubuntu
 
         if [ ! -e /etc/apparmor.d/tunables/xdg-user-dirs.d/site.local ]; then
@@ -99,7 +99,7 @@
 EOM
 
             mkdir -p /etc/apparmor.d/tunables/xdg-user-dirs.d 2>/dev/null || 
true
-            mv -Z -n "$tmp" /etc/apparmor.d/tunables/xdg-user-dirs.d/site.local
+            mv -n "$tmp" /etc/apparmor.d/tunables/xdg-user-dirs.d/site.local
             chmod 644 /etc/apparmor.d/tunables/xdg-user-dirs.d/site.local
         fi
-------------------------------------------------------------------------------

...and similarly in /usr/share/initramfs-tools/hooks/kmod for the "kmod" 
package.

Upstream should have -Z implemented already:

> cp: implement -Z
> https://github.com/uutils/coreutils/issues/7565

See also:
> Supporting SELinux in the coreutils
> https://github.com/uutils/coreutils/wiki/Supporting-SELinux-in-the-coreutils

Please support the SELinux options in Rust Coreutils.

Thank you,
Christian.

-- System Information:
Debian Release: forky/sid
  APT prefers experimental
  APT policy: (1000, 'experimental'), (500, 'unstable')
Architecture: arm64 (aarch64)

Kernel: Linux 6.18.3+deb14-arm64 (SMP w/6 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages coreutils-from-uutils depends on:
ii  rust-coreutils  0.0.30-4

coreutils-from-uutils recommends no packages.

coreutils-from-uutils suggests no packages.

-- no debconf information

Reply via email to