On Thu, 2012-07-19 at 08:45 +0200, Kurt Roeckx wrote: > I think that's just wrong. The /usr/bin/libtool file is generated > for the current architecture and doesn't support cross-building. > It's also the only reason this is an arch any package and not an > arch all pacakge.
erm. libtool supports cross-building as part of the GNU autotools suite. I must admit to being vague about exactly how it all works, but my understanding is that you want the build arch version of libtool installed so that the build machine can run it at build-time. /usr/bin/libtool is indeed generated for the current i.e 'build' architecture. I suspect Kurt is confused about what M-A: foreign means - it means a build-dep that can be satisfied by a foreign architecture (normally the one you are building stuff on). i.e when building libxaw for armel on an amd64 machine the 'libtool' Build-dep is satisfied by libtool:amd64, which is the version that can run on this machine. That is smart enough to to know to look up lib paths for armel, not amd64. Marking it M-A: foreign in Ubuntu allows a number of packages to build with it. libtool is a build-dep of 730 packages in debian and currently none of these can correctly install their cross-build dependencies. This little M-A: foreign annotation in libtool is one of the notable blockers to multiarch cross-building being useful in wheezy/unstable: http://people.linaro.org/~wookey/buildd/quantal/sbuild-ma/status.html currenlty preventing acl, cyrus-sasl2, libdbusmenu, libindicator, libpciaccess, libpng, libxcb, lua5,tslib, xcb-utils and xft. here's an example of it working: http://people.linaro.org/~wookey/buildd/precise/sbuild-ma/libxaw_2:1.0.9-3ubuntu1-precise-ma-cross-armel-20120403-023809.36275.log ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install cross build-dependencies (apt-get -a) │ └──────────────────────────────────────────────────────────────────────────────┘ Cross-deps: Running apt-get -aarmel build-dep libxaw ... libsm6:armel libtool libunistring0 libuuid1:armel libx11-6 libx11-6:armel ... Get:67 http://archive.ubuntu.com/ubuntu/ precise/main libtool amd64 2.4.2-1ubuntu1 [302 kB] ... Selecting previously unselected package libtool. Unpacking libtool (from .../libtool_2.4.2-1ubuntu1_amd64.deb) ... Setting up libtool (2.4.2-1ubuntu1) ... ... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build │ └──────────────────────────────────────────────────────────────────────────────┘ ... autoreconf: running: libtoolize --install --copy --force libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./config.guess' libtoolize: copying file `./config.sub' libtoolize: copying file `./install-sh' libtoolize: copying file `./ltmain.sh' libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. ... checking if libtool supports shared libraries... yes ... config.status: executing libtool commands config.status: executing libtool_hack commands ... /bin/bash ../libtool --mode=install /usr/bin/install -c libXaw7.la '/«PKGBUILDDIR»/debian/tmp/usr/lib/arm-linux-gnueabi' libtool: install: /usr/bin/install -c .libs/libXaw7.so.7.0.0 /«PKGBUILDDIR»/debian/tmp/usr/lib/arm-linux-gnueabi/libXaw7.so.7.0.0 libtool: install: (cd /«PKGBUILDDIR»/debian/tmp/usr/lib/arm-linux-gnueabi && { ln -s -f libXaw7.so.7.0.0 libXaw7.so.7 || { rm -f libXaw7.so.7 && ln -s libXaw7.so.7.0.0 libXaw7.so.7; }; }) libtool: install: (cd /«PKGBUILDDIR»/debian/tmp/usr/lib/arm-linux-gnueabi && { ln -s -f libXaw7.so.7.0.0 libXaw7.so || { rm -f libXaw7.so && ln -s libXaw7.so.7.0.0 libXaw7.so; }; }) libtool: install: /usr/bin/install -c .libs/libXaw7.lai /«PKGBUILDDIR»/debian/tmp/usr/lib/arm-linux-gnueabi/libXaw7.la libtool: install: /usr/bin/install -c .libs/libXaw7.a /«PKGBUILDDIR»/debian/tmp/usr/lib/arm-linux-gnueabi/libXaw7.a libtool: install: chmod 644 /«PKGBUILDDIR»/debian/tmp/usr/lib/arm-linux-gnueabi/libXaw7.a libtool: install: arm-linux-gnueabi-ranlib /«PKGBUILDDIR»/debian/tmp/usr/lib/arm-linux-gnueabi/libXaw7.a libtool: install: warning: remember to run `libtool --finish /usr/lib/arm-linux-gnueabi' Wookey -- Principal hats: Linaro, Emdebian, Wookware, Balloonboard, ARM http://wookware.org/ -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

