Skip to content
Snippets Groups Projects

debian/debhelper.in/libc.preinst: skip kernel check in chrootless mode

Merged Johannes Schauer Marin Rodrigues requested to merge josch/glibc:dpkg-root into sid
All threads resolved!

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

Checking pipeline status.

Merged by Aurelien JarnoAurelien Jarno 1 year ago (Apr 9, 2024 10:00pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 1 commit

    • 92e106d2 - debian/debhelper.in/libc.preinst: skip kernel check in chrootless mode

    Compare with previous version

  • resolved all threads

  • 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.

  • Aurelien Jarno added 4 commits

    added 4 commits

    • 92e106d2...e165102f - 3 commits from branch glibc-team:sid
    • 5ba4d5c8 - debian/debhelper.in/libc.preinst: skip kernel check in chrootless mode

    Compare with previous version

  • Aurelien Jarno added 7 commits

    added 7 commits

    • 5ba4d5c8...b80adafc - 6 commits from branch glibc-team:sid
    • 2545f12e - debian/debhelper.in/libc.preinst: skip kernel check in chrootless mode

    Compare with previous version

  • merged

  • Please register or sign in to reply
    Loading