Facing a problem with eautoreconf in sys-libs/db in Prefix, because even with libtool-2.2.6, elibtoolize still should apply some patches for AIX. Thing is, sys-libs/db sets S=${WORKDIR}/${P}/build_unix, but eautoreconf (and elibtoolize) must be run in ${WORKDIR}/${P}/dist. This is done by: cd "${S}"/../dist eautoreconf But in this situation, elibtoolize does not find anything to do, because it does: $(find "${S}" -name 'ltmain.sh'). The easy fix for sys-libs/db now would be: @@ cd "${S}"/../dist - eautoreconf + S="${S}"/../dist eautoreconf But this doesn't feel too correct, thus not filing against sys-libs/db, but eclasses instead. Question is: Should the _ebuild_ set $S for elibtoolize even when called via eautoreconf, or should _eautoreconf_ do that, somehow like this in autotools.eclass: @@ -115 +115 @@ eautoreconf() { - elibtoolize + S=${pwd} elibtoolize Or should elibtoolize be not necessary at all after real libtoolize, and the installed libtool contain all the fixes instead? But even then this inconsistency should be addressed.
setting S in eautoreconf when running elibtoolize seems like the safest thing to do for now elibtoolize includes changes/workarounds not appropriate for installed libtool, so elibtoolize is still needed http://sources.gentoo.org/eclass/autotools.eclass?r1=1.83&r2=1.84