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

Bug#954374: marked as done (libc6: please make maintainerscript compatible with busybox)



Your message dated Tue, 24 Mar 2020 22:51:36 +0000
with message-id <E1jGsOW-000GyA-WA@fasolo.debian.org>
and subject line Bug#954374: fixed in glibc 2.30-3
has caused the Debian Bug report #954374,
regarding libc6: please make maintainerscript compatible with busybox
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
954374: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954374
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libc6
Version: 2.30-2
Severity: wishlist

Hi,

would it be possible to make the libc6 preinst maintainer script
compatible with busybox? Currently the preinst script calls "readlink
-m" which is not supported by busybox. Hence the following error will be
thrown:

    BusyBox v1.30.1 (Debian 1:1.30.1-4) multi-call binary.
    
    Usage: readlink [-fnv] FILE
    
    Display the value of a symlink
    
    	-f	Canonicalize by following all symlinks
    	-n	Don't add newline
    	-v	Verbose

I tried to prepare a patch for the preinst script but ran into a FTBFS:

x86_64-linux-gnu-gcc-9   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-linker=/lib64/ld-linux-x86-64.so.2  -B/<<PKGBUILDDIR>>/build-tree/amd64-libc/csu/  -Wl,--version-script=/<<PKGBUILDDIR>>/build-tree/amd64-libc/libnss_files.map -Wl,-soname=libnss_files.so.2 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both   -L/<<PKGBUILDDIR>>/build-tree/amd64-libc -L/<<PKGBUILDDIR>>/build-tree/amd64-libc/math -L/<<PKGBUILDDIR>>/build-tree/amd64-libc/elf -L/<<PKGBUILDDIR>>/build-tree/amd64-libc/dlfcn -L/<<PKGBUILDDIR>>/build-tree/amd64-libc/nss -L/<<PKGBUILDDIR>>/build-tree/amd64-libc/nis -L/<<PKGBUILDDIR>>/build-tree/amd64-libc/rt -L/<<PKGBUILDDIR>>/build-tree/amd64-libc/resolv -L/<<PKGBUILDDIR>>/build-tree/amd64-libc/mathvec -L/<<PKGBUILDDIR>>/build-tree/amd64-libc/support -L/<<PKGBUILDDIR>>/build-tree/amd64-libc/nptl -Wl,-rpath-link=/<<PKGBUILDDIR>>/build-tree/amd64-libc:/<<PKGBUILDDIR>>/build-tree/amd64-libc/math:/<<PKGBUILDDIR>>/build-tree/amd64-libc/elf:/<<PKGBUILDDIR>>/build-tree/amd64-libc/dlfcn:/<<PKGBUILDDIR>>/build-tree/amd64-libc/nss:/<<PKGBUILDDIR>>/build-tree/amd64-libc/nis:/<<PKGBUILDDIR>>/build-tree/amd64-libc/rt:/<<PKGBUILDDIR>>/build-tree/amd64-libc/resolv:/<<PKGBUILDDIR>>/build-tree/amd64-libc/mathvec:/<<PKGBUILDDIR>>/build-tree/amd64-libc/support:/<<PKGBUILDDIR>>/build-tree/amd64-libc/nptl -o /<<PKGBUILDDIR>>/build-tree/amd64-libc/nss/libnss_files.so  /<<PKGBUILDDIR>>/build-tree/amd64-libc/csu/abi-note.o -Wl,--whole-archive /<<PKGBUILDDIR>>/build-tree/amd64-libc/nss/libnss_files_pic.a -Wl,--no-whole-archive   -Wl,--start-group /<<PKGBUILDDIR>>/build-tree/amd64-libc/linkobj/libc.so /<<PKGBUILDDIR>>/build-tree/amd64-libc/libc_nonshared.a -Wl,--as-needed /<<PKGBUILDDIR>>/build-tree/amd64-libc/elf/ld.so -Wl,--no-as-needed -Wl,--end-group
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libselinux.so: undefined reference to `gettid@GLIBC_2.30'
collect2: error: ld returned 1 exit status

Thus, I'm now reporting this wishlist bug here before further working on
a fix.

Would you be willing to accept a change that makes the preinst script of
libc6 compatible with readlink from busybox?

Thanks!

cheers, josch


-- System Information:
Debian Release: bullseye/sid
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.19.0-8-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

--- End Message ---
--- Begin Message ---
Source: glibc
Source-Version: 2.30-3
Done: Aurelien Jarno <aurel32@debian.org>

We believe that the bug you reported is fixed in the latest version of
glibc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 954374@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <aurel32@debian.org> (supplier of updated glibc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 24 Mar 2020 23:31:35 +0100
Source: glibc
Architecture: source
Version: 2.30-3
Distribution: unstable
Urgency: medium
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Aurelien Jarno <aurel32@debian.org>
Closes: 953788 954374 954393 954715
Changes:
 glibc (2.30-3) unstable; urgency=medium
 .
   * debian/patches/git-updates.diff: update from upstream stable branch:
     - Fix a defect in the PowerPC backtrace function that could cause an
       out-of-bounds write when executed in a signal frame context
       (CVE-2020-1751).
     - Fix use-after-free vulnerability in the glob function when expanding
       ~user (CVE-2020-1752).  Closes: #953788.
   * debian/debhelper.in/libc.preinst, debian/rules.d/debhelper.mk: determine
     ld.so ELF magic at build time instead of at run time to avoid using
     "readlink -m".  Closes: #954374.
   * debian/rules.d/build.mk: unset LANGUAGE when running the testsuite.
   * debian/testsuite-xfail-debian.mk: ignore signal/tst-minsigstksz-1 and
     signal/tst-minsigstksz-2 on i386, they fail on i386 with an AVX-512 CPUs
     due to a kernel bug.  Closes: #954715.
   * debian/control.in/libc, debian/rules.d/debhelper.mk: Make libcX-dev
     declare a Breaks against libcX-dev-${DEB_HOST_ARCH}-cross
     (<< ${CURRENT_UPSTREAM_VERSION}~).  Closes: #954393.
   * debian/control.in/libc, debian/control.in/main: drop Conflicts, Breaks and
     Replaces against package version older than the one available in
     oldstable.
Checksums-Sha1:
 9fb2b38522f65cb047693cbc019c6060534eb454 8731 glibc_2.30-3.dsc
 191c5341141d90e9d23a9aa16302937d4cfe55d1 844628 glibc_2.30-3.debian.tar.xz
 a6d2d6a834be565122a56b6445ceed6a55339dc6 7589 glibc_2.30-3_source.buildinfo
Checksums-Sha256:
 31f0fd70db8c677f9f0cd526b5a43d8d719a76291181364290f4700c516395c7 8731 glibc_2.30-3.dsc
 8995fbf0cca7ddab0d771b79c50fe78bbec9ef30a31ee0aa83d56899de83a822 844628 glibc_2.30-3.debian.tar.xz
 f878eda4037d5e79b438ac4af7313ace941270bbbcd41b9f379db4d7bc9e1acd 7589 glibc_2.30-3_source.buildinfo
Files:
 02306dbedb1e825fc3af27f6d474ebb3 8731 libs required glibc_2.30-3.dsc
 7cc54067c6e3ee5929dac8b489cf2c2a 844628 libs required glibc_2.30-3.debian.tar.xz
 2cc1c5109fd12d759019b743b197b3a7 7589 libs required glibc_2.30-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEUryGlb40+QrX1Ay4E4jA+JnoM2sFAl56i4oACgkQE4jA+Jno
M2tkbw/+OUUbH9cXbJ6cT21m1x6s+nzyysl9667sXqBNAtrFAffzGfIRnrqoeein
YSmQmrPJz+M0gSMrLWT+qAGhud299JXFrbSmb5FhjtgRIX+000z5xlmaD2927iaw
hRlaVeRTLJYDiDSgLeAt4xoHBRcny41TWBBj0gu7AmFUpl3AhZ9/hGCoDbm18hAm
CZZYCBMhi7XRBwqVszl9i4QYze9+NulNniAXkUK4DXMAEBqXurteq3IfpRkvl78x
U1/Qimei4BphGP4LpGb+JDF63GT6WRbTl5X8okU0NUcfD9ZkVuMTIuYgGp86rBbz
Ou1N3nDG2eBPa3PZo6mhzFvOtRHknuPjF1HbpElwJAhYTdVchH2pU0csiHBm2efb
pePY7LUnHUYU9rV3Q60PpVfE3iyh0Hp921VHLAn5nsViIheM3kC4Pkm4YZ3mgBUC
uz2RoeQMcbU/qlZfQwzIdShWLfsZNfMHHmsm/u8I6zVyCdoVRkvHsR9ua6jKxrXa
GFnssnsmJAQ/8C6Fg8Kud9fXifrHatGCwnNR0YrmpxNO5eLTxglGCirVFrpNBoSX
ssu6lZcijXrZMSlQynRm1uCwHIzlWr54Z1FcNm5RYqlCobAk/v5OvTxZQrv79RMt
jKBrhfg9sln9aVCL4Vz6cc8pfF1bToLYTh9iRHlM3a+JHdLPJlw=
=vUWC
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: