Source: klibc
Version: 2.0-2
Severity: important
Tags: patch

Building klibc on i386 with an x86_64 kernel produces packages
containing 64-bit binaries.  While this can be avoided by running the
build process under "setarch i386", it is not nice.  The following patch
fixes the problem:

--8<---------------cut here---------------start------------->8---
diff --git a/debian/rules b/debian/rules
index 52f70e6..1fb4c44 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,9 @@ endif
 ifeq ($(DEB_HOST_ARCH),ia64)
 DEB_MAKE_ENVVARS := ARCH=ia64
 endif
+ifeq ($(DEB_HOST_ARCH),i386)
+DEB_MAKE_ENVVARS := ARCH=i386
+endif
 ifeq ($(DEB_HOST_ARCH),sparc)
 DEB_MAKE_ENVVARS := ARCH=sparc
 endif
--8<---------------cut here---------------end--------------->8---


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.4.2-nouveau (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to