** Changed in: libcap2 (Debian)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to libcap2 in Ubuntu.
https://bugs.launchpad.net/bugs/872435
Title:
libcap2 fails to cross-build
Status in “libcap2” package in Ubuntu:
Fix Released
Status in “libcap2” package in Debian:
Fix Released
Bug description:
libcap2 fails to cross-build:
Base natty source has no cross support. Adding standard 'set cross-build
variables' support to this debhelper package makes it try to do the right
thing, but it tries to link to x86 libraries:
arm-linux-gnueabi-gcc -Wl,-x -shared -O2 -Dlinux -Wall -Wwrite-strings
-Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g
-L/home/wookey/testing/build/build/xdeb/libcap2/libcap/../libcap -lattr
-Wl,-soname,libcap.so.2 -o libcap.so.2.20 cap_alloc.o cap_proc.o cap_extint.o
cap_flag.o cap_text.o cap_file.o
/usr/lib/x86_64-linux-gnu/libattr.so: file not recognized: File format not
recognized
The actual problem seems to be that xdeb fails to install libattr1
-armel-cross and libattr1-dev-armel-cross and the compiler has the
host library path on the end of the search list so if the build-arch
version of the library is installed then it gets found and used.
There is also a bug in this versoin of the package so that attempting
to do make clean without pam-modules installed fails. That is the
subject of a separate bug.
------------
The build command is:
xdeb --only-explicit -a armel --prefer-apt --apt-source --debug
--force-rebuild bash
The actual build command xdeb issues is:
debuild --no-lintian -eUSER -eCONFIG_SITE=/etc/dpkg-cross/cross-config.armel
-eDEB_BUILD_OPTIONS=nocheck -eGTEST_INCLUDEDIR=/usr/arm-linux-gnueabi/include
-eGTEST_LIBDIR=/usr/arm-linux-gnueabi/lib
-ePKG_CONFIG_LIBDIR=/usr/arm-linux-gnueabi/lib/pkgconfig:/usr/arm-linux-gnueabi/share/pkgconfig:/usr/share/pkgconfig
-eDH_VERBOSE=1 -aarmel -b -uc -us -tc
To easily reproduce the build environment in which this bug was discovered
follow the HOWTO here:
https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/CrossBuildNano
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libcap2/+bug/872435/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp