Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] New RESTRICT=live value for identification of live ebuilds?
Date: Sun, 03 Aug 2008 14:02:00
Message-Id: 4895BA6A.8080604@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] New RESTRICT=live value for identification of live ebuilds? by Vaeth
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Vaeth wrote:
5 > Sorry that this is slightly OT, but maybe one should think
6 > about this point in this discussion:
7 >
8 >> It seems like USE would be an unconventional location to store that
9 >> information and I'm not sure that it really belongs in the ebuild.
10 >
11 > USE=live could perfectly make sense, if it is equipped with
12 > the obvious meaning:
13 >
14 > I suggest that if it is set, then it is attempted before building
15 > to download the newest source from cvs/svn/git/monotone/bzr/...,
16 > otherwise only the previously downloaded source is recompiled.
17 > Currently, this functionality, which is extremely useful for
18 > systems without permanent internet connection, is only
19 > implemented inconsistently by using environment variables,
20 > differently for each vcs:
21 > cvs: CVS_OFFLINE or CVS_OFFLINE_package_name
22 > git: EGIT_OFFLINE or ESCM_OFFLINE
23 > svn: ESVN_OFFLINE or ESCM_OFFLINE
24 > ???: Perhaps not implemented at all?
25 >
26 > Then it would also make sense that @live-ebuilds consists
27 > only of those packages for which the live USE-flag is
28 > actually set (because the user does not want to treat them
29 > as "live").
30
31 Well, it seems to me that you're trying to shoehorn a USE flag into
32 a role that's intended to be filled by package sets. The idea is
33 that instead of settings USE flags in package.use, you'd define a
34 package set containing the specific packages that you want rebuilt.
35 Trying to define your set inside package.use would be an abuse of
36 package.use and we've already got package sets designed for that
37 purpose.
38
39 Zac
40 -----BEGIN PGP SIGNATURE-----
41 Version: GnuPG v2.0.9 (GNU/Linux)
42
43 iEYEARECAAYFAkiVumgACgkQ/ejvha5XGaMhRACeNiJD30ggs/plNGuhX78B63Yv
44 fX4An2faHig4ZreJD/3I1uGOEa/UTaDb
45 =p9G+
46 -----END PGP SIGNATURE-----