Gentoo Archives: gentoo-soc

From: Brian Harring <ferringb@×××××.com>
To: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
Cc: gentoo-soc@l.g.o, zmedico@g.o
Subject: Re: [gentoo-soc] Multiple Repository Support in Portage - Week 3
Date: Sat, 19 Jun 2010 20:20:50
Message-Id: 20100619201821.GK12490@hrair
1 On Sat, Jun 19, 2010 at 12:06:15PM +0100, Ciaran McCreesh wrote:
2 > I'm not subscribed to the SOC list, so if this doesn't make it through,
3 > please repost...
4 >
5 > On Fri, 18 Jun 2010 20:48:54 -0700
6 > Brian Harring <ferringb@×××××.com> wrote:
7 > > On Wed, Jun 16, 2010 at 05:47:42PM +0200, Auke Booij wrote:
8 > > > 2010/6/16 Otávio Pontes <otaviobp@×××××.com>:
9 > > > > I couldn't find in paludis documentation (nor in pkgcore) where
10 > > > > should go repository name when using useflags to emerge a package.
11 >
12 > http://paludis.pioto.org/configuration/specs.html is what Paludis
13 > supports for user specs.
14 >
15 > > As for syntax, it's cat/pkg:slotting-if-any:repo[flag-bits]
16 > >
17 > > So for specifying a slot and a repo, and disabling build,
18 > > sys-apps/portage:0:gentoo[-build]
19 > >
20 > > If you don't care about the slot, you leave it empty-
21 > > sys-apps/portage::gentoo[-build]
22 > >
23 > > CC'ing ciaran either way- in testing paludis 0.46,
24 > > sys-apps/portage:0:gentoo isn't flying... (the use ordering however
25 > > does).
26 >
27 > ::gentoo not :gentoo (and only in contexts where it's a 'user' dep
28 > spec, not one covered by an EAPI).
29
30
31 Crapola. Didn't notice that paludis requires doubling up there-
32 specifically, for pkgcore
33
34 sys-apps/portage
35 sys-apps/portage:0
36 sys-apps/portage:0:gentoo
37 sys-apps/portage::gentoo
38 sys-apps/portage:0:gentoo[-build]
39 sys-apps/portage::gentoo[-build]
40
41 From pkgcore's view, the 1st ':' is required- if there is no slot dep,
42 leave it empty. The second demarks the start of a repository dep.
43
44 For paludis, it's based on consecutive ':' ; so literally the above is
45 sys-apps/portage
46 sys-apps/portage:0
47 sys-apps/portage:0::gentoo
48 sys-apps/portage::gentoo
49 sys-apps/portage:0::gentoo[-build]
50 sys-apps/portage::gentoo[-build]
51
52
53 People's feedback is kind of needed on that one due to the diff. in
54 syntax...
55
56
57 > Also note that that specifically only covers packages that are *in*
58 > the ::gentoo repository. The package you have installed *from* the
59 > gentoo repository is ::gentoo->/ or ::gentoo->installed .
60
61 '->' doesn't work very well though; specifically, the '-' is allowed
62 as part of a repository name. Backtracking parsers can handle that
63 fine, it's just nonoptimal to have one of the splitter char's be part
64 of the allowed character set for a name.
65
66 @, or some other char that is explicitly disallow seems a better
67 choice.
68
69 Comments?
70
71 thanks-
72 ~harring

Replies

Subject Author
Re: [gentoo-soc] Multiple Repository Support in Portage - Week 3 Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
Re: [gentoo-soc] Multiple Repository Support in Portage - Week 3 "Otávio Pontes" <otaviobp@×××××.com>