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

Bug#245643: libc6: problem with $kernel_ver in preinst



Package: libc6
Version: 2.3.2.ds1-11
Severity: important
Tags: sid



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.3foulademer02032004
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (ignored: LC_ALL set to fr_FR@euro)

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information


Hi

When I upgrade libc6 2.3.2.ds1-11 to libc6 2.3.2.ds1-12 I have a
problem:
D000002: fork/exec /var/lib/dpkg/tmp.ci/preinst ( )
WARNING: Your kernel version indicates a revision number
of 255 or greater. Glibc has a number of built in
assumptions that this revision number is less than 255.
If you've built your own kernel, please make sure that any
custom version numbers are appended to the upstream
kernel number with a dash or some other delimiter.
dpkg : erreur de traitement de
/var/cache/apt/archives/libc6_2.3.2.ds1-12_i386.deb (--install) :
 le sous-processus pre-installation script a retourné une erreur de
sortie d'état 1

The script preinst contains:
# Test to make sure z < 255, in x.y.z-n form of kernel version
    kernel_rev=$(uname -r | awk -F '[.-]' '{print $3}')
    if [ "$kernel_rev" -ge 255 ]

But if you compiled your kernel with --append-to-version=foo, uname -r
will be x.y.zfoo and kernel_rev will contain foo and installation will fail (exit 1)

Thanks,



Reply to: