$ qlist dev-perl/perl-tk /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.HPUX.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.OSF.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.darwin.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.Solaris.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.AIX.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/Changes.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README-Strawberry.txt.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README-ActiveState.txt.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/VERSIONS.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.ultrix.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.SVR4.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/Change.log.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.SCO.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.os2.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.cygwin.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.linux.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.OpenBSD.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/ToDo.lzma /opt/scisoft64/usr/share/doc/perl-tk-804.29.0/README.IRIX.lzma is nothing compared to a normal install. Emerge says >>> Configuring source in /tmp/portage/dev-perl/perl-tk-804.29.0/work/Tk-804.029 ... * Using ExtUtils::MakeMaker * perl Makefile.PL PREFIX=/opt/scisoft64/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/tmp/portage/dev-perl/perl-tk-804.29.0/image/ X11ROOT=/opt/scisoft64/usr XFT=1 -I/opt/scisoft64/usr/include/ -l/opt/scisoft64/usr/lib --oldincludedir=/opt/scisoft64/usr/include/ /opt/scisoft64/usr/bin/perl5.12.3 is installed in /opt/scisoft64/usr/lib/perl5/5.12.3/x86_64-linux-thread-multi okay PPM for perl5.012003 Test Compiling config/perlrx.c Test Compiling config/pmop.c Test Compiling config/pregcomp2.c Test Compiling config/regexp511.c Test Compiling config/signedchar.c Test Compiling config/Ksprintf.c Test Compiling config/svtrv.c Test Compiling config/tod.c Test Compiling -DTIMEOFDAY_TZ config/tod.c TZ gettimeofday() Using -L/usr/lib64 to find /usr/lib64/libX11.so.6.3.0 Cannot find X include files via /usr/include Cannot find X include files anywhere. You probably need to install the X11 development package first. On Debian Linux, these are the packages libx11-dev and x-dev. Please see README.linux for more information. >>> Source configured. on a vary minimal host system. simple sed 's:/usr:${EPREFIX}/usr:g' -i myConfig solves the detection problem but triggers #345987
I applied your sed, and another one to the "build" script (uses hardcoded /usr/local/bin/perl, I wonder why that doesn't trigger for you?) locally. I see it finding the correct libs now, but it still installs only docs (e.g. it doesn't install anything). It seems to work at some point, since it runs zillions of X11 tests.
I see, perl-module.eclass does -f Build, and this frikkin script is called build on my case-IN-sensitive filesystem ;)
*** Bug 217935 has been marked as a duplicate of this bug. ***
@perl: I need these changes, please ack Index: perl-tk-804.29.0.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-perl/perl-tk/perl-tk-804.29.0.ebuild,v retrieving revision 1.3 diff -u -r1.3 perl-tk-804.29.0.ebuild --- perl-tk-804.29.0.ebuild 3 Sep 2011 21:05:06 -0000 1.3 +++ perl-tk-804.29.0.ebuild 10 Oct 2011 18:20:12 -0000 @@ -28,9 +28,16 @@ PATCHES=( "${FILESDIR}"/xorg.patch "${FILESDIR}"/804.028-path.patch "${FILESDIR}"/804.029-X11_XLIB_H.patch ) -# "${FILESDIR}"/${PN}-804.027-interix-x11.patch ) myconf="X11ROOT=${EPREFIX}/usr XFT=1 -I${EPREFIX}/usr/include/ -l${EPREFIX}/usr/$(get_libdir)" mydoc="ToDo VERSIONS" MAKEOPTS+=" -j1" #333049 + +src_prepare() { + perl-module_src_prepare + # fix detection logic for Prefix, bug #385621 + sed -i -e "s:/usr:${EPREFIX}/usr:g" myConfig || die + # having this around breaks with perl-module and a case-IN-sensitive fs + rm build || die +} In addition, I removed -I${EPREFIX}/usr/include/ -l${EPREFIX}/usr/$(get_libdir) from myconf, and didn't see any change in building (still successful to me), so I think they can go as well, if they don't break anything on gx86 amd64/ppc64.
@perl, I committed said diff. Hope that was ok with you.