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

Re: glibc_2.3.2.ds1-12 packages up for testing



On Wed, Apr 28, 2004 at 10:51:20PM -0700, Jeff Bailey wrote:
> On Wed, Apr 28, 2004 at 11:59:46PM +0200, Michael Banck wrote:
> 
> > > The packages are slightly hacked (that's why they're called -12.0.1):
> > > 
> > >  - I removed a linux-specific kernel check in debian/rules with fails on
> > >    hurd-i386 and makes the package want to cross-compile
> > 
> > This remains to be fixed.
> 
> The kernel check really ought to be just enabled for gnumach/hurd since
> it will likely be needed for freebsd and netbsd as well.
 
> I always cross-compile the glibc packages for the Hurd.  Can you send me
> some more info about what's tripping it up?

The 'error message' is (IIRC):

"Forcing cross-compile by setting build to i386-dummy-gnu"

debian/rules.d/build.mk has the following check, which results in
configure_build getting rewritten to *-dummy-* if it fails:

 if ! $(call kernel_check,$(call xx,MIN_KERNEL_SUPPORTED)); then \
     configure_build=`echo $$configure_build | \
         sed 's/^\([^-]*\)-\([^-]*\)$$/\1-dummy-\2/'`; \

kernel_check is defined in debian/rules:

define kernel_check
(if [ $(CURRENT_KERNEL_VERSION) -lt $(1) ]; then \
  false; \
fi)
endef

and CURRENT_KERNEL_VERSION is defined in sysdeps/linux.mk along with an
version of kernel_check which seems to overwrite the one in debian/rules:

# This round of ugliness decomposes the Linux kernel version number
# into an integer so it can be easily compared and then does so.
CURRENT_KERNEL_VERSION=$(shell uname -r)
define kernel_check
(minimum=$$((`echo $(1) | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1
	\* 65536 + \2 \* 256 + \3/'`)); \
current=$$((`echo $(CURRENT_KERNEL_VERSION) | sed
	's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 +
	\3/'`)); \
if [ $$current -lt $$minimum ]; then \
  false; \
fi)
endef

So what about adding CURRENT_KERNEL_VERSION and MIN_KERNEL_SUPPORTED to
sysdeps/gnu.mk?

Or if that's not needed, overwriting kernel_check in sysdeps/gnu.mk to
return true always?


Michael

-- 
Michael Banck
Debian Developer
mbanck@debian.org
http://www.advogato.org/person/mbanck/diary.html



Reply to: