RPM 4.0.4 plus glibc-2.3.1

Kelledin kelledin+LFS at skarpsey.dyndns.org
Sun Apr 13 14:45:35 PDT 2003


On Sunday 13 April 2003 12:29 pm, Florian Schilhabel wrote:
> hi everyone,
> i recently sent this message to chat; think it's better to
> post it here... ;-))
>
> i just installed LFS cvs onto my Compaq Armada.
> in the end, i decided to install rpm-4.0.4 ( yes, i know ;-)
> )), anyway. rpm compiled well with db-3.1.17 and glibc-2.3.1,

Oh btw...you no longer need db3 around to build rpm.  rpm-4.0.4 
includes its own copy of the db source code and links it 
completely statically by default.  Since rpm is the only thing 
on my system that still uses db3, I just let this be.

> rpm works out of the box with glibc 2.2.x series only,
> so i decided to patch that beast to work with 2.3.x series ;-)
>
> apply to rpmio/rpmio.h; it's just that simple...
>
> ----------begin-patch-----------------------
>
> --- rpmio.h       2003-04-12 12:11:12.000000000 +0200
> +++ rpmio.h	2003-04-12 12:33:41.000000000 +0200
> @@ -30,7 +30,8 @@
>    * API unchanged.
>    */
>   /*@{*/
>  -#if !defined(__LCLINT__) && defined(__GLIBC__) && __GLIBC__
> == 2 && __GLIBC_MINOR__ == 2 +#if !defined(__LCLINT__) &&
> defined(__GLIBC__) && \ +	(__GLIBC__ > 2 || (__GLIBC__ == 2 &&
> __GLIBC_MINOR__ >= 2)) #define USE_COOKIE_SEEK_POINTER 1
>   typedef _IO_off64_t 	_libio_off_t;
>   typedef _libio_off_t *	_libio_pos_t;
>
> ----------end-patch--------------------------------
>
> finally, this patch is derived from the rpm 4.1 tar.gz
> package; i did _not_ write this code for myself. and: no
> flame-wars please; i know not everyone likes rpm... ;-))

One thing about the rpm versioning--it's kind of screwy.  The 
rpm.org developers apparently don't believe in packaging patches 
separately; they just slap them in with the tarball.  So the 
latest "stable" source release of rpm-4.0.x is actually the 
tarball contained in rpm-4.0.4-7x.src.rpm (which includes the 
above fix, as well as some others, and differs from the 
bog-standard rpm-4.0.4.tar.gz).

Yes, this is dumb.

-- 
Kelledin
"If a server crashes in a server farm and no one pings it, does 
it still cost four figures to fix?"

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list