public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] HOWTO stick a package
@ 2009-07-11 15:57 Andrew Gaydenko
  2009-07-11 17:06 ` Alan McKinnon
  2009-07-11 20:13 ` Keith Dart
  0 siblings, 2 replies; 9+ messages in thread
From: Andrew Gaydenko @ 2009-07-11 15:57 UTC (permalink / raw
  To: gentoo-user

Hi!

Currently I have xorg-server-1.6.1.901-r4 - as far as all newer ones don't 
work for me (I mean GL-related things with my intel graphics), while first one 
makes my son happy with few GL games. So I have masked all xorg-server 
versions which are later rather one currently installed.

Today after syncing the portage tree I was surprized this 1.6.1.901-r4 version 
is dropped, and emerge suggests to downgrade to 1.5.x, while I want to stick 
to currently installed. 

How to say portage to "keep this as is"?



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] HOWTO stick a package
  2009-07-11 15:57 [gentoo-user] HOWTO stick a package Andrew Gaydenko
@ 2009-07-11 17:06 ` Alan McKinnon
  2009-07-11 17:24   ` Andrew Gaydenko
  2009-07-11 20:13 ` Keith Dart
  1 sibling, 1 reply; 9+ messages in thread
From: Alan McKinnon @ 2009-07-11 17:06 UTC (permalink / raw
  To: gentoo-user

On Saturday 11 July 2009 17:57:32 Andrew Gaydenko wrote:
> Hi!
>
> Currently I have xorg-server-1.6.1.901-r4 - as far as all newer ones don't
> work for me (I mean GL-related things with my intel graphics), while first
> one makes my son happy with few GL games. So I have masked all xorg-server
> versions which are later rather one currently installed.
>
> Today after syncing the portage tree I was surprized this 1.6.1.901-r4
> version is dropped, and emerge suggests to downgrade to 1.5.x, while I want
> to stick to currently installed.
>
> How to say portage to "keep this as is"?

Find the ebuild in /var/db/pkg/category/package
Copy it to your personal local overlay
Configure make.conf to include this in PORTDIR_OVERLAY
Mask anything later than that version

All standard stuff, documented at length in gentoo docs. Search for "overlay"

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] HOWTO stick a package
  2009-07-11 17:06 ` Alan McKinnon
@ 2009-07-11 17:24   ` Andrew Gaydenko
  2009-07-11 17:28     ` Alan McKinnon
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Gaydenko @ 2009-07-11 17:24 UTC (permalink / raw
  To: gentoo-user

> Find the ebuild in /var/db/pkg/category/package

Thanks, it works - just created Manifest also.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] HOWTO stick a package
  2009-07-11 17:24   ` Andrew Gaydenko
@ 2009-07-11 17:28     ` Alan McKinnon
  2009-07-11 18:32       ` William Hubbs
  0 siblings, 1 reply; 9+ messages in thread
From: Alan McKinnon @ 2009-07-11 17:28 UTC (permalink / raw
  To: gentoo-user; +Cc: Andrew Gaydenko

On Saturday 11 July 2009 19:24:35 Andrew Gaydenko wrote:
> > Find the ebuild in /var/db/pkg/category/package
>
> Thanks, it works - just created Manifest also.

It's pity that portage doesn't support the .deb concept of pinning. I know you 
can always achieve the same effect with masks, but it would be nice to be able 
to say "hold package XYZ at current version" and be done with it. It happens 
often enough to be useful.

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] HOWTO stick a package
  2009-07-11 17:28     ` Alan McKinnon
@ 2009-07-11 18:32       ` William Hubbs
  2009-07-11 18:44         ` Alan McKinnon
  0 siblings, 1 reply; 9+ messages in thread
From: William Hubbs @ 2009-07-11 18:32 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Alan,

On Sat, Jul 11, 2009 at 07:28:24PM +0200, Alan McKinnon wrote:
> On Saturday 11 July 2009 19:24:35 Andrew Gaydenko wrote:
> > > Find the ebuild in /var/db/pkg/category/package
> >
> > Thanks, it works - just created Manifest also.
> 
> It's pity that portage doesn't support the .deb concept of pinning. I know you 
> can always achieve the same effect with masks, but it would be nice to be able 
> to say "hold package XYZ at current version" and be done with it. It happens 
> often enough to be useful.
 
You might want to take a look at man 5 portage, in particular, the
section on /etc/portage/profile/package.provided.  If you list a full
package atom with a version in there, portage will not bother you about
upgrading that package, and  you do not have to keep the ebuild around
in a local overlay.

Does this do what you are trying to do?

- -- 
William Hubbs
gentoo accessibility team lead
williamh@gentoo.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iEYEARECAAYFAkpY2rMACgkQblQW9DDEZTg7wACfbWK3T/Y22DHJEkNVVNFJogJ9
WmoAn0hrTfbF1JaKiRuAVYrw8OyE4Eic
=dzI6
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] HOWTO stick a package
  2009-07-11 18:32       ` William Hubbs
@ 2009-07-11 18:44         ` Alan McKinnon
  0 siblings, 0 replies; 9+ messages in thread
From: Alan McKinnon @ 2009-07-11 18:44 UTC (permalink / raw
  To: gentoo-user

On Saturday 11 July 2009 20:32:19 William Hubbs wrote:
> Hi Alan,
>
> On Sat, Jul 11, 2009 at 07:28:24PM +0200, Alan McKinnon wrote:
> > On Saturday 11 July 2009 19:24:35 Andrew Gaydenko wrote:
> > > > Find the ebuild in /var/db/pkg/category/package
> > >
> > > Thanks, it works - just created Manifest also.
> >
> > It's pity that portage doesn't support the .deb concept of pinning. I
> > know you can always achieve the same effect with masks, but it would be
> > nice to be able to say "hold package XYZ at current version" and be done
> > with it. It happens often enough to be useful.
>
> You might want to take a look at man 5 portage, in particular, the
> section on /etc/portage/profile/package.provided.  If you list a full
> package atom with a version in there, portage will not bother you about
> upgrading that package, and  you do not have to keep the ebuild around
> in a local overlay.
>
> Does this do what you are trying to do?

This little snippet from --depclean is enough to make me never use 
package.provided with a package from an ebuild:

# emerge -a --depclean

 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.


AFAIK, package.provided is for use with apps that are in portage but for 
whatever reason the user has decided to install them by other means. 
package.provided is a way to satisfy deps of that package without having it 
installed via an ebuild. The solution you propose does require installation 
via an ebuild.

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] HOWTO stick a package
  2009-07-11 15:57 [gentoo-user] HOWTO stick a package Andrew Gaydenko
  2009-07-11 17:06 ` Alan McKinnon
@ 2009-07-11 20:13 ` Keith Dart
  2009-07-11 21:07   ` Alex Schuster
  1 sibling, 1 reply; 9+ messages in thread
From: Keith Dart @ 2009-07-11 20:13 UTC (permalink / raw
  To: gentoo-user

=== On Sat, 07/11, Andrew Gaydenko wrote: ===
> How to say portage to "keep this as is"?

===

I always just use /etc/portage/package.mask

e.g.:

>media-libs/mesa-7.3-r1

masks anything greater than that version. 

(for me, 3D/dri does not work with my Intel chipset (G35) for mesa
greater than that). 



-- Keith Dart

-- 

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Keith Dart <keith@dartworks.biz>
   public key: ID: 19017044
   <http://www.dartworks.biz/>
   =====================================================================



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] HOWTO stick a package
  2009-07-11 20:13 ` Keith Dart
@ 2009-07-11 21:07   ` Alex Schuster
  2009-07-11 21:13     ` Keith Dart
  0 siblings, 1 reply; 9+ messages in thread
From: Alex Schuster @ 2009-07-11 21:07 UTC (permalink / raw
  To: gentoo-user

Keith Dart writes:

> === On Sat, 07/11, Andrew Gaydenko wrote: ===
>
> > How to say portage to "keep this as is"?

> I always just use /etc/portage/package.mask
>
> e.g.:
> >media-libs/mesa-7.3-r1
>
> masks anything greater than that version.

That's what Andrew already did. But now the specific version he needs is no 
longer in portage, so portage wants to downgrade. Maybe masking lower 
versions also would do the trick?
But putting the ebuild into the overlay is the cleanest solution.

	Wonko



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] HOWTO stick a package
  2009-07-11 21:07   ` Alex Schuster
@ 2009-07-11 21:13     ` Keith Dart
  0 siblings, 0 replies; 9+ messages in thread
From: Keith Dart @ 2009-07-11 21:13 UTC (permalink / raw
  To: gentoo-user

=== On Sat, 07/11, Alex Schuster wrote: ===
> That's what Andrew already did. But now the specific version he needs
> is no longer in portage, so portage wants to downgrade. Maybe masking
> lower versions also would do the trick?
> But putting the ebuild into the overlay is the cleanest solution.

===

Oh, I see. Well, regarding the Intel graphics (I have the same thing) I
found that it is related to the mesa version and X configuration,
anyway, not the X server version. I currently have the latest X server
but with mesa-7.3 and it works fine.



-- Keith Dart

-- 

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Keith Dart <keith@dartworks.biz>
   public key: ID: 19017044
   <http://www.dartworks.biz/>
   =====================================================================



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-07-11 21:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-11 15:57 [gentoo-user] HOWTO stick a package Andrew Gaydenko
2009-07-11 17:06 ` Alan McKinnon
2009-07-11 17:24   ` Andrew Gaydenko
2009-07-11 17:28     ` Alan McKinnon
2009-07-11 18:32       ` William Hubbs
2009-07-11 18:44         ` Alan McKinnon
2009-07-11 20:13 ` Keith Dart
2009-07-11 21:07   ` Alex Schuster
2009-07-11 21:13     ` Keith Dart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox