Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Donnie Berkholz <dberkholz@g.o>
Subject: Re: Re: perl-module.eclass -- review
Date: Mon, 2 Mar 2009 09:51:07 -0800
On 13:08 Mon 02 Mar     , Torsten Veller wrote:
> Currently the eclass doesn't set any dependencies. If it is used the 
> ebuild has to depend on perl if needed.
> 
> 
> I see the following options:
> 
> 1) Don't add DEPEND to the eclass.
>    So if a package is used for stage-building we have to raise EAPI and
>    depend on dev-lang/perl[-build] in the ebuild.
> 
>    The part I don't understand in the bug above is:
>    Does adding dev-lang/perl[-build] automagically reinstall
>    perl during stage-building
>    (here portage stops and complains).
> 
> 
> 2) Add DEPEND conditionally to the eclass.
>    To give ebuilds the chance to inherit perl-module.eclass
>    (and currently also perl-app.eclass) and support perl conditionally,
>    we have to add another global variable to check it.
> 
>    (Checking CATEGORY and perl? probably could be added additonally)
> 
> 
> 3) Add DEPEND.
>    Always depend on dev-lang/perl and 
>    if EAPI=2 then depend on dev-lang/perl[-build]
> 
> 
> Comments?

Having not spent a lot of time thinking about this, I'm guessing the use 
case of concern is packages that have an optional perl module always 
pulling in dev-lang/perl. This would apparently be relevant on an 
embedded system that lacked perl but required a package with an optional 
perl module. To handle that miniscule use case, I'd tend to go with a 
conditional variable (GENTOO_PERL="no"?) that defaults to "yes".

-- 
Thanks,
Donnie

Donnie Berkholz
Developer, Gentoo Linux
Blog: http://dberkholz.wordpress.com
Attachment:
pgpPwmlhHn18X.pgp (PGP signature)
Replies:
Re: Re: perl-module.eclass -- review
-- Robin H. Johnson
References:
perl-module.eclass -- review
-- Torsten Veller
Re: perl-module.eclass -- review
-- Robin H. Johnson
Re: perl-module.eclass -- review
-- Torsten Veller
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: perl-module.eclass -- review
Next by thread:
Re: Re: perl-module.eclass -- review
Previous by date:
Last rites: net-libs/fec
Next by date:
Re: QA Overlay Layout support.


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.