Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158068 - [PATCH] sys-apps/acl: allow crosscompile (by not abusing system's libtool)
Summary: [PATCH] sys-apps/acl: allow crosscompile (by not abusing system's libtool)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 2 votes (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-13 12:09 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-05-27 19:49 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild patch (acl-ebuild.patch,1.15 KB, patch)
2006-12-26 17:38 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
acl-2.2.39-leave-las-to-libtool.patch (acl-2.2.39-leave-las-to-libtool.patch,837 bytes, patch)
2006-12-26 17:38 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
attr-2.4.32-libtool.patch (attr-2.4.32-libtool.patch,1.51 KB, patch)
2006-12-26 17:38 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
acl-2.2.49 failing build log (log,183.96 KB, text/plain)
2011-03-04 21:54 UTC, Sergey Mironov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-13 12:09:40 UTC
Splitting out the second issue of bug #158040 here:

=== getfacl ===
gmake[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make
rule.
arm-carel-linux-gnu-gcc -O -ggdb -fno-inline -O -ggdb -fno-inline -DNDEBUG
-funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.34\"
-DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I./include -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64  -O -ggdb -fno-inline -DNDEBUG -funsigned-char
-fno-strict-aliasing -Wall -DVERSION=\"2.2.34\"
-DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I../include -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64    -c -o getfacl.o getfacl.c
arm-carel-linux-gnu-gcc -O -ggdb -fno-inline -O -ggdb -fno-inline -DNDEBUG
-funsigned-char -fno-strict-aliasing -Wall -DVERSION=\"2.2.34\"
-DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I./include -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64  -O -ggdb -fno-inline -DNDEBUG -funsigned-char
-fno-strict-aliasing -Wall -DVERSION=\"2.2.34\"
-DLOCALEDIR=\"/usr/share/locale\" -DPACKAGE=\"acl\" -I../include -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64    -c -o user_group.o user_group.c
/usr/arm-carel-linux-gnu/usr/bin/libtool --mode=link arm-carel-linux-gnu-gcc -o
getfacl    getfacl.o user_group.o   ../libacl/libacl.la /usr/lib/libattr.la
../libmisc/libmisc.la
mkdir .libs
arm-carel-linux-gnu-gcc -o .libs/getfacl getfacl.o user_group.o 
../libacl/.libs/libacl.so -lattr /usr/lib/libattr.so ../libmisc/.libs/libmisc.a
/usr/libexec/gcc/arm-carel-linux-gnu/ld: skipping incompatible /lib/libattr.so
when searching for /lib/libattr.so
/usr/libexec/gcc/arm-carel-linux-gnu/ld: cannot find /lib/libattr.so
collect2: ld returned 1 exit status
gmake[1]: *** [getfacl] Error 1
make: *** [default] Error 2

This is caused by the configure script, that tests for presence of /usr/lib/libattr.la and use that if found, which a) makes libtool use pointless, as libtool is supposed to find the library by itself when passing -lattr and b) disallow to crosscompile as it will involve the library specified with full path that's obviously incompatible; it's also broken for multilib systems when building for the ABI that is *not* the one linked in /usr/lib.

The attached patch applies the same libtool fix as per bug #158040 and then removes the tests for /usr/lib/libattr.la presence entirely. The package builds fine both native and in cross-compile.

HTH,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-26 17:33:23 UTC
Same as per bug #158040, going to attach the new patches.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-26 17:38:07 UTC
Created attachment 104783 [details, diff]
Ebuild patch
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-26 17:38:36 UTC
Created attachment 104784 [details, diff]
acl-2.2.39-leave-las-to-libtool.patch
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-12-26 17:38:58 UTC
Created attachment 104785 [details, diff]
attr-2.4.32-libtool.patch
Comment 5 Santiago M. Mola (RETIRED) gentoo-dev 2007-05-09 17:24:28 UTC
Is there any point to ignore this bug (and #158040)? or is it just that it's not a priority?
Comment 6 SpanKY gentoo-dev 2007-09-05 13:52:00 UTC
*** Bug 191363 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2007-09-20 06:17:16 UTC
added to acl-2.2.45
Comment 8 Sergey Mironov 2011-03-04 21:52:06 UTC
Looks like the problem is still alive for sys-apps/acl-2.2.49.

It fails to cross-compile with same error message

cl_init.o .libs/acl_set_fd.o .libs/acl_set_file.o .libs/acl_set_permset.o .libs/acl_set_qualifier.o .libs/acl_set_tag_type.o .libs/acl_to_text.o .libs/acl_valid.o .libs/acl_size.o .libs/acl_to_any_text.o .libs/acl_entries.o .libs/acl_check.o .libs/acl_error.o .libs/acl_cmp.o .libs/acl_extended_fd.o .libs/acl_extended_file.o .libs/acl_equiv_mode.o .libs/acl_from_mode.o .libs/__acl_to_any_text.o .libs/__acl_to_xattr.o .libs/__acl_from_xattr.o .libs/__acl_reorder_obj_p.o .libs/__libobj.o .libs/__apply_mask_to_mode.o .libs/perm_copy_fd.o .libs/perm_copy_file.o  -Wl,--whole-archive ../libmisc/.libs/libmisc.a -Wl,--no-whole-archive  -L/usr/arm-module3-linux-gnueabi/lib -L/usr/arm-module3-linux-gnueabi/usr/lib /usr/lib/libattr.so  -Wl,--version-script -Wl,../exports   -Wl,-soname -Wl,libacl.so.1 -o .libs/libacl.so.1.1.0
/usr/libexec/gcc/arm-module3-linux-gnueabi/ld: skipping incompatible /lib/libattr.so when searching for /lib/libattr.so
/usr/libexec/gcc/arm-module3-linux-gnueabi/ld: cannot find /lib/libattr.so
collect2: ld returned 1 exit status
gmake[2]: *** [libacl.la] Error 1
gmake[2]: Leaving directory `/usr/arm-module3-linux-gnueabi/tmp/portage/sys-apps/acl-2.2.49/work/acl-2.2.49/libacl'
gmake[1]: *** [libacl] Error 2
gmake[1]: Leaving directory `/usr/arm-module3-linux-gnueabi/tmp/portage/sys-apps/acl-2.2.49/work/acl-2.2.49'
make: *** [default] Error 2
Comment 9 Sergey Mironov 2011-03-04 21:54:20 UTC
Created attachment 264755 [details]
acl-2.2.49 failing build log
Comment 10 Hinri 2011-04-04 19:41:25 UTC
Confirmation of problem acl cross-compile for alpha

/usr/libexec/gcc/alpha-unknown-linux-gnu/ld: skipping incompatible /lib/libattr.so when searching for /lib/libattr.so
/usr/libexec/gcc/alpha-unknown-linux-gnu/ld: cannot find /lib/libattr.so
collect2: ld returned 1 exit status
gmake[2]: *** [libacl.la] Error 1
gmake[2]: Leaving directory `/usr/__CHOST__/tmp/portage/sys-apps/acl-2.2.49/work/acl-2.2.49/libacl'
gmake[1]: *** [libacl] Error 2
gmake[1]: Leaving directory `/usr/__CHOST__/tmp/portage/sys-apps/acl-2.2.49/work/acl-2.2.49'
make: *** [default] Error 2
 * ERROR: sys-apps/acl-2.2.49 failed:
 *   (no error message)