Issue69

Project smart
Title Perl package cyclically up/downgraded
Priority bug Status done-review
Superseder Nosy List multinymous, netmask, rasker, rocketraman
Assigned To rasker Topics

Created on 2006-01-03.09:44:19 by multinymous, last changed 2008-07-01.10:14:01 by rasker.

Files
File name Uploaded Type Edit Remove
/var/lib/smart/config multinymous, 2006-01-03.09:44:19 application/octet-stream
Messages
msg1419 (view) Author: rasker Date: 2008-07-01.10:14:01
Retired

Reason for Retirement: Please confirm if this is still a problem in the latest
version of Smart.

Please reopen this issue in the new bugtracker if it is still an issue.
New Bugtracker : http://bugs.launchpad.net/smart
further details:
https://blueprints.launchpad.net/smart/+spec/bug-reporting-migration.
msg450 (view) Author: multinymous Date: 2006-03-29.16:55:38
The problem still exists with the latest FC4 Perl packages (perl-3:5.8.6-24@i386
and perl-3:5.8.6-22@i386), smart 0.41.

Doesn't the data in my previous comment suffice to track this bug?
msg293 (view) Author: multinymous Date: 2006-01-24.22:15:30
Here's a summary of the behavior with various priorities and installed versions:

os channel     updates channel    rpm-db channely   version in    result
priority       priority           priority          rpm-db
(3:5.8.6-15)   (3:5.8.6-22)                      

10             10                 1                 -22          -> -15
10             10                 1                 -15          -> -22
10              0                 1                 -15          nothing
10              2                 1                 -15          -> -22
10              2                 3                 -15          nothing
10              4                 3                 -15          -> -22
10              4                 4                 -15          -> -22
10              4                 4                 -15          -> -22
10              4                 5                 -15          nothing
0              10                 1                 -22          nothing
1              10                 1                 -22          nothing
2              10                 1                 -22          -> -15

The first two lines yield the cyclic behavior.

My guess: the installed version gets always gets its priority from the rpm-db
channel, instead of the higher of {rpm-db priority, source channel priority}.
msg290 (view) Author: netmask Date: 2006-01-24.19:17:40
I need that for debugging.
msg287 (view) Author: multinymous Date: 2006-01-24.18:27:35
Do you need that for debugging, or as a workaround? For the latter, I'm already
using locking.

Anyway, smart should never demonstrate this sort of cyclic up/downgrade
behavior, regardless of configured priorities. It doesn't make any sense, and is
never what the user intends. If the current semantics of priorities and upgrade
algorithm yield this sort of behavior, then they are broken.
msg284 (view) Author: netmask Date: 2006-01-24.16:26:07
Priority issues?

Considering that -18 and -22 come from different channels, could you try to
raise the priority of the one which has -22? Try making the priority -10 for the
-22 channel and 10 (positive) for the -18, for example.
msg238 (view) Author: rocketraman Date: 2006-01-17.12:12:18
This is a duplicate of bug 61.
msg233 (view) Author: multinymous Date: 2006-01-13.18:08:29
Is any other information needed to track this down?
msg206 (view) Author: multinymous Date: 2006-01-03.09:44:19
With smart 0.41 on Fedora Core 4, the "perl" package is cyclically up/downgraded
between two versions very time I run "upgrade".

(RPMforge smart-2.2.fc4.rf, stock FC4 python-2.4.1-2).

Transcript:
----------------------------
smart> upgrade --explain

Downgrading packages (1):
  perl-3:5.8.6-18@i386
    Downgrades:
      perl-3:5.8.6-22@i386 (downgraded)
    Requires:
      perl-3:5.8.6-18@i386 (installed)
    Required By:
      perl-3:5.8.6-18@i386 (installed)

11.5MB of package files are needed. 4.3kB will be freed.

Confirm changes? (Y/n): y

smart> commit

Downgrading packages (1):
  perl-3:5.8.6-18@i386

11.5MB of package files are needed. 4.3kB will be freed.

Confirm changes? (Y/n): y

Preparing...                              
########################################################## [  0%]
   1:Installing perl                      
########################################################## [ 50%]
   2:Cleaning perl                        
########################################################## [100%]

Updating cache...                         
########################################################## [100%]

smart> upgrade --explain

Upgrading packages (1):
  perl-3:5.8.6-22@i386
    Upgrades:
      perl-3:5.8.6-18@i386 (upgraded)
    Requires:
      perl-3:5.8.6-22@i386 (installed)
    Required By:
      perl-3:5.8.6-22@i386 (installed)

11.5MB of package files are needed. 4.3kB will be used.

Confirm changes? (Y/n): y

smart> commit

Upgrading packages (1):
  perl-3:5.8.6-22@i386

11.5MB of package files are needed. 4.3kB will be used.

Confirm changes? (Y/n): y


Fetching packages...
-> http://mirrors.kernel.org/fedora/core/updates/4/i386/perl-5.8.6-22.i386.rpm
perl-5.8.6-22.i386.rpm                    
########################################################## [100%]


Committing transaction...
Preparing...                              
########################################################## [  0%]
   1:Installing perl                      
########################################################## [ 50%]
   2:Cleaning perl                        
########################################################## [100%]

Updating cache...                         
########################################################## [100%]

smart>
----------------------------

/var/lib/smart/config attached.
History
Date User Action Args
2008-07-01 10:14:01raskersetstatus: chatting -> done-review
nosy: + rasker
messages: + msg1419
assignedto: rasker
2006-03-29 16:55:39multinymoussetmessages: + msg450
2006-02-28 07:37:20multinymoussetstatus: need-info -> chatting
2006-01-24 22:15:44multinymoussetmessages: + msg293
2006-01-24 19:17:56netmasksetmessages: + msg290
2006-01-24 18:27:37multinymoussetnosy: multinymous, rocketraman, netmask
messages: + msg287
2006-01-24 16:26:08netmasksetproject: smart
status: chatting -> need-info
messages: + msg284
nosy: + netmask
2006-01-17 12:12:20rocketramansetnosy: + rocketraman
messages: + msg238
2006-01-13 18:08:29multinymoussetstatus: unread -> chatting
messages: + msg233
2006-01-03 09:44:19multinymouscreate