Summary: | dev-libs/apr-util does not cross compile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bertrand Jacquin <bertrand> |
Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | binki, vapier |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=374355 https://bugs.gentoo.org/show_bug.cgi?id=204485 https://bugs.gentoo.org/show_bug.cgi?id=931829 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
apr-util-1.3.11:20111005-185712.log
apr-util-1.3.11.ebuild diff apr-util cross compile hacks |
Description
Bertrand Jacquin
2011-10-05 19:49:16 UTC
Created attachment 288899 [details]
apr-util-1.3.11:20111005-185712.log
The build log
Created attachment 288901 [details, diff]
apr-util-1.3.11.ebuild diff
The ebuild fix
ROOT variable shouldn't be used in src_*() phases. See PMS (12.1 Defined Variables). Comment on attachment 288901 [details, diff]
apr-util-1.3.11.ebuild diff
this is wrong. src_* should never use $ROOT.
Also, using the system-installed /usr/bin/libtool is wrong because that libtool contains hardcoded paths to gcc library directories which are generated at libtool’s installation time and not updated when the user installs or switches to new versions of gcc. Created attachment 369104 [details, diff]
apr-util cross compile hacks
i got it to somewhat work with this. adding external libs (like db) will still break though. basically i point the configure script to the SYSROOT apr-config, then re-insert the SYSROOT prefix into the -I/-L paths. it's terrible.
Commit message: Utilize SYSROOT to locate build-time paths when cross-compiling, and drop redundent -L/-R libdir flags to simplify linking. http://sources.gentoo.org/dev-libs/apr/apr-1.5.0-r2.ebuild?rev=1.1 http://sources.gentoo.org/dev-libs/apr/files/apr-1.5.0-sysroot.patch?rev=1.1 should be all set now in the tree; thanks for the report! Commit message: Utilize SYSROOT to locate build-time paths when cross-compiling, and drop redundent -L/-R libdir flags to simplify linking. Rewrite build/rules.mk to pick up current env settings rather than clobbering at make time. http://sources.gentoo.org/dev-libs/apr-util/apr-util-1.5.3-r1.ebuild?rev=1.1 http://sources.gentoo.org/dev-libs/apr-util/files/apr-util-1.5.3-sysroot.patch?rev=1.1 |