> Fixes were made to the attr package after this bug was initially
> filed. Can the current package (2.4.42) be verified to still have
> cross-compilation issues or can this be closed/rejected?
 
attr still needs changes to be cross-built. Current version in Emdebian
Crush: 1:2.4.41-1

The remaining changes are in debian/rules and require updating libtool
as well as implementing the standard fix recommended by autotools-dev
for --build and --host.

Without running libtoolize in debian/rules, the cross-build fails with:
/usr/bin/libtool --mode=compile arm-linux-gnu-gcc -g -O2 -g -O2 -DNDEBUG 
-funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.4.43\" 
-DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"attr\" -I./include -D_GNU_SOURCE 
-D_FILE_OFFSET_BITS=64  -g -O2 -DNDEBUG -funsigned-char -fno-strict-aliasing 
-Wall -DVERSION=\"2.4.43\" -DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"attr\" 
-I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64   -c quote.c
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[2]: *** [quote.lo] Error 1

Attaching the patch for debian/rules.



-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

--- attr-2.4.43.debian/debian/rules 
+++ attr-2.4.43.emdebian/debian/rules 
@@ -3,6 +3,13 @@
 package = attr
 develop = lib$(package)1-dev
 library = lib$(package)1
+
+DEB_BUILD_GNU_TYPE  = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_GNU_TYPE   = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+LOCAL_CONFIGURE_OPTIONS = --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
+export LOCAL_CONFIGURE_OPTIONS
+endif
 
 dirme  = debian/$(package)
 dirdev = debian/$(develop)
@@ -28,6 +35,9 @@
 .census:
 	@echo "== dpkg-buildpackage: configure" 1>&2
 	$(checkdir)
+	libtoolize
+	aclocal -I m4
+	autoconf
 	$(options) $(MAKE) configure
 	touch .census
 
@@ -38,6 +48,7 @@
 	$(MAKE) distclean
 	-rm -rf $(dirme) $(dirdev) $(dirlib) debian/tmp
 	-rm -f debian/*substvars debian/files* debian/*.debhelper
+	${RM} config.guess config.sub ltmain.sh
 
 binary-indep:
 

Attachment: pgpnDfuuSDSCs.pgp
Description: PGP signature

Reply via email to