smart and slackware and rpm-python

Helmut Hullen Hullen at t-online.de
Thu Jan 31 06:15:00 PST 2008


Hallo, Mauricio,

Du (mteixeira) meintest am 31.01.08:

>> I try to use "smart" (smart 0.52) under slackware.
>> Something seems to work ...
>> Now I have copied a channel file (SuSE repo) to another and then
>> changed the lines to another repo (which is reachable via FTP).

> http://labix.org/smart
> "Notice that this project is *not* a magical bridge between every
> distribution in the planet. Instead, this is a software offering
> *better package management* for these distributions, even when
> working with *their own packages*."

> This means that, even though you can mix Slackware and SUSE packages
> because Smart can do it, that will certainly break your system.

I know ... but I also know that people should be warned.

> Anyway, if you wanna play and try it, you need rpm-python before
> being able to do it.

> Remember: it *WILL* break your system.

I've tried "rpm-python" from SuSE 10.3 (and I know how to import alien  
packets) - doesn't fit.

"strace" shows that "smart" searches in

  /usr/lib/python2.5/site-packages/smart/backends/rpm

for

        smart.so
        smartmodule.so
        smart.py

and so on, but there is no such file.

There is a directory

  /usr/lib/python2.5/site-packages/rpm

but it doesn't contain any smart*.* file (seems to be ok ...).

I've found "smart.py" and "smart.pyc" in the source packet - should  
these files be copied somewhere under

    /usr/lib/python2.5/site-packages/smart/backends

or to some other place? "strace" tells me "smart" searches for  
"smart.py" also in "/usr/bin" (and some other places).

I could link it, but that's no clear way.

And (just tried) after copying "smart.py" and "smart.pyc" from "/usr/ 
src/..." to "/usr/bin"  the call "smart --shell" produces another error  
(last line: "Import Error: cannot import name init").

By the way: "/usr/src/.../smart.py" and "/usr/bin/smart" seem to be  
equal files. I should study the compiling logs ...

Viele Gruesse!
Helmut



More information about the Smart mailing list