1 |
X compiling sys-libs/pam with USE="berkdb cracklib" will fail as both |
2 |
berkdb and cracklib installs .la files which points to the hosts sysroot |
3 |
|
4 |
AFAIK this problem is caused by libtool not being informed about the new |
5 |
sysroot. |
6 |
|
7 |
Adjusting sys-libs/pam ebuild: |
8 |
--- pam-1.1.8-r2.ebuild.org 2015-02-07 13:27:55.956949334 +0100 |
9 |
+++ pam-1.1.8-r2.ebuild 2015-02-07 13:30:05.171420033 +0100 |
10 |
@@ -4,7 +4,7 @@ |
11 |
|
12 |
EAPI=5 |
13 |
|
14 |
-inherit libtool multilib multilib-minimal eutils pam toolchain-funcs flag-o-matic db-use |
15 |
+inherit autotools libtool multilib multilib-minimal eutils pam toolchain-funcs flag-o-matic db-use |
16 |
|
17 |
MY_PN="Linux-PAM" |
18 |
MY_P="${MY_PN}-${PV}" |
19 |
@@ -92,7 +92,8 @@ |
20 |
src_prepare() { |
21 |
epatch "${FILESDIR}"/${PN}-1.1.8-doc-install.patch #473650 |
22 |
|
23 |
- elibtoolize |
24 |
+ #Regenerate libtool files as it is too old for sysroot support |
25 |
+ eautoreconf |
26 |
} |
27 |
|
28 |
multilib_src_configure() { |
29 |
@@ -115,6 +116,7 @@ |
30 |
$(use_enable nis) |
31 |
--with-db-uniquename=-$(db_findver sys-libs/db) |
32 |
--disable-prelude |
33 |
+ --with-sysroot=yes |
34 |
) |
35 |
|
36 |
will make the X compile succeed. |
37 |
|
38 |
I think it could be a good idea to have econf add --with-sysroot=yes automatically |
39 |
when cross building. Comments? |
40 |
|
41 |
Jocke |