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

Bug 308409

Summary: app-portage/g-cpan-0.16.1 does not obey GCPAN_OVERLAY
Product: Gentoo Linux Reporter: Simon Perry <gentoo>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED DUPLICATE    
Severity: normal CC: perl
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Simon Perry 2010-03-08 02:12:23 UTC
The man page for g-cpan says:

"If you want to generate ebuilds to a specific overlay, you may set GCPAN_OVERLAY in your make.conf, .gcpanrc or environment."

However, after setting GCPAN_OVERLAY in all of the places mentioned above, g-cpan still creates dirs and places copies of the perl-gcpan tree in every directory you have listed in PORTDIR_OVERLAY.

Example /etc/make.conf using the "order" work-around in bug 205562:

GCPAN_OVERLAY="/usr/local/portage/g-cpan"
source /var/lib/layman/make.conf

PORTDIR_OVERLAY="
${GCPAN_OVERLAY}
${PORTDIR_OVERLAY}
"

This works for a few syncs and updates. Eventually, though, you end up with perl-gcpan dirs, and copies of all the ebuilds, being created in every overlay that you use.

I use the sunrise and hardened-dev overlays and they do not contain perl-gcpan categories, so g-cpan should never touch anything in those overlay dirs.

Can g-cpan fully honor the GCPAN_OVERLAY var setting please?
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-03-24 17:33:07 UTC

*** This bug has been marked as a duplicate of bug 311117 ***