Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 513114

Summary: perl-modules.eclass isn't prefix-aware
Product: Gentoo/Alt Reporter: Daa Jaa <dREPLACEeLETTEReEjBYeLETTEReA>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED INVALID    
Severity: major CC: prefix
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daa Jaa 2014-06-13 13:25:26 UTC
Patch needed on all PREFIX installations (otherwise dev-perl/Algorithm-Diff for example does not work):

--- old_gentoo_armv6l/usr/portage/eclass/perl-module.eclass     2014-06-13 15:06:35.857042455 +0200
+++ gentoo_armv6l/usr/portage/eclass/perl-module.eclass 2014-06-13 15:21:38.500228678 +0200
@@ -1,6 +1,6 @@
 # Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.139 2014/03/30 19:25:14 zlogene Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.139 2014/03/30 19:25:14 zlogene Exp with patch$
 
 # @ECLASS: perl-module.eclass
 # @MAINTAINER:
@@ -131,7 +131,7 @@
                        eqawarn "           Add virtual/perl-Module-Build to DEPEND!"
                        if [[ -n ${PERLQAFATAL} ]]; then
                                eerror "Bailing out due to PERLQAFATAL=1";
-                               die;
+                               die
                        fi
                fi
                set -- \
@@ -318,8 +318,8 @@
 perl_delete_localpod() {
        debug-print-function $FUNCNAME "$@"
 
-       find "${D}" -type f -name perllocal.pod -delete
-       find "${D}" -depth -mindepth 1 -type d -empty -delete
+       find "${ED}" -type f -name perllocal.pod -delete
+       find "${ED}" -depth -mindepth 1 -type d -empty -delete
 }
 
 perl_fix_osx_extra() {
@@ -358,14 +358,14 @@
        if [[ -d ${D}/${VENDOR_ARCH} ]] ; then
                find "${D}/${VENDOR_ARCH}" -type f -a \( -name .packlist \
                        -o \( -name '*.bs' -a -empty \) \) -delete
-               find "${D}" -depth -mindepth 1 -type d -empty -delete
+               find "${ED}" -depth -mindepth 1 -type d -empty -delete
        fi
 }
 
 perl_remove_temppath() {
        debug-print-function $FUNCNAME "$@"
 
-       find "${D}" -type f -not -name '*.so' -print0 | while read -rd '' f ; do
+       find "${ED}" -type f -not -name '*.so' -print0 | while read -rd '' f ; do
                if file "${f}" | grep -q -i " text" ; then
                        grep -q "${D}" "${f}" && ewarn "QA: File contains a temporary path ${f}"
                        sed -i -e "s:${D}:/:g" "${f}"



(patch needed in gentooandroid.sourceforge.net to make $EPREFIX/usr/bin/xml2po work)

+++ This bug was initially created as a clone of Bug #300582 +++
Comment 1 Daa Jaa 2014-06-13 13:28:21 UTC
Sorry, please ignore my bugreport. The bug was somewhere else, I am going to submit it.