On Tue, 18 Mar 2008 10:21:49 +0100
"Fabio Erculiani" <[EMAIL PROTECTED]> wrote:
> Example:
> x11-libs/qt:*
> 
> In that case, what Paludis will pull? x11-libs/qt:3 or x11-libs/qt:4 ?
> Is my understanding right?
> Also, could you make an example for the ":= slot dependency" syntax?

See the section "Slot Dependencies" in chapter 9 of
http://www.mailstation.de/pms.pdf .

In non technical terms:

:* means, effectively, that the slot isn't locked at compile time, and
that if you build a package against foo:2, it will work at runtime
with foo:1 or foo:3 instead. Examples of this are many things that don't
do C-style linking.

:= means, effectively, that the slot is locked at compile time. An
example of this is a package that can use any version of 'db' -- the
package can often compile against any version of db, but if you remove
the slot of the db version against which the package was built, the
package will break.

It's used by Paludis as a hint to --uninstall and --uninstall-unused.
For normal dependencies, Paludis takes the safe option and assumes that
if something has a run dep upon foo, all installed slots of foo are
used. Using :* dependencies relaxes that restriction to any slot.
Using := dependencies changes that restriction to one specific slot.

-- 
Ciaran McCreesh

Attachment: signature.asc
Description: PGP signature

Reply via email to