Package: kernel-package
Version: 11.001
Severity: normal
Hey,
in ruleset/targets/targets.mk:300, I find the following, under the
debian/stamp-build-kernel target:
$(if $(subst $(strip $(UTS_RELEASE_VERSION)),,$(strip $(version))),
\
if [ -f $(UTS_RELEASE_HEADER) ]; then
\
uts_ver=$$(grep 'define UTS_RELEASE' $(UTS_RELEASE_HEADER) |
\
perl -nle 'm/^\s*\#define\s+UTS_RELEASE\s+("?)(\S+)\1/g &&
print $$2;'); \
if [ "X$$uts_ver" != "X$(strip $(UTS_RELEASE_VERSION))" ]; then
\
echo "The UTS Release version in $(UTS_RELEASE_HEADER)";
\
echo " \"$$uts_ver\" ";
\
echo "does not match current version " ;
\
echo " \"$(strip $(version))\" " ;
\
echo "Reconfiguring." ;
\
touch Makefile;
\
fi;
\
fi)
This extracts the version number from utsrelease.h and compares it with
$UTS_RELEASE_VERSION. AFAICS, $UTS_RELEASE_VERSION should by definition
also contain the version extracted from utsrelease.h. It would be more
logical to compare either $UTS_RELEASE_VERSION or $uts_ver with
$version, which is also what the output would suggest (the current
output does not match the check performed). All other version checks I
found do exactly this.
It seems that this is also why version mismatches appear to only be
detected until after the entire kernel has been compiled (which kinda
slowed down my debugging for #423721, for example).
Gr.
Matthijs
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22-rc6-ga5b67c9e-dirty (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages kernel-package depends on:
ii dpkg 1.14.5 package maintenance system for Deb
ii dpkg-dev 1.14.5 package building tools for Debian
ii file 4.21-1 Determines file type using "magic"
ii gcc [c-compiler] 4:4.1.2-3 The GNU C compiler
ii gcc-4.1 [c-compiler] 4.1.2-12 The GNU C compiler
ii gettext 0.16.1-2 GNU Internationalization utilities
ii make 3.81-3 The GNU version of the "make" util
ii perl 5.8.8-7 Larry Wall's Practical Extraction
ii po-debconf 1.0.9 manage translated Debconf template
Versions of packages kernel-package recommends:
ii bzip2 1.0.3-7 high-quality block-sorting file co
ii libc6-dev [libc-dev] 2.5-11 GNU C Library: Development Librari
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]