Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ciaran McCreesh <ciaran.mccreesh@...>
Subject: Re: [RFC] PROPERTIES=set for meta-packages that should behave like package sets (revised)
Date: Fri, 3 Oct 2008 16:15:36 +0100
On Fri, 03 Oct 2008 00:10:56 -0700
Zac Medico <zmedico@g.o> wrote:
> For the new "sets" profile configuration file format, the simplest
> possible layout could have a set name in the first column and a
> package atom in the second column. The package atom should match an
> ebuild which exhibits the "set" property. In addition to the set
> name and atom columns, we may also want to include an EAPI column
> which the package manager can use to ensure that it parses the atom
> syntax correctly.

We probably want to start putting a profile_eapi file in each profile
directory or something like that... Get package managers to refuse to
use any profile that contains a directory using an eapi it doesn't
know. This'll help sort out the slot deps in profiles issue too.

> Similar to the proposed "virtual" property [2], the "set" property
> will indicate that dependency calculations should consider the
> ebuild to have zero installation cost.

If we go this route, that needs to be a property of its own, really.
Otherwise we'll end up with a dozen properties all of which imply
particular different real properties.

> I order to determine which atoms correspond to a given set, the
> first step is to lookup the set name from the profile's "sets"
> configuration files. The corresponding package atom is then resolved
> to a specific ebuild which should exhibit the "set" property. The
> dependency atoms from this ebuild's RDEPEND variable will serve to
> make up the atoms of the package set. In cases when these atoms
> resolve to other ebuilds that exhibit he "set" property then those
> other ebuilds act as nested sets and this nesting process is
> recursive with no limit on the depth of nesting. The nested sets do
> not necessarily have to be mapped to specific set names by the
> profile's "sets" configuration files. If nested sets are anonymous
> in this sense then their atoms still become a part of the set that
> they are nested within, just as they would if they had been given a
> name by the profile's "sets" configuration files.

Why not just invent a syntax that lets you take an arbitrary ebuild
and use an arbitrary dep key from it as a set? Say, something like
@RDEPEND(=foo/bar-1.23) . No need for any PROPERTIES or mapping
mess at all...

> Does this seem like a good approach? Are there any suggestions for
> improvements or alternative approaches?

This looks to me as if you're trying to find uses for PROPERTIES,
rather than trying to find ways to solve a problem.

-- 
Ciaran McCreesh
Attachment:
signature.asc (PGP signature)
Replies:
Re: [RFC] PROPERTIES=set for meta-packages that should behave like package sets (revised)
-- Zac Medico
References:
[RFC] PROPERTIES=set for meta-packages that should behave like package sets (revised)
-- Zac Medico
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
[RFC] PROPERTIES=set for meta-packages that should behave like package sets (revised)
Next by thread:
Re: [RFC] PROPERTIES=set for meta-packages that should behave like package sets (revised)
Previous by date:
Re: Testing is not a valid reason to package.mask
Next by date:
Re: [RFC] PROPERTIES=set for meta-packages that should behave like package sets (revised)


Updated Jul 10, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.