Package: apex Version: 1.4.14 Severity: wishlist Tags: patch Hi,
This patch changes the usage of DEB_BUILD_ARCH to the correct DEB_HOST_ARCH, which allows crossbuilding. regards, guillem
diff -Naur apex-1.4.14/debian/rules apex-1.4.14.new/debian/rules --- apex-1.4.14/debian/rules 2007-01-30 08:48:25.000000000 +0200 +++ apex-1.4.14.new/debian/rules 2007-01-31 18:01:35.000000000 +0200 @@ -10,21 +10,21 @@ package = apex-nslu2 docdir = debian/tmp/usr/share/doc/$(package) -DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH) -CONFIG := debian-nslu2-$(DEB_BUILD_ARCH)_config +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) +CONFIG := debian-nslu2-$(DEB_HOST_ARCH)_config CC = gcc CFLAGS = -g -Wall INSTALL_PROGRAM = install -ifeq (arm,$(DEB_BUILD_ARCH)) +ifeq (arm,$(DEB_HOST_ARCH)) ENDIAN:=l endif -ifeq (armel,$(DEB_BUILD_ARCH)) +ifeq (armel,$(DEB_HOST_ARCH)) ENDIAN:=l endif -ifeq (armeb,$(DEB_BUILD_ARCH)) +ifeq (armeb,$(DEB_HOST_ARCH)) ENDIAN:=b endif