Package: gdbm
Version: 1.8.3-11
Severity: normal

gdbm still needs a minor fix to cross-build properly (using multiarch
rather than xdeb/dpkg-cross).

Here is an updated patch for the current release.

gdbm is a core debootstrap package so it's important that it
cross-builds properly for new architecture bootstrapping.

-- System Information:
Debian Release: 6.0.6
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32.33-kvm-i386-20111128-dirty (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -Nru gdbm-1.8.3/debian/changelog gdbm-1.8.3/debian/changelog
--- gdbm-1.8.3/debian/changelog	2012-06-10 10:00:39.000000000 +0100
+++ gdbm-1.8.3/debian/changelog	2012-11-17 01:51:38.000000000 +0000
@@ -1,3 +1,9 @@
+gdbm (1.8.3-11cross1) unstable; urgency=low
+
+  * Fix crossbuild to use correct strip binary 
+
+ -- Wookey <wookey@e102475-lin>  Sat, 17 Nov 2012 01:41:10 +0000
+
 gdbm (1.8.3-11) unstable; urgency=low
 
   * Debian source format is 3.0 (quilt)
diff -Nru gdbm-1.8.3/debian/rules gdbm-1.8.3/debian/rules
--- gdbm-1.8.3/debian/rules	2012-06-10 09:59:52.000000000 +0100
+++ gdbm-1.8.3/debian/rules	2012-11-17 01:51:38.000000000 +0000
@@ -20,7 +20,14 @@
 
 CFLAGS += -O2 -g -Wall -D_REENTRANT
 
-STRIP=strip --remove-section=.comment --remove-section=.note
+ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+  STRIPBIN = strip
+else
+  CROSSCONF = --host=$(DEB_HOST_GNU_TYPE)
+  STRIPBIN = $(DEB_HOST_GNU_TYPE)-strip
+endif 
+
+STRIP=$(STRIPBIN) --remove-section=.comment --remove-section=.note
 
 install_dir=install -d -m 755
 install_file=install -m 644
@@ -44,13 +51,8 @@
 	aclocal
 	autoconf
 	cp -f /usr/share/misc/config.sub /usr/share/misc/config.guess .
-ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
-	CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --prefix=/usr \
-		--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
-else
 	CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --prefix=/usr \
-	--host=$(DEB_HOST_GNU_TYPE) --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
-endif
+		$(CROSSCONF) --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
 	echo "/* We use fcntl locking (POSIX) instead of flock (BSD) */" >> autoconf.h
 	echo "#undef HAVE_FLOCK" >> autoconf.h
 	CFLAGS="$(CFLAGS)" LIBS="$(LDFLAGS)" $(MAKE)

Reply via email to