Smart has been added to the Arch User Repository (AUR)

Rehan rehan.khan at dsl.pipex.com
Fri Oct 15 01:45:26 PDT 2010


@Xavion, You could just delete the backends and channels you don't need after extracting the tarball/pulling the source and then continuing with the install as usual. I think this should work for you.

Of course it would be better to be able to install stuff you need rather than remove the stuff you don't need as it makes more sense. It's been discussed before but there didn't seem to be a need. My own view is that it would be cleaner to break up the smart source into a 'core' application and then separate backends with their compatible channels in their own source code repositories. Thus one would be able to pull in what one needs rather than having to delete what one doesn't need. A secondary advantage would be that rpm development would be separated from apt development from arch development etc. However this does seem a lot more work than possibly needed.

Doing this in the makefile or setup.py etc would be less work but would probably need configuration/support for each distro that uses Smart.

Rehan

> -----Original Message-----
> From: smart-bounces at lists.labix.org [mailto:smart-bounces at lists.labix.org]
> On Behalf Of Anders F Björklund
> Sent: 15 October 2010 08:45
> To: Xavion
> Cc: Smart-PM Mailing List
> Subject: Re: Smart has been added to the Arch User Repository (AUR)
> 
> Xavion wrote:
> 
> >> I didn't see any post to the mailing list, but the easiest way to
> >> avoid the python-rpm requirement is to either patch out the inclusion
> >> of the rpm module or avoid loading it through config (e.g. set
> >> detect-sys-channels to "arch", in your distro.py ?)
> >>
> >> The smart Makefile doesn't do much besides call setup.py, and python
> >> distutils isn't as much for customization as ./configure.
> >> But smart itself doesn't demand installing channels/backends,
> 
> > I just set "detect_sys_channels = "arch"" in "smart/plugins/
> > detectsys.py", but I'm still getting that shitty "'rpm' python module
> > is not available"
> > error message and 'smart' refuses to continue.  I just removed "import
> > rpm"
> > from "smart/backends/rpm/base.py", but doing so only caused other
> > Python errors at runtime.
> 
> Okay, when I said "patch out" I probably meant to say delete the rpm
> backend and channels, or put them in a sub-package if possible.
> Otherwise smart will still try to load them all when it starts up, as you can see
> from the traceback (when run with --log-level=debug).
> 
> > Anyway, you shouldn't expect me to search through the code.  This
> > information needs to be clearly detailed in the 'README' file, or
> > potential users will be turned away.  If you can't be bothered
> > implementing this disabling feature properly, please at least take the
> > time to explain exactly what I need to 'sed' out.  Remember that this
> > is for the benefit of other Arch Linux users, as I am the 'smart'
> > package<http://aur.archlinux.org/packages.php?ID=24655>maintainer in
> > the AUR.
> 
> I don't (require you to read code), just recall Slackware having the same
> "problem" and fixing it. Will have to probe what the "fix" was, even if it
> requires installing Arch Linux and/or Slackware again...
> But the rpm python module is only required for the rpm smart backend.
> 
> --anders
> 
> 




More information about the Smart mailing list