On 12/13/06, Bo Ørsted Andresen <[EMAIL PROTECTED]> wrote:
On Wednesday 13 December 2006 22:59, Travis Osterman wrote:
> I needed to unmask ivtv by placing it in my
> /etc/portage/package.keywords as "media-tv/ivtv".  Now I'd like to
> have my system not ask me to ever upgrade it again until the newer
> version is required as a dependency of some other program.

Why?

I tend not to upgrade for long periods on this box once it works and
when I do upgrade generally it is only one or two programs.  Those
programs, however, have many dependencies and portage tends to want to
update everything.  I'm trying to protect myself from myself in a year
running emerge some-app-with-new-feature and breaking ivtv because
there is a new kernel version which needs a new ivtv version, etc.

You should package.mask the versions you don't want. Not the version you do
want. So ">=media-tv/ivtv-0.9.1" seems to be what you're looking for.
Or ">media-tv/ivtv-0.9.0"...

That was my thought too, based on the manual, but an entry (without a
version) in package.keywords takes precident over package.mask (which
I did not know).  After adding your suggestion to package.mask
(">=sys-kernel/gentoo-sources-2.6.19-r2" and ">=media-tv/ivtv-0.9.1")
in addition to "~sys-kernel/gentoo-sources-2.6.19" and
"=media-tv/ivtv-0.9.0" in package.keywords, I tried emerge -pv itvt
and got the results I wanted ... nothing (even though version 0.9.1 is
out there).  Now I am also confident that when these packages go
stable, they will be masked on my system ... perfect.

Using package.provided is a *really* bad idea! It will bite you eventually...
This is all documented in `man portage` and the handbook...

Yes, from what I've read avoiding package.provided is a good practice.
Thank you Steve Neil, and Bo, I have achieved what I aimed for.

-- Travis

--
gentoo-user@gentoo.org mailing list

Reply via email to