* [gentoo-user] /etc/portage/package.keywords syntax @ 2009-04-14 13:01 Thanasis 2009-04-14 13:04 ` Justin 2009-04-14 20:09 ` Neil Bothwick 0 siblings, 2 replies; 12+ messages in thread From: Thanasis @ 2009-04-14 13:01 UTC (permalink / raw To: gentoo-user List Suppose I want to set the series of kernel sources: gentoo-sources-2.6.28* with the ~x86 keyword. What should I write in /etc/portage/package.keywords ? ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] /etc/portage/package.keywords syntax 2009-04-14 13:01 [gentoo-user] /etc/portage/package.keywords syntax Thanasis @ 2009-04-14 13:04 ` Justin 2009-04-14 13:08 ` Saphirus Sage 2009-04-14 13:27 ` Thanasis 2009-04-14 20:09 ` Neil Bothwick 1 sibling, 2 replies; 12+ messages in thread From: Justin @ 2009-04-14 13:04 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 238 bytes --] Thanasis schrieb: > Suppose I want to set the series of kernel sources: > gentoo-sources-2.6.28* > with the ~x86 keyword. > What should I write in /etc/portage/package.keywords ? > > =sys-kernel/gentoo-sources-2.6.28* ~x86 [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] /etc/portage/package.keywords syntax 2009-04-14 13:04 ` Justin @ 2009-04-14 13:08 ` Saphirus Sage 2009-04-14 13:29 ` Thanasis 2009-04-14 13:27 ` Thanasis 1 sibling, 1 reply; 12+ messages in thread From: Saphirus Sage @ 2009-04-14 13:08 UTC (permalink / raw To: gentoo-user Justin wrote: > Thanasis schrieb: > >> Suppose I want to set the series of kernel sources: >> gentoo-sources-2.6.28* >> with the ~x86 keyword. >> What should I write in /etc/portage/package.keywords ? >> >> >> > > =sys-kernel/gentoo-sources-2.6.28* ~x86 > > I am certain that is thoroughly covered in the documentation, or most any google search, so I pray thee, RTFM. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] /etc/portage/package.keywords syntax 2009-04-14 13:08 ` Saphirus Sage @ 2009-04-14 13:29 ` Thanasis 0 siblings, 0 replies; 12+ messages in thread From: Thanasis @ 2009-04-14 13:29 UTC (permalink / raw To: gentoo-user on 04/14/2009 04:08 PM Saphirus Sage wrote the following: > Justin wrote: > >> Thanasis schrieb: >> >> >>> Suppose I want to set the series of kernel sources: >>> gentoo-sources-2.6.28* >>> with the ~x86 keyword. >>> What should I write in /etc/portage/package.keywords ? >>> >> =sys-kernel/gentoo-sources-2.6.28* ~x86 >> >> > I am certain that is thoroughly covered in the documentation, or most > any google search, so I pray thee, RTFM. > Yes, I know, but sometimes, *obvious* things my escape attention... :-\ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] /etc/portage/package.keywords syntax 2009-04-14 13:04 ` Justin 2009-04-14 13:08 ` Saphirus Sage @ 2009-04-14 13:27 ` Thanasis 1 sibling, 0 replies; 12+ messages in thread From: Thanasis @ 2009-04-14 13:27 UTC (permalink / raw To: gentoo-user on 04/14/2009 04:04 PM Justin wrote the following: > Thanasis schrieb: > >> Suppose I want to set the series of kernel sources: >> gentoo-sources-2.6.28* >> with the ~x86 keyword. >> What should I write in /etc/portage/package.keywords ? >> >> >> > > =sys-kernel/gentoo-sources-2.6.28* ~x86 > > I was trying with just =gentoo-sources-2.6.28* ~x86 ...and emerge was complaining. Thanks. :-) ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] /etc/portage/package.keywords syntax 2009-04-14 13:01 [gentoo-user] /etc/portage/package.keywords syntax Thanasis 2009-04-14 13:04 ` Justin @ 2009-04-14 20:09 ` Neil Bothwick 2009-04-15 5:56 ` Thanasis 1 sibling, 1 reply; 12+ messages in thread From: Neil Bothwick @ 2009-04-14 20:09 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 430 bytes --] On Tue, 14 Apr 2009 16:01:23 +0300, Thanasis wrote: > Suppose I want to set the series of kernel sources: > gentoo-sources-2.6.28* > with the ~x86 keyword. > What should I write in /etc/portage/package.keywords ? ~sys-kernel/gentoo-sources-2.6.28 ~x86 or, if you are running x86, ~sys-kernel/gentoo-sources-2.6.28 -- Neil Bothwick Remember that the Titanic was built by experts, and the Ark by a newbie [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] /etc/portage/package.keywords syntax 2009-04-14 20:09 ` Neil Bothwick @ 2009-04-15 5:56 ` Thanasis 2009-04-15 6:47 ` Justin 2009-04-15 6:54 ` Neil Bothwick 0 siblings, 2 replies; 12+ messages in thread From: Thanasis @ 2009-04-15 5:56 UTC (permalink / raw To: gentoo-user on 04/14/2009 11:09 PM Neil Bothwick wrote the following: > On Tue, 14 Apr 2009 16:01:23 +0300, Thanasis wrote: > > >> Suppose I want to set the series of kernel sources: >> gentoo-sources-2.6.28* >> with the ~x86 keyword. >> What should I write in /etc/portage/package.keywords ? >> > > ~sys-kernel/gentoo-sources-2.6.28 ~x86 > > or, if you are running x86, > > ~sys-kernel/gentoo-sources-2.6.28 > What is the meaning of the "~" in front ? Is it documented? ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] /etc/portage/package.keywords syntax 2009-04-15 5:56 ` Thanasis @ 2009-04-15 6:47 ` Justin 2009-04-15 6:57 ` Neil Bothwick 2009-04-15 7:23 ` Jorge Morais 2009-04-15 6:54 ` Neil Bothwick 1 sibling, 2 replies; 12+ messages in thread From: Justin @ 2009-04-15 6:47 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 636 bytes --] Thanasis schrieb: > on 04/14/2009 11:09 PM Neil Bothwick wrote the following: >> On Tue, 14 Apr 2009 16:01:23 +0300, Thanasis wrote: >> >> >>> Suppose I want to set the series of kernel sources: >>> gentoo-sources-2.6.28* >>> with the ~x86 keyword. >>> What should I write in /etc/portage/package.keywords ? >>> >> ~sys-kernel/gentoo-sources-2.6.28 ~x86 >> >> or, if you are running x86, >> >> ~sys-kernel/gentoo-sources-2.6.28 >> > What is the meaning of the "~" in front ? > Is it documented? > same as =...2.6.28* but I disagree with the second suggestion, because no keyword means any keyword. [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] /etc/portage/package.keywords syntax 2009-04-15 6:47 ` Justin @ 2009-04-15 6:57 ` Neil Bothwick 2009-04-15 7:23 ` Jorge Morais 1 sibling, 0 replies; 12+ messages in thread From: Neil Bothwick @ 2009-04-15 6:57 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 531 bytes --] On Wed, 15 Apr 2009 08:47:29 +0200, Justin wrote: > >> ~sys-kernel/gentoo-sources-2.6.28 > >> > > What is the meaning of the "~" in front ? > > Is it documented? > > > same as =...2.6.28* Not quite, 2.6.28* could also match 2.6.280-r3. > but I disagree with the second suggestion, because no keyword means any > keyword. No it doesn't, it means use the ~arch version of whatever you have in ACCEPT_KEYWORDS. -- Neil Bothwick "Beam me aboard, Scotty!" "Aye, Cap'n! Uh, will a two-by-four do?" [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] /etc/portage/package.keywords syntax 2009-04-15 6:47 ` Justin 2009-04-15 6:57 ` Neil Bothwick @ 2009-04-15 7:23 ` Jorge Morais 2009-04-15 22:04 ` Thanasis 1 sibling, 1 reply; 12+ messages in thread From: Jorge Morais @ 2009-04-15 7:23 UTC (permalink / raw To: gentoo-user On Wed, 15 Apr 2009 08:47:29 +0200 Justin <justin@j-schmitz.net> wrote: > Thanasis schrieb: > > on 04/14/2009 11:09 PM Neil Bothwick wrote the following: > >> On Tue, 14 Apr 2009 16:01:23 +0300, Thanasis wrote: > >> > >> > >>> Suppose I want to set the series of kernel sources: > >>> gentoo-sources-2.6.28* > >>> with the ~x86 keyword. > >>> What should I write in /etc/portage/package.keywords ? > >>> > >> ~sys-kernel/gentoo-sources-2.6.28 ~x86 > >> > >> or, if you are running x86, > >> > >> ~sys-kernel/gentoo-sources-2.6.28 > >> > > What is the meaning of the "~" in front ? > > Is it documented? > > > same as =...2.6.28* > > but I disagree with the second suggestion, because no keyword means any keyword. > You both should read the manual. I have copied some excerpts from relevant man pages, and even surrounded the most relevant parts with the word "MYEMPHASIS". Not everyone has this patience. From man portage: package.keywords Per-package KEYWORDS. Useful for mixing unstable pack- ages in with a normally stable system or vice versa. This will allow ACCEPT_KEYWORDS to be augmented for a single package. Format: - comment lines begin with # (no inline comments) - one DEPEND atom per line followed by additional KEYWORDS <MYEMPHASIS> - lines without any KEYWORDS imply unstable host arch </MYEMPHASIS> Example: # always use unstable libgd media-libs/libgd ~x86 # only use stable mplayer media-video/mplayer -~x86 # always use unstable netcat net-analyzer/netcat Note: In addition to the normal values from ACCEPT_KEYWORDS package.keywords supports three special tokens: * package is visible if it is stable on any architecture ~* package is visible if it is in testing on any architecture ** package is always visible (KEYWORDS are ignored completely) Additional Note: If you encounter the -* KEYWORD, this indicates that the package is known to be broken on all systems which are not otherwise listed in KEYWORDS. For example, a binary only package which is built for x86 will look like: games-fps/quake3-demo-1.11.ebuild:KEYWORDS="-* x86" If you wish to accept this package anyways, then use one of the other keywords in your package.keywords like this: games-fps/quake3-demo x86 From man 5 ebuild: DEPEND This should contain a list of all packages that are required for the program to com- pile. DEPEND Atoms A depend atom is simply a dependency that is used by portage when calculating relationships between packages. Please note that if the atom has not already been emerged, then the latest version available is matched. Atom Bases The base atom is just a full category/packagename. Hence, these are base atoms: sys-apps/sed sys-libs/zlib net-misc/dhcp Atom Versions It is nice to be more specific and say that only certain versions of atoms are acceptable. Note that versions must be combined with a prefix (see below). Hence you may add a version number as a postfix to the base: sys-apps/sed-4.0.5 sys-libs/zlib-1.1.4-r1 net-misc/dhcp-3.0_p2 Versions are normally made up of two or three numbers separated by peri- ods, such as 1.2 or 4.5.2. This string may be followed by a character such as 1.2a or 4.5.2z. Note that this letter is not meant to indicate alpha, beta, etc... status. For that, use the optional suffix; either _alpha, _beta, _pre (pre-release), _rc (release candidate), or _p (patch). This means for the 3rd pre-release of a package, you would use something like 1.2_pre3. The suffixes here can be arbitrarily chained without limitation. Atom Prefix Operators [> >= = <= <] Sometimes you want to be able to depend on general versions rather than specifying exact versions all the time. Hence we provide standard bool- ean operators: >media-libs/libgd-1.6 >=media-libs/libgd-1.6 =media-libs/libgd-1.6 <=media-libs/libgd-1.6 <media-libs/libgd-1.6 Extended Atom Prefixes [!~] and Postfixes [*] Now to get even fancier, we provide the ability to define blocking pack- ages and version range matching. Also note that these extended pre- fixes/postfixes may be combined in any way with the atom classes defined above. Here are some common examples you may find in the portage tree: !app-text/dos2unix =dev-libs/glib-2* !=net-fs/samba-2* ~net-libs/libnet-1.0.2a !!<sys-apps/portage-2.1.4_rc1 ! means block packages from being installed at the same time. !! means block packages from being installed at the same time and explicitly disallow them from being temporarily installed simultaneously during a series of upgrades. This syntax is supported beginning with EAPI 2. * means match any version of the package so long as the specified base is matched. So with a version of '2*', we can match '2.1', '2.2', '2.2.1', etc... and not match version '1.0', '3.0', '4.1', etc... <MYEMPHASIS> ~ means match any revision of the base version specified. So in the above example, we would match versions '1.0.2a', '1.0.2a-r1', '1.0.2a-r2', etc... </MYEMPHASIS> Atom Slots Beginning with EAPI 1, any atom can be constrained to match a specific SLOT. This is accomplished by appending a colon followed by a SLOT: x11-libs/qt:3 ~x11-libs/qt-3.3.8:3 >=x11-libs/qt-3.3.8:3 =x11-libs/qt-3.3*:3 Atom USE Beginning with EAPI 2, any atom can be constrained to match specific USE flag settings. When used together with SLOT dependencies, USE dependen- cies appear on the right hand side of SLOT dependencies. Unconditional USE Dependencies Example Meaning ----------------------------------------------------------- foo[bar] foo must have bar enabled foo[bar,baz] foo must have both bar and baz enabled foo[-bar,baz] foo must have bar disabled and baz enabled Conditional USE Dependencies Compact Form Equivalent Expanded Form ----------------------------------------------------- foo[bar?] bar? ( foo[bar] ) !bar? ( foo ) foo[!bar?] bar? ( foo ) !bar? ( foo[-bar] ) foo[bar=] bar? ( foo[bar] ) !bar? ( foo[-bar] ) foo[!bar=] bar? ( foo[-bar] ) !bar? ( foo[bar] ) ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] /etc/portage/package.keywords syntax 2009-04-15 7:23 ` Jorge Morais @ 2009-04-15 22:04 ` Thanasis 0 siblings, 0 replies; 12+ messages in thread From: Thanasis @ 2009-04-15 22:04 UTC (permalink / raw To: gentoo-user on 04/15/2009 10:23 AM Jorge Morais wrote the following: > <snip> > <MYEMPHASIS> > ~ means match any revision of the base version specified. So in the > above example, we would match versions '1.0.2a', '1.0.2a-r1', > '1.0.2a-r2', etc... > </MYEMPHASIS> > A Thanks Jorge :-) ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] /etc/portage/package.keywords syntax 2009-04-15 5:56 ` Thanasis 2009-04-15 6:47 ` Justin @ 2009-04-15 6:54 ` Neil Bothwick 1 sibling, 0 replies; 12+ messages in thread From: Neil Bothwick @ 2009-04-15 6:54 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 309 bytes --] On Wed, 15 Apr 2009 08:56:32 +0300, Thanasis wrote: > > ~sys-kernel/gentoo-sources-2.6.28 > > > What is the meaning of the "~" in front ? > Is it documented? This is Gentoo, everything is documented... somewhere :) man portage -- Neil Bothwick On a clear disk, you can seek forever. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-04-15 22:07 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-04-14 13:01 [gentoo-user] /etc/portage/package.keywords syntax Thanasis 2009-04-14 13:04 ` Justin 2009-04-14 13:08 ` Saphirus Sage 2009-04-14 13:29 ` Thanasis 2009-04-14 13:27 ` Thanasis 2009-04-14 20:09 ` Neil Bothwick 2009-04-15 5:56 ` Thanasis 2009-04-15 6:47 ` Justin 2009-04-15 6:57 ` Neil Bothwick 2009-04-15 7:23 ` Jorge Morais 2009-04-15 22:04 ` Thanasis 2009-04-15 6:54 ` Neil Bothwick
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox