Monday, April 02, 2007

» rpm -qa

Discussing a little on #smart yesterday about providing tab completion to smart on the shell (i.e. bash completion for smart install y<tab>), I argued it would be difficult because querying the list of all installed packages from RPM is a pretty slow thing. I stand corrected: Jeff Johnson (aka Mr RPM ;)) reminded me that what is actually slow when doing rpm -qa is computing the hashes, which can be turned off using the following flags: --nosignature --nodigest And indeed, the following command is a lot faster (especially when the RPM database files are not cached in memory): rpm -qa --nosignature --nodigest Too long to type ? cat <EOF >>/usr/local/bin/rpmqa #!/bin/sh exec rpm -qa --nosignature --nodigest "$@" EOF chmod 755 /usr/local/bin/rpmqa rpmqa smart\*

Labels:

Sunday, April 01, 2007

» Blender 2.43 RPMs for openSUSE

I'm currently working on Blender 2.43 RPM packages for openSUSE. It was a lot of work but I was finally able to build them (requires a lot of patching), even on x86_64. Note that it doesn't include the player (compilation fails badly on Linux, will investigate and fix it later) nor the game engine (will enable it later as well) but it does seem to work. Note while I also do provide a x86_64 build, only use Blender on 64bit for testing purposes: it seems that the developers suspect that Blender saves broken .blend files on 64bit. The relevant comment in the sources is as follows: /* temporary: prevent people to make/use 64 bits versions without them knowing it might be risky. I don't know for sure yet if we get problems, but I rather not get the burden of having to fix all faulty saved 64 bits files (ton) */ Use at your own risk ;) The packages for 10.2 (will build for other versions later) will be available in my "experimental" repository later today (please make sure to use at least blender-2.43-2.guru, not 2.43-1 With smart, adding that experimental repository is done like this (in a single line, in a shell as root):

smart channel --add guru-experimental type=rpm-md \ baseurl=http://ftp.skynet.be/pub/suser-guru/rpm/experimental/10.2

Please let me know whether it works for you -- as I never used Blender myself, I was only able to do some quick, superficial testing.

Labels: ,