[Bug 1889190] Re: ldconfig is still deferred in libc6.preinst

Launchpad Bug Tracker 1889190 at bugs.launchpad.net
Tue Sep 22 15:30:18 UTC 2020


This bug was fixed in the package glibc - 2.31-0ubuntu9.1

---------------
glibc (2.31-0ubuntu9.1) focal; urgency=medium

  [ Michael Hudson-Doyle ]
  * Mark tst-getpw as XFAIL on arm64. (LP: #1869364)

  [ Matthias Klose ]
  * Copy the fully conditionalized x86 variant for math-vector-fortran.h
    to /usr/include/finclude. On all architectures. (LP: #1879092)

  [ Balint Reczey ]
  * debian/gbp.conf: Add initial configuration
  * debian/control.in/main: Add Vcs-* pointing to Ubuntu packaging repository
  * debian/debhelper.in/libc.preinst: Fix setting LDCONFIG_NOTRIGGER
    (LP: #1889190)
  * Fall back to calling nanosleep syscall when __clock_nanosleep returns
    EINVAL due to CLOCK_REALTIME not being supported (LP: #1871129)
  * debian/testsuite-xfail-debian.mk: XFAIL tst-getpw on armhf, too
    (LP: #1869364)
  * XFAIL stdlib/tst-getrandom (LP: #1891403)

  [ Dimitri John Ledkov ]
  * debian/patches/powerpc: Cherrypick upstream patches to support POWER10
    optimized library loading. LP: #1887989

 -- Balint Reczey <rbalint at ubuntu.com>  Mon, 17 Aug 2020 22:02:52 +0200

** Changed in: glibc (Ubuntu Focal)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1889190

Title:
  ldconfig is still deferred in libc6.preinst

Status in glibc package in Ubuntu:
  Fix Released
Status in glibc source package in Focal:
  Fix Released

Bug description:
  [Impact]

   * Upgrade from Bionic to Focal may break if LDCONFIG_TRIGGER_DEBUG is set
   * The fix really forces ldconfig to run immediately

  [Test Case]

  $ lxc launch ubuntu:bionic bb-glibc-upgrade
  $ lxc shell bb-glibc-upgrade
  # export LDCONFIG_TRIGGER_DEBUG=1
  #  apt update -qq && apt upgrade -qq -y && do-release-upgrade -d
  ...

  With the broken version the following message can be observed:
  ..
  Preparing to unpack .../libc6_2.31-0ubuntu9_amd64.deb ...

  Progress: [ 38%]
  ldconfig: wrapper deferring update (trigger activated)
  ...

  The fixed version runs ldconfig immediately after unpacking libc6.

  [Regression Potential]

  * Very small, the fix is literally adding one single character to
  properly set LDCONFIG_NOTRIGGER. Running ldconfig immediately as
  originally planned does not seem to cause issues.

  [Other Info]

  Fix:
  --- a/debian/debhelper.in/libc.preinst
  +++ b/debian/debhelper.in/libc.preinst
  @@ -22,7 +22,7 @@ kfreebsd_compare_versions () {
   # libcrypt1 breaks/replaces libc6 (<< 2.31). cannot use a pre-depends on libcrypt1
   # call ldconfig unconditionally for the first libc6 depending on libcrypt1
   if [ -n "$preversion" ] && dpkg --compare-versions "$preversion" lt 2.31-0ubuntu2; then
  -       LCONFIG_NOTRIGGER=y
  +       LDCONFIG_NOTRIGGER=y
          export LDCONFIG_NOTRIGGER
          ldconfig || ldconfig --verbose
   fi

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1889190/+subscriptions



More information about the foundations-bugs mailing list