Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513114 - perl-modules.eclass isn't prefix-aware
Summary: perl-modules.eclass isn't prefix-aware
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: Normal major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-13 13:25 UTC by Daa Jaa
Modified: 2014-06-13 13:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.