* [gentoo-dev] Abusing PROVIDE
@ 2003-05-21 10:10 Tom Payne
2003-05-21 17:42 ` Martin Schlemmer
0 siblings, 1 reply; 2+ messages in thread
From: Tom Payne @ 2003-05-21 10:10 UTC (permalink / raw
To: gentoo-dev
Hi --
I'd like to abuse PROVIDE. Here's the story:
ruby-1.6.8 is the latest version of Ruby
rexml, yaml, optparse, and others are available as add-on packages
ruby-1.8.0 is coming Real Soon Now
rexml, yaml, optparse, and others are part of the ruby-1.8.0 distribution
If a package needs ruby and optparse I can write
DEPEND="( >=dev-lang/ruby-1.6 <dev-lang/ruby-1.8 dev-ruby/optparse )
|| >=dev-lang/ruby-1.8.0"
but this means that I have to modify every ebuild that depends on any of
packages that are now part of ruby-1.8.
Question: is it OK to make dev-lang/ruby-1.8 PROVIDE rexml, yaml, etc.? e.g.
PROVIDE="dev-ruby/rexml dev-ruby/yaml dev-ruby/optparse"
Or will this cause problems?
Cheers,
Tom
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] Abusing PROVIDE
2003-05-21 10:10 [gentoo-dev] Abusing PROVIDE Tom Payne
@ 2003-05-21 17:42 ` Martin Schlemmer
0 siblings, 0 replies; 2+ messages in thread
From: Martin Schlemmer @ 2003-05-21 17:42 UTC (permalink / raw
To: Tom Payne; +Cc: Gentoo-Dev
[-- Attachment #1: Type: text/plain, Size: 1570 bytes --]
On Wed, 2003-05-21 at 12:10, Tom Payne wrote:
> Hi --
>
> I'd like to abuse PROVIDE. Here's the story:
>
> ruby-1.6.8 is the latest version of Ruby
> rexml, yaml, optparse, and others are available as add-on packages
>
> ruby-1.8.0 is coming Real Soon Now
> rexml, yaml, optparse, and others are part of the ruby-1.8.0 distribution
>
> If a package needs ruby and optparse I can write
> DEPEND="( >=dev-lang/ruby-1.6 <dev-lang/ruby-1.8 dev-ruby/optparse )
> || >=dev-lang/ruby-1.8.0"
> but this means that I have to modify every ebuild that depends on any of
> packages that are now part of ruby-1.8.
>
> Question: is it OK to make dev-lang/ruby-1.8 PROVIDE rexml, yaml, etc.? e.g.
> PROVIDE="dev-ruby/rexml dev-ruby/yaml dev-ruby/optparse"
> Or will this cause problems?
>
It may not be considered 100% correct. More technically correct would
be:
PROVIDE="virtual/ruby-rexml virtual/ruby-yaml virtual/ruby-optparse"
A few things however do provide similar to what you want, so maybe
we should check with Nick/Daniel first.
You should also remember that if it is a virtual (of whatever form), you
will run into issues if you want to depend on specific versions ...
Any reason not to keep 1.8.0 in testing for a bit, with whatever depends
on it, and just specifying DEPEND as:
DEPEND=">=dev-lang/ruby-1.8"
? Then you can when they get marked stable just faze out the old ruby
totally ...
Regards,
--
Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-21 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-21 10:10 [gentoo-dev] Abusing PROVIDE Tom Payne
2003-05-21 17:42 ` Martin Schlemmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox