Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132388 - Upgrade and downgrade a single program at the same time, not a dependency
Summary: Upgrade and downgrade a single program at the same time, not a dependency
Status: RESOLVED DUPLICATE of bug 48195
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Lowest trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-05 14:30 UTC by Charles Phoenix
Modified: 2006-05-07 11:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Phoenix 2006-05-05 14:30:45 UTC
I know this bug has been beaten to death but I believe I have an interesting test case.

What I was trying to do was mask out current versions.

I have openoffice-2.0.2 installed.

I entered '>=app-office/openoffice-2.0.2-r1' in 'package.mask

only to get the following output

#emerge -pv openoffice

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD] app-office/openoffice-2.0.1-r1 [2.0.2] USE="kde xml% -binfilter -eds -gnome -gtk -java -ldap -mozilla" 188,724 kB
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-05 14:40:30 UTC
So, what's the terrible bug here? Those UD letters? Definitely a dupe of something I don't care enough to search for.
Comment 2 Zac Medico gentoo-dev 2006-05-05 15:31:51 UTC
Can you explain the problem a little more.  I'm not sure if this is a duplicate of bug 48195 or what.
Comment 3 Charles Phoenix 2006-05-05 22:14:04 UTC
The bug I am thinking of is 13632, and it's TWO years old sage. It is not a particular bug per se but you will notice the upgrade/downgrade *issue* keeps reappearing. This is a fundamental issue with Portage upgrading functionality.

Why worry about that 'UD'? Ever compile openoffice? I estimate if it downgrades then "upgrades" it should take about 16 hours. Not an issue at all. And no I don't want to test if that will happen.

Did you notice it is not respecting my mask settings? It should do nothing? Not an issue at all.


Since Zac Medico response is mature I will answer it.

I noticed that openoffice-2.0.2 ebuild is no longer available.
The versions of openoffice available are 2.0.1-r1, 2.0.2-r1, 2.0.2-r2.

The various options I tried...

1) masking >app-office/openoffice-2.0.2, result...
[ebuild     UD] app-office/openoffice-2.0.1-r1 [2.0.2]

2) masking >app-office/openoffice-2.0.2-r1, result...
[ebuild     U ] app-office/openoffice-2.0.2-r1 [2.0.2]

3) masking >=app-office/openoffice-2.0.2-r1, result...
[ebuild     UD] app-office/openoffice-2.0.1-r1 [2.0.2]

only 2) is behaving as expected. It seems 2.0.2 it is not being considered in the calculation. I believe this is an interesting test case for causing the upgrade/downgrade issue which does not involve dependencies.

Enough info?
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2006-05-06 02:49:49 UTC
reopening for duping
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2006-05-06 02:50:04 UTC
stupid bugzilla
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2006-05-06 02:50:25 UTC
Actually it is a dupe of 48195, problem being that the resolver doesn't look at vdb at all for candidates.

*** This bug has been marked as a duplicate of 48195 ***
Comment 7 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-05-07 11:25:49 UTC
> 
> I noticed that openoffice-2.0.2 ebuild is no longer available.
> The versions of openoffice available are 2.0.1-r1, 2.0.2-r1, 2.0.2-r2.
> 
> The various options I tried...
> 
> 1) masking >app-office/openoffice-2.0.2, result...
> [ebuild     UD] app-office/openoffice-2.0.1-r1 [2.0.2]

Masking anything > 2.0.2 leaves what available.  2.0.1-r1.
So this is "correct"

> 
> 2) masking >app-office/openoffice-2.0.2-r1, result...
> [ebuild     U ] app-office/openoffice-2.0.2-r1 [2.0.2]

Masking anything greater than 2.0.2-r1 leaves 2.0.2-r1 itself available, and 2.0.1-r1.  Since 2.0.2-r1 is greater, it is selected.  Correct also

> 
> 3) masking >=app-office/openoffice-2.0.2-r1, result...
> [ebuild     UD] app-office/openoffice-2.0.1-r1 [2.0.2]

masking >=2.0.2-r1 leaves only 2.0.1-r1 available, so it is selected.  


The bug here being that "2.0.2" is also technically "available" because it's installed, but portage doesn't appear to consider it.

However, this IS a dupe :0