smart doesn't work with rpm 4.4.7 or 5.0.0

Bug #244771 reported by Rehan Khan
2
Affects Status Importance Assigned to Milestone
Smart Package Manager
Won't Fix
Undecided
Unassigned

Bug Description

Imported: http://tracker.labix.org/issue266

Reason: Review Patch

further details: https://blueprints.launchpad.net/smart/+spec/bug-reporting-migration

msg1257 (view) Author: afb Date: 2007-12-18.20:15:56

Here is a revised patch that uses rpm.archscore if present, but just ignores it
when rpm.archscore is missing (such as it is in rpm-python-5.0 for instance...)

msg1062 (view) Author: bmh1980 Date: 2007-01-09.11:33:00

Here is a patch that removes the archscore things. So users can patch there
local smart copy and can use smart again till rpm 4.4.8 is released.

msg1051 (view) Author: n3npq Date: 2006-12-26.12:26:51

On Dec 26, 2006, at 7:08 AM, Mauricio Teixeira (netmask) at Labix
Tracker wrote:

>
> Mauricio Teixeira (netmask) <email address hidden> added the comment:
>
> IIRC, Jeff Johnson told us in the Smart list that the 'archscore'
> would be
> removed from newer RPM implementations.
>

archscore is re-added in rpm-4.4.8 (for like the 3rd or 4th time) to
give
applications Yet Another Chance to do something different.

All of rpmrc is going to be removed, multilib and virtual os's and
emulators have made the
the arch/os scoring mechanisms unwieldy and useless. Meanwhile, I
certainly
dinna mean to break any code, the issue was warned many times, most
recently
in August.

> Niemeyer, I think you're the one to deal with this issue. :)
>

Being dealt with as needed.

73 de Jeff

msg1050 (view) Author: netmask Date: 2006-12-26.12:08:48

IIRC, Jeff Johnson told us in the Smart list that the 'archscore' would be
removed from newer RPM implementations.

Niemeyer, I think you're the one to deal with this issue. :)

msg1049 (view) Author: bmh1980 Date: 2006-12-24.23:48:59

smart doesn't work with rpm 4.4.7. It looks like modifications on the rpm modules.

% smart --gui --log-level=debug
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/smart/channel.py", line 160, in
createChannel
    smart = __import__("smart.channels."+type)
  File "/usr/lib/python2.5/site-packages/smart/channels/rpm_sys.py", line 22, in
<module>
    from smart.backends.rpm.header import RPMDBLoader
  File "/usr/lib/python2.5/site-packages/smart/backends/rpm/header.py", line 27,
in <module>
    from smart.backends.rpm.base import *
  File "/usr/lib/python2.5/site-packages/smart/backends/rpm/base.py", line 40,
in <module>
    archscore = rpm.archscore
AttributeError: 'module' object has no attribute 'archscore'
Traceback (most recent call last):
  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.5/site-packages/smart/interfaces/gtk/interactive.py",
line 364, in run
    self._ctrl.reloadChannels()
  File "/usr/lib/python2.5/site-packages/smart/control.py", line 285, in
reloadChannels
    self.rebuildSysConfChannels()
  File "/usr/lib/python2.5/site-packages/smart/control.py", line 258, in
rebuildSysConfChannels
    channel = createChannel(alias, data)
  File "/usr/lib/python2.5/site-packages/smart/channel.py", line 168, in
createChannel
    raise Error, _("Unable to create channel of type '%s'") % type
Error: Kann folgende Channel Variante nicht erstellen: rpm_sys

Related branches

Revision history for this message
Rehan Khan (rasker) wrote :
Revision history for this message
Rehan Khan (rasker) wrote :

rpm.archscore seems to be unreliable, version to version. Smart has implemented workarounds that produce a better result with common use cases (x86_64/i386) however this is not a 'universal' solution. I'll take a look at this.

Revision history for this message
Anders F Björklund (afb) wrote :

an alternative implementation of the python "rpm.archscore" was added to rpm 5.0.3 (and later)

old archscore and machinescore are still gone, having been replaced with platformscore instead

Changed in smart:
milestone: none → 1.2
Changed in smart:
milestone: 1.2 → 1.1.2
Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

Having rpm.archscore() return 1 in all cases may create problems since machines will try to install packages which are not supported on the architecture. I'd rather implement some internal logic to handle architectures, or not support running Smart at all in these environments, than offering a knowingly problematic tool to break people up.

Changed in smart:
milestone: 1.2 → 1.3
Revision history for this message
Anders F Björklund (afb) wrote :

Upgrading to RPM 4.4.9 or 5.0.3 should be a reasonable solution.

Changed in smart:
milestone: 1.3 → none
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.