#1138217 No alternatives registerd on GNU/Hurd

Package:
src:procps
Source:
src:procps
Submitter:
Mattias Ellert
Date:
2026-06-01 14:59:01 UTC
Severity:
normal
Tags:
#1138217#5
Date:
2026-05-29 15:02:26 UTC
From:
To:
The procps package on GNU/Hurd installs some binaries with a .procps
suffix:

/usr/bin/kill.procps
/usr/bin/ps.procps
/usr/bin/uptime.procps
/usr/bin/vmstat.procps

However, only vmstat gets registered as an alternative:

$ update-alternatives --list ps
/bin/ps-hurd
$ update-alternatives --list uptime
/usr/bin/uptime-hurd
$ update-alternatives --list vmstat
/usr/bin/vmstat-hurd
/usr/bin/vmstat.procps
$ update-alternatives --list kill
update-alternatives: error: no alternatives for kill

The missing registration for kill is a problem, since no other version
is provided. The built-in kill in the shell can be used, but if scripts
explicitly use /bin/kill or /usr/bin/kill they fail. This causes FTBFS
for packages that uses /bin/kill in the test scripts, see e.g.

https://buildd.debian.org/status/package.php?p=myproxy

The package above built fine in December (including successful tests on
GNU/Hurd), but failed a binNMU now. So something seems to have happened
since then.

	Mattias

#1138217#10
Date:
2026-05-30 15:29:49 UTC
From:
To:
The attached debdiff fixes the build and installation of the package on
GNU/Hurd.

The main problem is that there is both a debian/postinst and a
debian/procps.postinst in the debian folder. This means that
debian/postinst is ignored in favour of debian/procps.postinst. The
alternatives were handled in the ignored file.

The debdiff also addresses some other issues with the GNU/urd build of
the package.

	Mattias

#1138217#17
Date:
2026-06-01 14:55:00 UTC
From:
To:
The non-packaging related changes (i.e. changes outside the debian
folder) in the debdiff were forwarded upstream.

	Mattias