I'm attaching a patch for debian/rules that allows cross-building of attr. It would be wise still to add AC_PROG_LIBTOOL to configure.in and tweak include/builddefs.in using the patches from the previous message:
--- attr-2.4.18/include/builddefs.in 2004-09-15 10:26:20.000000000 +0900 +++ attr-2.4.18/include/builddefs.in 2004-12-03 16:08:17.000000000 +0900 @@ -32,6 +32,8 @@ # @configure_input@ # +top_builddir = @top_builddir@ + ifndef _BUILDDEFS_INCLUDED_ _BUILDDEFS_INCLUDED_ = 1 --- attr.old/configure.in 2007-05-06 18:52:26.000000000 +0100 +++ attr-2.4.32/configure.in 2007-05-06 20:01:35.000000000 +0100 @@ -2,6 +2,8 @@ AC_CONFIG_HEADER(include/config.h) AC_PREFIX_DEFAULT(/usr) +AC_PROG_LIBTOOL + AC_ARG_ENABLE(shared, [ --enable-shared=[yes/no] Enable use of shared libraries [default=yes]],, enable_shared=yes) The attached patch for debian/rules is simpler than the Emdebian one and can be applied without affecting the Debian build. Please can this old bug be fixed? I am willing to upload an NMU if preferred. -- Neil Williams ============= http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/
--- attr.old/debian/rules 2007-11-07 15:01:13.000000000 +0000 +++ attr-2.4.39/debian/rules 2007-11-07 15:02:12.000000000 +0000 @@ -4,6 +4,13 @@ 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) dirlib = debian/$(library) @@ -29,6 +36,9 @@ .census: @echo "== dpkg-buildpackage: configure" 1>&2 $(checkdir) + libtoolize + aclocal -I m4 + autoconf $(options) $(MAKE) configure touch .census
pgpKryAJe4kG7.pgp
Description: PGP signature

