[tools] New upcoming mrepo 0.8.5

Tom G. Christensen tgc at statsbiblioteket.dk
Fri Aug 15 13:52:01 CEST 2008


Dag Wieers wrote:
> Hi all,
> 
> Nearly after 2 years I am preparing a new release. This release will add a
> lot of new features that have been sitting in subversion, see the
> ChangeLog for a full list.
> 
> The most important change I added today is the added RHEL4 rhn and
> up2date_client libraries in /usr/share/mrepo/, albeit not in the exact
> same location as before (since I now added rhnlib as well for SLES and
> other distros). So it looks for /usr/share/mrepo/{rhn,up2date_client}
>
Sounds like a good idea however it (naturally) breaks el3 support :(

# /usr/bin/rhnget  -v -v --delete 
--systemid="/var/ftp/mrepo/rhel4es-i386/systemid" 
'rhns:///rhel-i386-es-4' '/var/ftp/mrepo/rhel4es-i386/updates'
Traceback (most recent call last):
   File "/usr/bin/rhnget", line 30, in ?
     from up2date_client import config, rpcServer, wrapperUtils, 
up2dateErrors, repoDirector
   File "/usr/share/mrepo/up2date_client/rpcServer.py", line 18, in ?
     import up2dateAuth
   File "/usr/share/mrepo/up2date_client/up2dateAuth.py", line 17, in ?
     from rhn import rpclib
   File "/usr/share/mrepo/rhn/rpclib.py", line 12, in ?
     import transports
   File "/usr/share/mrepo/rhn/transports.py", line 22, in ?
     import connections
   File "/usr/share/mrepo/rhn/connections.py", line 11, in ?
     import SSL
   File "/usr/share/mrepo/rhn/SSL.py", line 288, in ?
     class TimeoutException(SSL.Error, socket.timeout):
AttributeError: 'module' object has no attribute 'timeout'
#

Removing /usr/share/mrepo/up2date_client allows rhnget to work as expected.

> Also new are the unionfs (merge all your CDs to a single directory) and
> fuseiso (mount as user) patches that are now enabled by default if your
> system has both binaries installed. What is missing is a proper check for
> fuse-support though.
>
I wanted to test this but unfortunately there's no fuse support for el3 
in rpmforge.
We need dkms-fuse-2.5.3 for FUSE kernel support in el3.
For FUSE userland you've built 2.7.3 for el3, unfortunately it requires 
util-linux-2.11z or later since it depends on the -i option to mount.
So we need fuse-2.6.5 for FUSE userland support in el3.

I've tested the above by forking the specfiles (basically changing the 
version and nothing else) and can report that this seems to be working fine.
It'd be nice if we could have a dkms-fuse-2.5.spec and fuse-2.6.spec 
added to rpmforge.

> I would be very interested if as many people as possible can check these
> patches. They work fine for me but your mileage may vary.
> 
# mrepo --version
mrepo 0.8.5
Written by Dag Wieers <dag at wieers.com>
Homepage at http://dag.wieers.com/home-made/mrepo/

platform posix/linux2
python 2.2.3 (#1, Nov 20 2007, 10:35:51)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-58)]

build revision $Rev$

($Rev$ was not expanded since I used git-svn...)

Expect for the issues already mentioned it seems to work. However I 
notice that when I run it with the -r option it will remove symlinks 
from RPMS.all for *any* files not in the repository given by -r. Bug or 
feature?

> Also, I would be very interested if people can verify the createrepo-check
> functionality, there have been many reports that it did or did not work
> and to be honest I lost track what versions of createrepo works with the
> patch.
> 
Just nitpicking but it would probably be a good idea to correct the 
comment above this version check since AFAIK you're checking for < 0.4.7 
or > 0.4.6 and *NOT* < 0.4.6 as it currently says.

-tgc


More information about the tools mailing list