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

Bug 395399

Summary: app-portage/perl-info: can't print out error message if PORTDIR is not set
Product: Gentoo Linux Reporter: Tanktalus
Component: [OLD] UnspecifiedAssignee: Gentoo Perl team <perl>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Tanktalus 2011-12-20 19:44:49 UTC
It looks like line 48 of /usr/bin/perl-info should be $pxs->print_err(...) - the "$pxs->" bit is missing.

I'm still trying to figure out what to set PORTDIR to, and how, mind you.  From what it appears, portage doesn't require it, so I'm not sure why this does.  Perhaps PortageXS should be reading /etc/make.globals first?

Reproducible: Always

Steps to Reproduce:
1. Run perl-info --help

(I suspect that if you've configured PORTDIR however that's done, you need to unconfigure it - it's not needed by the python/shell scripts.)
Actual Results:  
[dmcbride@naboo ~]$ perl-info --help

 perl-info version 0.16 - brought to you by the Gentoo perl-herd-maintainer ;-)
                          Distributed under the terms of the GPL-2

Can't locate object method "printColored" via package "PORTDIR not set or incorrect! Aborting..
" (perhaps you forgot to load "PORTDIR not set or incorrect! Aborting..
"?) at /usr/lib64/perl5/vendor_perl/5.12.2/PortageXS/UI/ line 51.

Expected Results:  
Not sure - but not that.
Comment 1 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2014-06-06 20:09:25 UTC
Now PORTDIR setting up straight in make.conf