Your message dated Fri, 30 Oct 2026 23:35:18 +0000
with message-id <[email protected]>
and subject line Bug#1150670: fixed in coreutils 9.12-0.3
has caused the Debian Bug report #1150670,
regarding coreutils: ls is not linked against libcap
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.)


-- 
1150670: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1150670
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: coreutils
Version: 9.10-1
Severity: normal
Tags: patch
X-Debbugs-Cc: [email protected]

Hi Michael,

I noticed that in Debian Forky, ‘ls’ from GNU coreutils is not linked to
libcap:

    $ podman run --rm -it debian:forky
    $ { apt update -y && apt upgrade -y \
        && apt install -y binutils; } >/dev/null 2>&1
    $ readelf -d /usr/bin/ls | grep -F NEEDED
     0x0000000000000001 (NEEDED)             Shared library: [libselinux.so.1]
     0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

In Debian Trixie it is:

    $ podman run --rm -it debian:trixie
    $ { apt update -y && apt upgrade -y \
        && apt install -y binutils; } >/dev/null 2>&1
    $ readelf -d /usr/bin/ls | grep -F NEEDED
     0x0000000000000001 (NEEDED)             Shared library: [libselinux.so.1]
     0x0000000000000001 (NEEDED)             Shared library: [libcap.so.2]
     0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

GNU coreutils' 'ls' uses this to color files with capabilities set. It
appears that the coreutils package never had libcap-dev listed in
Build-Depends. In Trixie, it was brought in through the libsystemd
dependency. We can see that it depends on libcap in Trixie [1]. However,
in Forky the dependency was dropped [2], causing GNU coreutils to be
built without support for capabilities.

I confirmed this using an unstable sbuild chroot. Here is the relevant
output from ./configure before making any changes to the source package:

    checking for cap_get_file in -lcap... no
    configure: WARNING: libcap library was not found or not usable.
    configure: WARNING: GNU coreutils will be built without capability support.

Here we can see that ‘ls’ from the just-built package is missing a
libcap dependency:

    $ dpkg-deb -x coreutils_9.10-1_amd64.deb out
    $ readelf -d out/usr/bin/ls | grep -F NEEDED
     0x0000000000000001 (NEEDED)             Shared library: [libselinux.so.1]
     0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

I wrote the following patch and then bumped the version number:

$ diff -u debian/control.orig debian/control
--- debian/control.orig 2026-10-11 19:14:52.598734877 -0700
+++ debian/control      2026-10-11 19:15:49.163618195 -0700
@@ -2,7 +2,7 @@
 Maintainer: Michael Stone <[email protected]>
 Section: utils
 Standards-Version: 4.7.3
-Build-Depends: gettext (>= 0.10.37), debhelper-compat (= 13), texinfo (>= 4.2) 
<!nodoc>, libattr1-dev [linux-any], libacl1-dev [linux-any], libselinux-dev 
[linux-any], gperf, bison, libgmp3-dev, libssl-dev, libsystemd-dev
+Build-Depends: gettext (>= 0.10.37), debhelper-compat (= 13), texinfo (>= 4.2) 
<!nodoc>, libattr1-dev [linux-any], libacl1-dev [linux-any], libselinux-dev 
[linux-any], gperf, bison, libgmp3-dev, libssl-dev, libsystemd-dev, libcap-dev
 
 Package: coreutils
 Architecture: any

Here is the relevant output from ./configure with those changes:

    checking for cap_get_file in -lcap... yes
    checking for sys/capability.h... yes

Here we can see that ‘ls’ from the just-built package has the libcap
dependency:

    $ dpkg-deb -x coreutils_9.10-1.1_amd64.deb out
    $ readelf -d out/usr/bin/ls | grep -F NEEDED
     0x0000000000000001 (NEEDED)             Shared library: [libselinux.so.1]
     0x0000000000000001 (NEEDED)             Shared library: [libcap.so.2]
     0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

Thanks,
Collin

[1] https://packages.debian.org/trixie/libsystemd0
[2] https://packages.debian.org/forky/libsystemd0

--- End Message ---
--- Begin Message ---
Source: coreutils
Source-Version: 9.12-0.3
Done: Daniel Baumann <[email protected]>

We believe that the bug you reported is fixed in the latest version of
coreutils, 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.
Daniel Baumann <[email protected]> (supplier of updated coreutils 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: SHA512

Format: 1.8
Date: Sat, 31 Oct 2026 00:01:30 +0100
Source: coreutils
Architecture: source
Version: 9.12-0.3
Distribution: unstable
Urgency: medium
Maintainer: Michael Stone <[email protected]>
Changed-By: Daniel Baumann <[email protected]>
Closes: 1150670 1152651
Changes:
 coreutils (9.12-0.3) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Cherry-picking patch from upstream:
     - relax env,printenv: only quote when outputting to terminals
       [GH: 355] (Closes: #1152651).
   * Adding direct libcap-dev to build-depends to bring back building with
     capability support, was previously pulled in via libsystemd-dev, thanks to
     Collin Funk <[email protected]> (Closes: #1150670).
   * Removed some useless whitespaces in packaging files at EOL.
Checksums-Sha1:
 fff9eb3d1ad82f196bef413273f82bce8f002a31 1334 coreutils_9.12-0.3.dsc
 8f0cb0d512acdd7daeb95cd31bc6484bbdeddeee 24700 coreutils_9.12-0.3.debian.tar.xz
 8823e47cf2a56da57f2e9c37adcb6352dc318c3d 6418 
coreutils_9.12-0.3_amd64.buildinfo
Checksums-Sha256:
 fd78cf0700a2cc2637e75874c4791f0b393de0220779cb0ca1a6edb5819be2e8 1334 
coreutils_9.12-0.3.dsc
 ea542e19b43876749bac120a0fdc81d8e89a079441a4f6a72fd4b073cc842c11 24700 
coreutils_9.12-0.3.debian.tar.xz
 9e16a34ddf53a034ebe103e933dec0a78c51c080c9c442b419d05283d6baab56 6418 
coreutils_9.12-0.3_amd64.buildinfo
Files:
 5441d66caea08d60c5bf74ff910e0c66 1334 utils optional coreutils_9.12-0.3.dsc
 21b97a0ea5fd066bf99869f1b4eb3e92 24700 utils optional 
coreutils_9.12-0.3.debian.tar.xz
 0c5031a66f9a8b5cfe761897c7a6b4c3 6418 utils optional 
coreutils_9.12-0.3_amd64.buildinfo

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

iHUEARYKAB0WIQQmmGg4gLaoSj0ERgL7tPDoCoAiLwUCauUlBAAKCRD7tPDoCoAi
L+h3AQD/QNH4tmiYIENasNgCu0JVLPesNp8xL/b5NF39N5QOPgD/S6G5H8Cw+/yb
7Y0+XVCUJwLGnNVvVWUFF4Heel3+UAo=
=7O7a
-----END PGP SIGNATURE-----

Attachment: pgpTBc7BvWtmU.pgp
Description: PGP signature


--- End Message ---

Reply via email to