Package: busybox Version: 1:1.14.2-2 Severity: wishlist Tags: patch
Hello, Could you please consider the following patch to be able to cross compile busybox package? diff -urN busybox-1.15.3/debian/patches/cross-compiler.patch busybox-1.15.3.foo//debian/patches/cross-compiler.patch --- busybox-1.15.3/debian/patches/cross-compiler.patch 1970-01-01 01:00:00.000000000 +0100 +++ busybox-1.15.3.foo//debian/patches/cross-compiler.patch 2010-03-03 21:59:40.000000000 +0100 @@ -0,0 +1,14 @@ +Index: busybox-1.15.3.foo/scripts/gcc-version.sh +=================================================================== +--- busybox-1.15.3.foo.orig/scripts/gcc-version.sh 2010-03-03 21:58:32.000000000 +0100 ++++ busybox-1.15.3.foo/scripts/gcc-version.sh 2010-03-03 21:59:13.000000000 +0100 +@@ -8,5 +8,9 @@ + + compiler="$*" + ++if [ x"${compiler}" == x"${DEB_HOST_GNU_TYPE}-" ]; then ++ compiler=${compiler}-gcc ++fi ++ + MAJ_MIN=$(echo __GNUC__ __GNUC_MINOR__ | $compiler -E -xc - | tail -n 1) + printf '%02d%02d\n' $MAJ_MIN diff -urN busybox-1.15.3/debian/patches/series busybox-1.15.3.foo//debian/patches/series --- busybox-1.15.3/debian/patches/series 2009-10-27 15:21:15.000000000 +0100 +++ busybox-1.15.3.foo//debian/patches/series 2010-03-03 21:56:18.000000000 +0100 @@ -4,3 +4,4 @@ version.patch init-console.patch strip.patch +cross-compiler.patch diff -urN busybox-1.15.3/debian/rules busybox-1.15.3.foo//debian/rules --- busybox-1.15.3/debian/rules 2010-02-11 14:07:56.000000000 +0100 +++ busybox-1.15.3.foo//debian/rules 2010-03-03 22:01:00.000000000 +0100 @@ -3,6 +3,8 @@ SHELL := sh -e DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH) +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) SOURCE := $(shell dpkg-parsechangelog | sed -ne 's,^Source: *\(.*\)$$,\1,p') VERSION_DEBIAN := $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p') VERSION := $(shell echo "$(VERSION_DEBIAN)" | sed -e 's,^[^:]*:,,' -e 's,-[^-]*$$,,') @@ -10,6 +12,10 @@ BUILD_DIR = debian/build STAMPS_DIR = debian/stamps +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +export CROSS_COMPILE = $(DEB_HOST_GNU_TYPE)- +endif + patch: $(STAMPS_DIR)/patch $(STAMPS_DIR)/patch: Kind regards, -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (600, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.32-2-686 (SMP w/2 CPU cores) Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages busybox depends on: ii libc6 2.10.2-5 Embedded GNU C Library: Shared lib busybox recommends no packages. busybox suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org