[ATrpms-users] Smart is broken in FC6

Phil Schaffner P.R.Schaffner at IEEE.org
Mon Aug 21 00:36:32 CEST 2006


On Sun, 2006-08-20 at 16:37 +0200, Axel Thimm wrote:
...
> 
> What version/release of smart are you using?

Just updated and got smart-0.42-36.fc5.91.at and
smart-gui-0.42-36.fc5.91.at - which still seems to be broken after
update.  Similar runtime errors to those reported earlier.

> 
> smart for rawhide had been broken for quite some time due to a bug in
> the python package. The latter was recently fixed, so that smart can
> build again - ATrpms will push a build later today.
> 
>     https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=201435
> 
> If you use an old version of smart it will break (maybe as above), so
> either wait for the new build, use the one I recently uploaded to
> extras, or build it from the src.rpm (the specfile/src.rpm is the same
> as for FC5).

Managed to rebuild from source after finding macro

%python_burninversion find . -type f | grep -l "^#!.*python" | xargs perl -pi -e's,^(#!.*python)([^0-9.]*|$),${1}%python_version$2,'

in a 2004 email then encountered the next error that was worked around by command-line option:

$ QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild -bb smart.spec

Built rpms below, installed, and replicated the runtime errors yet again. :-(
        ksmarttray-0.42-36.i386.rpm
        smart-0.42-36.i386.rpm
        smart-gui-0.42-36.i386.rpm
        smart-update-0.42-36.i386.rpm
        
# smart update
Traceback (most recent call last):
  File "/usr/bin/smart", line 194, in ?
    main(sys.argv[1:])
  File "/usr/bin/smart", line 161, in main
    forcelocks=opts.ignore_locks, loglevel=opts.log_level)
  File "/usr/lib/python2.4/site-packages/smart/__init__.py", line 111, in init
    ctrl = Control(configfile, forcelocks)
  File "/usr/lib/python2.4/site-packages/smart/control.py", line 53, in __init__
    self._fetcher = Fetcher()
  File "/usr/lib/python2.4/site-packages/smart/fetcher.py", line 53, in __init__
    self._mediaset = MediaSet()
  File "/usr/lib/python2.4/site-packages/smart/media.py", line 34, in __init__
    self.discover()
  File "/usr/lib/python2.4/site-packages/smart/media.py", line 41, in discover
    for lst in hooks.call("discover-medias"):
  File "/usr/lib/python2.4/site-packages/smart/hook.py", line 64, in call
    val = hook[0](*hookparam, **hookkwparam)
  File "/usr/lib/python2.4/site-packages/smart/media.py", line 329, in discoverAutoMountMedias
    prefix, mapfile = line.split()[:2]
ValueError: need more than 1 value to unpack

Phil





More information about the atrpms-users mailing list