Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[gentoo-user] Protecting a package in package.keywords?

 
   Soft32 Home -> Linux -> User RSS
Next:  [gentoo-user] Master mode stopped working  
Author Message
Travis Osterman

External


Since: Mar 10, 2006
Posts: 5



(Msg. 1) Posted: Wed Dec 13, 2006 5:10 pm
Post subject: [gentoo-user] Protecting a package in package.keywords?
Archived from groups: linux>gentoo>user (more info?)

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.

I thought that putting "=media-tv/ivtv-0.9.0" (where 0.9.0 is my
current version) in /etc/portage/package.mask would be the solution,
but when I "emerge ivtv -pv" it wants to upgrade to "0.9.1".

I commented out the line in package.keywords thinking maybe if it was
already installed and masked that portage would ignore it. The result
of this was portage wanted to downgrade to the more 'stable' 0.8.x -
which is also not the desired result.

Is there a way to not upgrade to 0.9.1 without emerge'ing ivtv with
the '-1' option or using package.provided (as it seems to circumvent
portage's dependency checking)? Thanks.

-- Travis
--
gentoo-user.RemoveThis@gentoo.org mailing list
Back to top
Login to vote
Steve Dibb

External


Since: Jun 20, 2006
Posts: 75



(Msg. 2) Posted: Wed Dec 13, 2006 5:20 pm
Post subject: Re: [gentoo-user] Protecting a package in package.keywords? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.
>
> I thought that putting "=media-tv/ivtv-0.9.0" (where 0.9.0 is my
> current version) in /etc/portage/package.mask would be the solution,
> but when I "emerge ivtv -pv" it wants to upgrade to "0.9.1".
>
> I commented out the line in package.keywords thinking maybe if it was
> already installed and masked that portage would ignore it. The result
> of this was portage wanted to downgrade to the more 'stable' 0.8.x -
> which is also not the desired result.
>
Well, ivtv is a little strange in the sense that each branch is specific
for a kernel branch. Technically, you're going to be best off running
the latest ivtv branch (irregardless of whether its marked stable).
So, if you are running the 0.9 branch of ivtv, I'd recommend keeping up
to date with the bugfixes and upgrading to 0.9.1.

If you wanted to do something like that, and make all 0.9.x versions
"stable" in package.keywords, then you would add this:

=media-tv/ivtv-0.9*

But if you just want to stick with 0.9.0, then what you had before is
correct.

=media-tv/ivtv-0.9.0

Just make sure there aren't any other entries for ivtv in there.

Steve

--
gentoo-user DeleteThis @gentoo.org mailing list
Back to top
Login to vote
Travis Osterman

External


Since: Mar 10, 2006
Posts: 5



(Msg. 3) Posted: Wed Dec 13, 2006 5:50 pm
Post subject: Re: [gentoo-user] Protecting a package in package.keywords? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> If you wanted to do something like that, and make all 0.9.x versions
> "stable" in package.keywords, then you would add this:
>
> =media-tv/ivtv-0.9*
>
> But if you just want to stick with 0.9.0, then what you had before is
> correct.
>
> =media-tv/ivtv-0.9.0

Excellent, I put both "=sys-kernel/gentoo-sources-2.6.19-r1" and
"=media-tv/ivtv-0.9.0" in my package.keywords and now I can emerge
world without worry.

If either of these versions get unmasked by the developers, am I back
in the same situation of needing to manually mask them to prevent
installation? At least I know this will work for now. Thanks.

-- Travis
--
gentoo-user.DeleteThis@gentoo.org mailing list
Back to top
Login to vote
Travis Osterman

External


Since: Mar 10, 2006
Posts: 5



(Msg. 4) Posted: Wed Dec 13, 2006 6:40 pm
Post subject: [gentoo-user] Re: [FIXED] Protecting a package in package.keywords? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 12/13/06, Bo Ørsted Andresen <bo.andresen RemoveThis @zlin.dk> 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 RemoveThis @gentoo.org mailing list
Back to top
Login to vote
Jason Ausmus

External


Since: Jan 25, 2006
Posts: 6



(Msg. 5) Posted: Wed Dec 13, 2006 7:00 pm
Post subject: RE: [gentoo-user] Protecting a package in package.keywords? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> -----Original Message-----
> From: Steve Dibb [mailto:beandog@gentoo.org]
> Sent: Wednesday, December 13, 2006 2:14 PM
> To: gentoo-user.DeleteThis@lists.gentoo.org
> Subject: Re: [gentoo-user] Protecting a package in package.keywords?
>
> Travis Osterman wrote:

<snip>

> Technically, you're going
> to be best off running
> the latest ivtv branch (irregardless of whether its marked stable).

<snip>

Sorry, but "irregardless" != English word

I'm not trying to deputize myself as a grammar police officer, but I'm
powerless to resist this one...

-
Jason

Do grammar police have K-9 units?

--
gentoo-user.DeleteThis@gentoo.org mailing list
Back to top
Login to vote
Travis Osterman

External


Since: Mar 10, 2006
Posts: 5



(Msg. 6) Posted: Wed Dec 13, 2006 10:40 pm
Post subject: Re: [gentoo-user] Re: [FIXED] Protecting a package in package.keywords? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> [SNIP]
>
> Hmm... If you put ~media-tv/ivtv-0.9.0 in both package.mask and
> package.keywords then you will find that ~media-tv/ivtv-0.9.0 cannot be
> installed because it is "masked by: package.mask". Hence I would say that
> package.mask takes precedence over package.keywords... I suppose what you
> wanted to say was that a package can be "masked by: ~arch keyword" without
> being in package.mask and hence won't be installed because it's masked by
> something...

I was speaking more of the following situation:

# cat /etc/portage/package.keywords | grep ivtv
media-tv/ivtv
# cat /etc/portage/package.mask | grep ivtv
~media-tv/ivtv-0.9.0
# emerge -pv ivtv
[ebuild N ] media-tv/ivtv-0.9.1

But I see you are correct with this:

# cat /etc/portage/package.keywords | grep ivtv
~media-tv/ivtv-0.9.0
# cat /etc/portage/package.mask | grep ivtv
~media-tv/ivtv-0.9.0
# emerge -pv ivtv
[ebuild N ] media-tv/ivtv-0.8.0

I guess I learned a few new things today. Thanks for all the information.

-- Travis
--
gentoo-user.RemoveThis@gentoo.org mailing list
Back to top
Login to vote
Display posts from previous:   
Related Topics:
FW: [gentoo-user] Protecting a package in package.keywords? - > -----Original Message----- > From: CTI Corporativo [mailto:cticorporativo@fibertel.com.ar] > Sent: Friday, ...

[gentoo-user] specific version of package in /etc/portage/.. - hi everybody! I don't like to upgrade to ruby version 1.8.3 so i added the following line(s) (not all at the same..

[gentoo-user] package.keywords - In my "/etc/portage/package.keywords" I have "app-arch/dar ~x86" Yet when I try to -uvpD world, I...

[gentoo-user] package.keywords - Hi, due to a human error I've deleted my package.keyowrd file... (echo "package ~x86" > /etc/portage/pack...

[gentoo-user] restore package.keywords? - Hey all. I accidently used '>' instead of '>>' when adding a line to my /etc/portage/package.keywords file. ...

[gentoo-user] package.keywords not working? - I have ntop-3.0 installed, and I want to emerge ntop-3.1, which is currently ~x86. So, i put net-analyzer/ntop in..
       Soft32 Home -> Linux -> User All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]