debian/debhelper.in/libc.preinst: skip kernel check in chrootless mode
If glibc is installed in chrootless mode (i.e. $DPKG_ROOT is not empty), then checking the currently running kernel is not useful. At the point where the chroot is created on system X, the kernel running on X can be wildly different from the system Y that the chroot is supposed to run on.
This was discovered when creating hurd chroots on linux. The tools creating the chroot have no information about the kernel which might run on the system that the chroot is built for.
This commits adds an additional condition to the preinst block doing the kernel checks. It is only executed if $DPKG_ROOT is empty, in other words, only if this is a normal installation.
Closes: #1063624
Merge request reports
Activity
added 1 commit
- c5a17e66 - debian/debhelper.in/libc.preinst: skip kernel check in chrootless mode
added 1 commit
- fa910ea8 - debian/debhelper.in/libc.preinst: skip kernel check in chrootless mode
- Resolved by Johannes Schauer Marin Rodrigues
added 1 commit
- 92e106d2 - debian/debhelper.in/libc.preinst: skip kernel check in chrootless mode
Hi, I saw that glibc 2.38-6 was uploaded to experimental by @aurel32 -- should my MR target experimental instead? Thanks!
Probably yes, but I am not even sure about that.
The idea was to get glibc 2.38 into testing/unstable beginning of Ddecember, but it got blocked by a binutils snapshot upload and now the time_t transition. Right now glibc is broken on 32-bit architectures due to the time_t transition, and the only thing we have is an ugly patch from Ubuntu disabling many tests.
In short glibc development in debian is currently stalled, not sure when it will be able to restart it.
added 4 commits
-
92e106d2...e165102f - 3 commits from branch
glibc-team:sid
- 5ba4d5c8 - debian/debhelper.in/libc.preinst: skip kernel check in chrootless mode
-
92e106d2...e165102f - 3 commits from branch
added 7 commits
-
5ba4d5c8...b80adafc - 6 commits from branch
glibc-team:sid
- 2545f12e - debian/debhelper.in/libc.preinst: skip kernel check in chrootless mode
-
5ba4d5c8...b80adafc - 6 commits from branch