RPM 4.0.4 plus glibc-2.3.1

Florian Schilhabel florian.schilhabel at web.de
Sun Apr 13 10:29:02 PDT 2003


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,
problems came at runtime:
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... ;-))
 
 
cheers,
florian 



______________________________________________________________________________
UNICEF bittet um Spenden fur die Kinder im Irak! Hier online an
UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101

-- 
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