1 |
On Wednesday 13 December 2006 22:59, Travis Osterman wrote: |
2 |
> I needed to unmask ivtv by placing it in my |
3 |
> /etc/portage/package.keywords as "media-tv/ivtv". Now I'd like to |
4 |
> have my system not ask me to ever upgrade it again until the newer |
5 |
> version is required as a dependency of some other program. |
6 |
|
7 |
Why? |
8 |
|
9 |
> I thought that putting "=media-tv/ivtv-0.9.0" (where 0.9.0 is my |
10 |
> current version) in /etc/portage/package.mask would be the solution, |
11 |
> but when I "emerge ivtv -pv" it wants to upgrade to "0.9.1". |
12 |
|
13 |
You should package.mask the versions you don't want. Not the version you do |
14 |
want. So ">=media-tv/ivtv-0.9.1" seems to be what you're looking for. |
15 |
Or ">media-tv/ivtv-0.9.0"... |
16 |
|
17 |
> I commented out the line in package.keywords thinking maybe if it was |
18 |
> already installed and masked that portage would ignore it. The result |
19 |
> of this was portage wanted to downgrade to the more 'stable' 0.8.x - |
20 |
> which is also not the desired result. |
21 |
|
22 |
Of course you can also just put "=media-tv/ivtv-0.9.0" in package.keywords. |
23 |
That will work until the 0.9 branch gets stabilised. Of course |
24 |
"~media-tv/ivtv-0.9.0" may be preferred since you may want bugfixes like |
25 |
media-tv/ivtv-0.9.0-r1, media-tv/ivtv-0.9.0-r2 etc. if such ever gets |
26 |
realeased in the tree... |
27 |
|
28 |
> Is there a way to not upgrade to 0.9.1 without emerge'ing ivtv with |
29 |
> the '-1' option or using package.provided (as it seems to circumvent |
30 |
> portage's dependency checking)? Thanks. |
31 |
|
32 |
Using package.provided is a *really* bad idea! It will bite you eventually... |
33 |
|
34 |
This is all documented in `man portage` and the handbook... |
35 |
|
36 |
-- |
37 |
Bo Andresen |