Thomas Poindessous <[EMAIL PROTECTED]> writes:

> I just read www.lwn.net and I saw that conectiva.com hast just started to
> hack apt-get for working with RPM. I use a lot urpmi and apt-get on a
> Debian system and a mix of two will be the top. I also see that Yellow Dog
> has created the same tool in Python.

i've tried to have a look at yellow dog's stuff some time ago. Far from usable
it was i'd say.

i'm currently trying conectiva's apt, but can't get it to do anything. 

i'm also trying to download it, but their server is dead slow and i can't find
any mirrors :-(


anyway, i think there is a solution to all this mess, it's to do the gendepslist
(or now genbasefiles) at package building time.

for example, for package perl-GTK, we get:

pixel@leia:~>rpm -qpR /RPMS/perl-GTK-0.7003-4mdk.i586.rpm
ld-linux.so.2  
libX11.so.6
libXext.so.6  
libXi.so.6  
libc.so.6  
libdl.so.2  
libgdk-1.2.so.0  
libglib-1.2.so.0  
libgmodule-1.2.so.0  
libgtk-1.2.so.0  
libm.so.6  
/usr/bin/perl  
libc.so.6(GLIBC_2.0)  


well, at build time, we can resolve those requires to something more precise:

pixel@leia:~>rpm -qp --mayrequires /RPMS/perl-GTK-0.7003-4mdk.i586.rpm
glibc
XFree86-libs
XFree86-libs
XFree86-libs
glibc
glibc
gtk+
glib
glib
gtk+
glibc
perl-base
glibc

then, for resolving dependencies you do:

i need libX11.so.6 which is not provided yet, hell, the mayrequires tag tells me
XFree86-libs may provide it. the urpmi/apt looks if XFree86-libs really provides
it (it may not if it has changed)...


this solution is quite simple to implement and to use. It keeps the flexibility
of "requires file" (which debian doesn't have), but doesn't the drawback :)



cu Pixel.


Reply via email to