Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] HOWTO stick a package
Date: Sat, 11 Jul 2009 18:45:58
Message-Id: 200907112044.18313.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] HOWTO stick a package by William Hubbs
1 On Saturday 11 July 2009 20:32:19 William Hubbs wrote:
2 > Hi Alan,
3 >
4 > On Sat, Jul 11, 2009 at 07:28:24PM +0200, Alan McKinnon wrote:
5 > > On Saturday 11 July 2009 19:24:35 Andrew Gaydenko wrote:
6 > > > > Find the ebuild in /var/db/pkg/category/package
7 > > >
8 > > > Thanks, it works - just created Manifest also.
9 > >
10 > > It's pity that portage doesn't support the .deb concept of pinning. I
11 > > know you can always achieve the same effect with masks, but it would be
12 > > nice to be able to say "hold package XYZ at current version" and be done
13 > > with it. It happens often enough to be useful.
14 >
15 > You might want to take a look at man 5 portage, in particular, the
16 > section on /etc/portage/profile/package.provided. If you list a full
17 > package atom with a version in there, portage will not bother you about
18 > upgrading that package, and you do not have to keep the ebuild around
19 > in a local overlay.
20 >
21 > Does this do what you are trying to do?
22
23 This little snippet from --depclean is enough to make me never use
24 package.provided with a package from an ebuild:
25
26 # emerge -a --depclean
27
28 * Always study the list of packages to be cleaned for any obvious
29 * mistakes. Packages that are part of the world set will always
30 * be kept. They can be manually added to this set with
31 * `emerge --noreplace <atom>`. Packages that are listed in
32 * package.provided (see portage(5)) will be removed by
33 * depclean, even if they are part of the world set.
34
35
36 AFAIK, package.provided is for use with apps that are in portage but for
37 whatever reason the user has decided to install them by other means.
38 package.provided is a way to satisfy deps of that package without having it
39 installed via an ebuild. The solution you propose does require installation
40 via an ebuild.
41
42 --
43 alan dot mckinnon at gmail dot com