Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293391 - app-admin/perl-cleaner isn't properly prefix-aware
Summary: app-admin/perl-cleaner isn't properly prefix-aware
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-16 14:16 UTC by Stuart Shelton
Modified: 2011-04-24 17:01 UTC (History)
0 users

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


Attachments
Change perl -> $PERL... seems to fix prefix issues (perl-cleaner-1.05.patch,1.89 KB, patch)
2009-11-16 14:19 UTC, Stuart Shelton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-11-16 14:16:50 UTC
I'm not sure how this happened, but when I ran perl-cleaner after upgrading to perl-5.8.8-r8, it wanted to remove all of the .ph files from a perl-5.10 installation outside of $EPREFIX!

This is, obviously, a bad thing.

Looking into what had happened, despite $PERL being correct, the @INC list was from a different perl installation.

I note that $PERL is the first variable set at the top of the script, but then perl is invoked as 'perl' rather than '$PERL' throughput the script.  Changing these instances so that perl is always invoked at $PERL fixes the problem!

(Still not entirely sure why, though...)
Comment 1 Fabian Groffen gentoo-dev 2009-11-16 14:18:25 UTC
feels like the path gets reset somehow then
Comment 2 Stuart Shelton 2009-11-16 14:19:43 UTC
Created attachment 210408 [details, diff]
Change perl -> $PERL... seems to fix prefix issues


(Should this script have its interpreter set to '$EPREFIX/bin/bash' rather than '$EPREFIX/bin/sh' - there seem to be bash-specific constructs in use?  I'm wondering if this relates to this problem...)
Comment 3 Stuart Shelton 2009-11-16 14:21:05 UTC
I thought that - there's only one occurance of PATH in the file, in libperl_list which isn't on the code-path I had problems with.

Unless PATH is being altered by an eval() somewhere...
Comment 4 Fabian Groffen gentoo-dev 2011-04-24 17:01:02 UTC
latest perl-cleaners have done a great job for 5.8 -> 5.10 and 5.10 -> 5.12, so I think this has been solved in the meanwhile