Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Perl g-cpan overlay how to?[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1407

PostPosted: Tue Mar 04, 2008 12:47 am    Post subject: Perl g-cpan overlay how to?[solved] Reply with quote

I remember a guide to making a g-cpan overlay and now I cannot find it.
Man g-cpan
Code:
g-cpan and Overlays
       g-cpan is now overlay "friendly." g-cpan will scan both the overlays
       provided in your make.conf as well as any you have set via environment
       variables, to help determine its course of action. If you have
       defined overlays, g-cpan will use the first overlay in your list that
       the user running it can write to. Any ebuilds generated by g-cpan will
       be stored in this overlay for future use (such as upgrading).


How do I make an overlay for g-cpan to use?
_________________
Donate to Gentoo


Last edited by turtles on Tue Mar 04, 2008 3:39 am; edited 1 time in total
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9398

PostPosted: Tue Mar 04, 2008 1:39 am    Post subject: Reply with quote

Code:
mkdir -p /path/to/overlay
echo 'PORTDIR_OVERLAY="/path/to/overlay ${PORTDIR_OVERLAY}"' >> /etc/make.conf
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1407

PostPosted: Tue Mar 04, 2008 3:28 am    Post subject: Reply with quote

Thanks that helped!
since I have layman and g-cpan and abunch of other overlays I needed to add the following to maks.conf:
Code:
PKGDIR="${PORTDIR}/packages/"
source /usr/portage/local/layman/make.conf
PORTDIR_OVERLAY="/usr/local/portage/ /usr/portage/local/layman"


g-cpan needs to use the first overlay
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9398

PostPosted: Tue Mar 04, 2008 7:31 am    Post subject: Reply with quote

turtles wrote:
since I have layman and g-cpan and abunch of other overlays I needed to add the following to maks.conf:
I was taking that into account by recommending that PORTDIR_OVERLAY be set in that fashion.
turtles wrote:
Code:
PKGDIR="${PORTDIR}/packages/"
Which matches the default.
turtles wrote:
Code:
source /usr/portage/local/layman/make.conf
Which has the effect of adding any overlays managed by layman to PORTDIR_OVERLAY by prefixing them to any existing value.
turtles wrote:
Code:
PORTDIR_OVERLAY="/usr/local/portage/ /usr/portage/local/layman"
This seems, to me, to be subtly incorrect though it is at least nearly correct. While it does place the desired overlay first it does not include any existing contents of PORTDIR_OVERLAY, thereby disassociating any overlays which have already been specified. It also specifies the directory into which layman would normally place overlays as itself being an overlay, which is not intended to be valid.
turtles wrote:
g-cpan needs to use the first overlay
That is why I recommended prefixing the overlay to be used by g-cpan to PORTDIR_OVERLAY at the end of /etc/make.conf.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1407

PostPosted: Wed Mar 05, 2008 12:15 am    Post subject: Reply with quote

Thanks, thats why I posted again.
I almost got it now
on my laptop I have several overlays in /usr/local/portage:
Code:
ls /usr/local/portage/
app-office  cross-powerpc-unknown-linux-gnu  kde-misc  media-plugins  perl-gcpan


but /usr/portage/local only has layman.
So do you mean like this:
Code:
#Overlay Stuff
PKGDIR="${PORTDIR}/packages/"
source /usr/portage/local/layman/make.conf
PORTDIR_OVERLAY="/usr/local/portage/perl-gcpan ${PORTDIR_OVERLAY}"
PORTDIR_OVERLAY="/usr/portage/local/"
PORTDIR_OVERLAY="/usr/local/portage/"
##Note ebuilds in overlays are in /usr/portage/local/layman/ and or /usr/local/portage##


or like this?
Code:
#Overlay Stuff
PKGDIR="${PORTDIR}/packages/"
source /usr/portage/local/layman/make.conf
PORTDIR_OVERLAY="/usr/local/portage/ ${PORTDIR_OVERLAY}"
PORTDIR_OVERLAY="/usr/portage/local/"
#PORTDIR_OVERLAY="/usr/local/portage"
##Note ebuilds in overlays are in /usr/portage/local/layman/ and or /usr/local/portage##


Thanks in advance.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 9398

PostPosted: Wed Mar 05, 2008 3:27 am    Post subject: Reply with quote

Just this, since the only overlays in /usr/local/portage that are managed by layman and perl-gcpan is a category used by g-cpan.
Code:
source /usr/portage/local/layman/make.conf
PORTDIR_OVERLAY="/usr/local/portage ${PORTDIR_OVERLAY}"
Setting PKGDIR to the default is redundant, but harmless. Not including prior values of PORTDIR_OVERLAY means those settings will be lost.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum