* [gentoo-dev] USE variables in SRC_URI
@ 2001-10-02 0:41 Daniel Robbins
2001-10-02 2:23 ` Mikael Hallendal
0 siblings, 1 reply; 11+ messages in thread
From: Daniel Robbins @ 2001-10-02 0:41 UTC (permalink / raw
To: gentoo-dev
Hi devs,
I just added a new pre-release version of Portage to gentoo-src (developers
only) CVS that allows you to use USE variables in the SRC_URI as follows:
SRC_URI="foo? ( http://www.foo.bar/meep.tar.gz )"
We will gradually start using these features. But right now I need testers.
If MAINTAINER is set to "yes", then all the USE variables in the SRC_URI will
default to "on", so that maintainers will be forced to test all SRC_URIs and
also cause complete digests to be generated. You can also use the new "!foo?"
syntax in SRC_URIs and soon in DEPENDS and RDEPENDS as well. This new version
of Portage also adds archive size to the digest files and uses a new file-based
DEPEND and RDEPEND passing method (for behind-the-scenes bash <-> python
integration.)
To test the new version of Portage, cvs update your gentoo-src module and copy
bin/ebuild.sh to /usr/lib/portage/bin, and pym/portage.py to
/usr/lib/portage/pym.
Best Regards,
--
Daniel Robbins <drobbins@gentoo.org>
Chief Architect/President http://www.gentoo.org
Gentoo Technologies, Inc.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] USE variables in SRC_URI
2001-10-02 0:41 [gentoo-dev] USE variables in SRC_URI Daniel Robbins
@ 2001-10-02 2:23 ` Mikael Hallendal
2001-10-02 12:36 ` Morgan Christiansson
0 siblings, 1 reply; 11+ messages in thread
From: Mikael Hallendal @ 2001-10-02 2:23 UTC (permalink / raw
To: Gentoo Dev.
tis 2001-10-02 klockan 08.40 skrev Daniel Robbins:
> Hi devs,
>
> I just added a new pre-release version of Portage to gentoo-src (developers
> only) CVS that allows you to use USE variables in the SRC_URI as follows:
>
> SRC_URI="foo? ( http://www.foo.bar/meep.tar.gz )"
>
> We will gradually start using these features. But right now I need testers.
> If MAINTAINER is set to "yes", then all the USE variables in the SRC_URI will
> default to "on", so that maintainers will be forced to test all SRC_URIs and
> also cause complete digests to be generated. You can also use the new "!foo?"
> syntax in SRC_URIs and soon in DEPENDS and RDEPENDS as well. This new version
> of Portage also adds archive size to the digest files and uses a new file-based
> DEPEND and RDEPEND passing method (for behind-the-scenes bash <-> python
> integration.)
Hi!
This is great!
Both foo? in SRC_URI and !foo? is both really needed.
Regards,
Mikael Hallendal
--
Mikael Hallendal micke@codefactory.se
CodeFactory AB http://www.codefactory.se/
Office: +46 (0)8 587 583 05 Cell: +46 (0)709 718 918
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] USE variables in SRC_URI
2001-10-02 2:23 ` Mikael Hallendal
@ 2001-10-02 12:36 ` Morgan Christiansson
2001-10-02 12:40 ` Daniel Robbins
0 siblings, 1 reply; 11+ messages in thread
From: Morgan Christiansson @ 2001-10-02 12:36 UTC (permalink / raw
To: gentoo-dev
Mikael Hallendal wrote:
>tis 2001-10-02 klockan 08.40 skrev Daniel Robbins:
>
>>Hi devs,
>>
>>I just added a new pre-release version of Portage to gentoo-src (developers
>>only) CVS that allows you to use USE variables in the SRC_URI as follows:
>>
>>SRC_URI="foo? ( http://www.foo.bar/meep.tar.gz )"
>>
>>We will gradually start using these features. But right now I need testers.
>>If MAINTAINER is set to "yes", then all the USE variables in the SRC_URI will
>>default to "on", so that maintainers will be forced to test all SRC_URIs and
>>also cause complete digests to be generated. You can also use the new "!foo?"
>>syntax in SRC_URIs and soon in DEPENDS and RDEPENDS as well. This new version
>>of Portage also adds archive size to the digest files and uses a new file-based
>>DEPEND and RDEPEND passing method (for behind-the-scenes bash <-> python
>>integration.)
>>
>
>Hi!
>
>This is great!
>
>Both foo? in SRC_URI and !foo? is both really needed.
>
>Regards,
> Mikael Hallendal
>
You could do it like this too:
use foo && SRC_URI="$SRC_URI http://domain/project-foo-patch.tbz2"
Although the !foo? is problably nicer. Just another way to do it until
the !foo? way is finished.
Also that'd work with my used flags patch until it's integrated into the
rest of portage. ;)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] USE variables in SRC_URI
2001-10-02 12:36 ` Morgan Christiansson
@ 2001-10-02 12:40 ` Daniel Robbins
2001-10-02 13:01 ` Dan Armak
0 siblings, 1 reply; 11+ messages in thread
From: Daniel Robbins @ 2001-10-02 12:40 UTC (permalink / raw
To: gentoo-dev
On Tue, Oct 02, 2001 at 08:35:49PM +0200, Morgan Christiansson wrote:
> You could do it like this too:
>
> use foo && SRC_URI="$SRC_URI http://domain/project-foo-patch.tbz2"
You actually can't do it that way, because it will cause incomplete digests to
be generated if "foo" isn't set in USE. The new system auto-adjusts so that
maintainers always generate correct digests, but normal users only need to
download the files they need.
Best Regards,
--
Daniel Robbins <drobbins@gentoo.org>
Chief Architect/President http://www.gentoo.org
Gentoo Technologies, Inc.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] USE variables in SRC_URI
2001-10-02 12:40 ` Daniel Robbins
@ 2001-10-02 13:01 ` Dan Armak
2001-10-02 13:05 ` Daniel Robbins
2001-10-02 13:07 ` Mikael Hallendal
0 siblings, 2 replies; 11+ messages in thread
From: Dan Armak @ 2001-10-02 13:01 UTC (permalink / raw
To: gentoo-dev
> You actually can't do it that way, because it will cause incomplete digests
> to be generated if "foo" isn't set in USE. The new system auto-adjusts so
> that maintainers always generate correct digests, but normal users only
> need to download the files they need.
As I understand this, you download everything if MAINTAINER is set. Then, I
suppose, you also get a ${A} with all the files you downloaded and you unpack
them all.
Normally this isn't a problem, but in theory: an ebuild might use ${A} to do
some "for x in" etc. processing to avoid putting use flag tests in both
SRC_URI and every function. (Together with DEPEND and RDEPEND there are 5
places where you typically query use flags, plus the 4 pkg_ functions.) This
is a very rare case, but after working with eclasses I'm used to thinking in
a generic way about these things.
So: I propose that to make ebuilds behave the same way regardless of
MAINTAINER, we should set $A the proper way, and download all files anyway.
Perhaps you think this issue isn't very important; I admit I never wrote or
saw an ebuild that behaved like this. But they might.
--
Dan Armak
Gentoo Linux Developer, Desktop Team
Matan, Israel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] USE variables in SRC_URI
2001-10-02 13:01 ` Dan Armak
@ 2001-10-02 13:05 ` Daniel Robbins
2001-10-02 13:07 ` Mikael Hallendal
1 sibling, 0 replies; 11+ messages in thread
From: Daniel Robbins @ 2001-10-02 13:05 UTC (permalink / raw
To: gentoo-dev
On Tue, Oct 02, 2001 at 09:01:15PM +0200, Dan Armak wrote:
> So: I propose that to make ebuilds behave the same way regardless of
> MAINTAINER, we should set $A the proper way, and download all files anyway.
>
> Perhaps you think this issue isn't very important; I admit I never wrote or
> saw an ebuild that behaved like this. But they might.
I believe that I've taken these situations into account. Try the code and let
me know.
Best Regards,
--
Daniel Robbins <drobbins@gentoo.org>
Chief Architect/President http://www.gentoo.org
Gentoo Technologies, Inc.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] USE variables in SRC_URI
2001-10-02 13:01 ` Dan Armak
2001-10-02 13:05 ` Daniel Robbins
@ 2001-10-02 13:07 ` Mikael Hallendal
2001-10-02 13:10 ` Dan Armak
1 sibling, 1 reply; 11+ messages in thread
From: Mikael Hallendal @ 2001-10-02 13:07 UTC (permalink / raw
To: Gentoo Dev.
tis 2001-10-02 klockan 21.01 skrev Dan Armak:
> So: I propose that to make ebuilds behave the same way regardless of
> MAINTAINER, we should set $A the proper way, and download all files anyway.
I don't think that, because for people on modem it's a very nice thing
that they don't have to download stuff that they don't use. Of course
not many ebuilds will use this feature in SRC_URI.
Regards,
Mikael Hallendal
--
Mikael Hallendal micke@codefactory.se
CodeFactory AB http://www.codefactory.se/
Office: +46 (0)8 587 583 05 Cell: +46 (0)709 718 918
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] USE variables in SRC_URI
2001-10-02 13:07 ` Mikael Hallendal
@ 2001-10-02 13:10 ` Dan Armak
2001-10-02 14:17 ` Mikael Hallendal
2001-10-02 14:17 ` Mikael Hallendal
0 siblings, 2 replies; 11+ messages in thread
From: Dan Armak @ 2001-10-02 13:10 UTC (permalink / raw
To: gentoo-dev
> I don't think that, because for people on modem it's a very nice thing
> that they don't have to download stuff that they don't use. Of course
> not many ebuilds will use this feature in SRC_URI.
No, no. I meant that we will download everything only if MAINTAINER=true, as
now. But, we will set $A the same regardless of MAINTAINER. drobbins
understood me.
--
Dan Armak
Gentoo Linux Developer, Desktop Team
Matan, Israel
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] USE variables in SRC_URI
2001-10-02 13:10 ` Dan Armak
@ 2001-10-02 14:17 ` Mikael Hallendal
2001-10-02 14:17 ` Mikael Hallendal
1 sibling, 0 replies; 11+ messages in thread
From: Mikael Hallendal @ 2001-10-02 14:17 UTC (permalink / raw
To: Gentoo Dev.
tis 2001-10-02 klockan 21.10 skrev Dan Armak:
> No, no. I meant that we will download everything only if MAINTAINER=true, as
> now. But, we will set $A the same regardless of MAINTAINER. drobbins
> understood me.
Hmm .. you will set $A the same but have different SRC_URI, is that what
you mean?
Regards,
Mikael Hallendal
--
Mikael Hallendal micke@codefactory.se
CodeFactory AB http://www.codefactory.se/
Office: +46 (0)8 587 583 05 Cell: +46 (0)709 718 918
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] USE variables in SRC_URI
2001-10-02 13:10 ` Dan Armak
2001-10-02 14:17 ` Mikael Hallendal
@ 2001-10-02 14:17 ` Mikael Hallendal
2001-10-02 14:21 ` Dan Armak
1 sibling, 1 reply; 11+ messages in thread
From: Mikael Hallendal @ 2001-10-02 14:17 UTC (permalink / raw
To: Gentoo Dev.
tis 2001-10-02 klockan 21.10 skrev Dan Armak:
> No, no. I meant that we will download everything only if MAINTAINER=true, as
> now. But, we will set $A the same regardless of MAINTAINER. drobbins
> understood me.
Hmm .. you will set $A the same but have different SRC_URI, is that what
you mean?
Regards,
Mikael Hallendal
--
Mikael Hallendal micke@codefactory.se
CodeFactory AB http://www.codefactory.se/
Office: +46 (0)8 587 583 05 Cell: +46 (0)709 718 918
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] USE variables in SRC_URI
2001-10-02 14:17 ` Mikael Hallendal
@ 2001-10-02 14:21 ` Dan Armak
0 siblings, 0 replies; 11+ messages in thread
From: Dan Armak @ 2001-10-02 14:21 UTC (permalink / raw
To: gentoo-dev
Exactly.
--
Dan Armak
Gentoo Linux Developer, Desktop Team
Matan, Israel
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2001-10-02 20:20 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-02 0:41 [gentoo-dev] USE variables in SRC_URI Daniel Robbins
2001-10-02 2:23 ` Mikael Hallendal
2001-10-02 12:36 ` Morgan Christiansson
2001-10-02 12:40 ` Daniel Robbins
2001-10-02 13:01 ` Dan Armak
2001-10-02 13:05 ` Daniel Robbins
2001-10-02 13:07 ` Mikael Hallendal
2001-10-02 13:10 ` Dan Armak
2001-10-02 14:17 ` Mikael Hallendal
2001-10-02 14:17 ` Mikael Hallendal
2001-10-02 14:21 ` Dan Armak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox