[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1063638: util-linux.postinst: please avoid calling uname in postinst for foreign kernel DPKG_ROOT support



Package: util-linux
Version: 2.39.3-6
Severity: normal
Tags: patch
X-Debbugs-Cc: debian-hurd@lists.debian.org
User: debian-hurd@lists.debian.org
Usertags: hurd-i386
User: debian-dpkg@lists.debian.org
Usertags: dpkg-root-support

Hi,

when using dpkg --force-script-chrootless to create foreign architecture
chroots, the use of `uname -s` should be avoided as the uname utility will
print information about the kernel of the system creating the chroot. This goes
wrong if, for example, one attempts creating a hurd chroot on linux. In case of
util-linux, avoiding the call to uname can easily be achieved by checking for
the value of DEB_HOST_ARCH_OS during the build and only emitting the offending
postinst snippet for linux. Patch is here:

https://salsa.debian.org/debian/util-linux/-/merge_requests/29

Thanks!

cheers, josch


Reply to: