Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22033 - g-cpan.pl gives global symbol requires explicit package name error
Summary: g-cpan.pl gives global symbol requires explicit package name error
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-31 23:07 UTC by Alan
Modified: 2011-10-30 22:18 UTC (History)
0 users

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


Attachments
code fix (bugfix.txt,460 bytes, text/plain)
2003-06-07 22:05 UTC, Lina Pezzella (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan 2003-05-31 23:07:50 UTC
Each time g-cpan is run, with or without an argument the following error spits out:

phoenix alan # g-cpan.pl
Global symbol "$distfiles" requires explicit package name at /usr/bin/g-cpan.pl
line 266.
syntax error at /usr/bin/g-cpan.pl line 268, near ")
 
    push"
Execution of /usr/bin/g-cpan.pl aborted due to compilation errors.
phoenix alan #


Reproducible: Always
Steps to Reproduce:
1. run g-cpan.pl
2.
3.
Comment 1 Markus Luisser 2003-06-03 09:19:22 UTC
it seems to work when uncommenting the system call on line 266 in g-cpan. $distfiles occurs 
only on that line in the whole script... 
 
change: 
----------- snip ----------- 
265    create_ebuild( $obj, $dir, $file, $prereq_pm, $md5string ); 
266		system("mv -f $localfile $distfiles/") 
----------- snip ----------- 
 
to  
 
----------- snip ----------- 
265    create_ebuild( $obj, $dir, $file, $prereq_pm, $md5string ); 
266		# system("mv -f $localfile $distfiles/") 
----------- snip ----------- 
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-06-06 02:16:47 UTC
Try portage-2.0.48-r1
Comment 3 Markus Luisser 2003-06-07 10:43:27 UTC
> Try portage-2.0.48-r1

works :)
Comment 4 Lina Pezzella (RETIRED) gentoo-dev 2003-06-07 22:05:50 UTC
Created attachment 12924 [details]
code fix
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2003-06-29 21:14:15 UTC
Fixed already.
DISTDIR is not a constant.