Re: [Cooker] What to do with unversioned libraries (amanda) ?
Brad Felmey wrote: > On Sat, 2002-05-18 at 14:57, Buchan Milne wrote: > > >>[bgmilne bgmilne]$ rpm -qlp rpm/RPMS/i586/amanda-devel-2.4.2p2-1mdk.i586.rpm > > > If it's not too much trouble, could you point me to these packages? My > contribs changelog doesn't list them anywhere, and neither does > rpmfind.net. That's because I haven't added them to contribs yet, they still need some more work (getting the lib stuff right) from a packaging point of view. We are using them on 2 servers so far (one 8.2, one 8.0) with more to come ... looks good so far. RPMs are here: http://ranger.dnsalias.com/mandrake/mandrake8.2/amanda/ Work-in-progress spec file here (patches welcom): http://ranger.dnsalias.com/mandrake/mandrake8.2/amanda/ Buchan -- |Registered Linux User #182071-| Buchan MilneMechanical Engineer, Network Manager Cellphone * Work+27 82 472 2231 * +27 21 8828820x202 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
Re: [Cooker] What to do with unversioned libraries (amanda) ?
> >> > >> What should I do regarding this then? Try and patch it to have versioned > >> libraries (with packages libamada[0-9] and libamanda[0-9]-devel ?) or > >> leave them unversioned (with packages libamanda and libamanda-devel). > >> > >If you leave them unversioned then that defeats the purpose. > >Can you give an example of how the libname looks like? > > These are the two RPMs (of the 4 amanda RPMs that are running on our production > servers) that need some libification: > > [bgmilne bgmilne]$ rpm -qlp rpm/RPMS/i586/amanda-devel-2.4.2p2-1mdk.i586.rpm > /usr/lib/libamanda.a > /usr/lib/libamanda.la > /usr/lib/libamclient.a > /usr/lib/libamclient.la > /usr/lib/libamserver.a > /usr/lib/libamserver.la > /usr/lib/libamtape.a > /usr/lib/libamtape.la These are unversioned. But I think that we can follow the dynamic library way of linking. This does mean, that no more than one unversioned static library can be installed at the same time. Which is not really a problem, since you only need this to build stuff, not run stuff. > [bgmilne bgmilne]$ rpm -qlp rpm/RPMS/i586/amanda-2.4.2p2-1mdk.i586.rpm > /etc/amanda > /etc/amandates > /usr/lib/libamanda-2.4.2p2.so > /usr/lib/libamanda.so > /usr/lib/libamtape-2.4.2p2.so > /usr/lib/libamtape.so > /usr/sbin/amrestore > /usr/share/man/man8/amrestore.8.bz2 > /var/lib/amanda/.amandahosts > /var/lib/lib/amanda > It would seem that it would be reasonable to use 2.4.2p2 as the library version. You'll probably need to put some extra hacks here and there, e.g. if ldd'ing a program linked to libamanda the output that it's linked to libamanda.so and not libamanda-2.4.2p2.so (yes, using nonstandard naming may confuse the linker) then you'll probably need to hack around it somehow, as programs built with 2.4.2p2 may not be binary compatible with programs built on say, a previous version. -- Geoff.
Re: [Cooker] What to do with unversioned libraries (amanda) ?
[EMAIL PROTECTED], [EMAIL PROTECTED] wrote: > >On Thu, May 16, 2002 at 08:05:16PM +0200, Buchan Milne wrote: >> I have got an RPM for amanda (based on the RedHat one), which we are >> using in production now (with the mtx that just went in to cooker). >> Amanda has unversioned libraries though, and rpmlint gives a lot of >> errors regarding this. >> >> What should I do regarding this then? Try and patch it to have versioned >> libraries (with packages libamada[0-9] and libamanda[0-9]-devel ?) or >> leave them unversioned (with packages libamanda and libamanda-devel). >> >If you leave them unversioned then that defeats the purpose. >Can you give an example of how the libname looks like? These are the two RPMs (of the 4 amanda RPMs that are running on our production servers) that need some libification: [bgmilne bgmilne]$ rpm -qlp rpm/RPMS/i586/amanda-devel-2.4.2p2-1mdk.i586.rpm /usr/lib/libamanda.a /usr/lib/libamanda.la /usr/lib/libamclient.a /usr/lib/libamclient.la /usr/lib/libamserver.a /usr/lib/libamserver.la /usr/lib/libamtape.a /usr/lib/libamtape.la [bgmilne bgmilne]$ rpm -qlp rpm/RPMS/i586/amanda-2.4.2p2-1mdk.i586.rpm /etc/amanda /etc/amandates /usr/lib/libamanda-2.4.2p2.so /usr/lib/libamanda.so /usr/lib/libamtape-2.4.2p2.so /usr/lib/libamtape.so /usr/sbin/amrestore /usr/share/man/man8/amrestore.8.bz2 /var/lib/amanda/.amandahosts /var/lib/lib/amanda Hack the makefile? Arbitrarily name the lib package to 0? I have asked about the use of unversioned libs on the amanda mailing list to no avail so far ... Or maybe thy're just versioning them in a weird way? -rwxr-xr-x1 root root85808 Apr 25 00:16 /usr/lib/libamanda-2.4.2p2.so* lrwxr-xr-x1 root root 20 May 18 21:56 /usr/lib/libamanda.so -> libamanda-2.4.2p2.so* -rwxr-xr-x1 root root 9532 Apr 25 00:16 /usr/lib/libamtape-2.4.2p2.so* lrwxr-xr-x1 root root 20 May 18 21:56 /usr/lib/libamtape.so -> libamtape-2.4.2p2.so* Thanks Buchan
Re: [Cooker] What to do with unversioned libraries (amanda) ?
On Thu, May 16, 2002 at 08:05:16PM +0200, Buchan Milne wrote: > I have got an RPM for amanda (based on the RedHat one), which we are > using in production now (with the mtx that just went in to cooker). > Amanda has unversioned libraries though, and rpmlint gives a lot of > errors regarding this. > > What should I do regarding this then? Try and patch it to have versioned > libraries (with packages libamada[0-9] and libamanda[0-9]-devel ?) or > leave them unversioned (with packages libamanda and libamanda-devel). > If you leave them unversioned then that defeats the purpose. Can you give an example of how the libname looks like? -- Geoff.
[Cooker] What to do with unversioned libraries (amanda) ?
I have got an RPM for amanda (based on the RedHat one), which we are using in production now (with the mtx that just went in to cooker). Amanda has unversioned libraries though, and rpmlint gives a lot of errors regarding this. What should I do regarding this then? Try and patch it to have versioned libraries (with packages libamada[0-9] and libamanda[0-9]-devel ?) or leave them unversioned (with packages libamanda and libamanda-devel). Buchan -- |Registered Linux User #182071-| Buchan MilneMechanical Engineer, Network Manager Cellphone * Work+27 82 472 2231 * +27 21 8828820x202 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7