SUMMARY: Problems with RPM in 5.1A

From: Chris Adams <cmadams_at_hiwaay.net>
Date: Fri, 05 Oct 2001 15:08:17 -0500

I received several replies. A couple suggest to look on the OSSC source
CD (it has the same tar file with the RPM binary as the other CD). A
couple had the same questions as I did and wanted to know how to get a
newer RPM working.

The best response was from Klaus Saggerer, who _built_ the version of
RPM on the CD. He sent me the patch he had to make (change all
references in the configure scripts from osf4* to include osf5*), the
Berkeley DB version he used (db-2.7.7 configured with
"--enable-compat185" from the 5.0A and 5.1 OSSC CD), and the command
used to configure RPM:

LIBS='-L/usr/local/BerkeleyDB/lib' \
CPPFLAGS='-I/usr/local/BerkeleyDB/include' \
./configure

Thanks! That clears up why my build with db-1.8.5 as included with the
Tru64 base install didn't work. :-)

He also said that the source not being on the CD was an oversight that
would be fixed for future versions of the OSSC CD.

I've worked some more on building RPM 4.0.2, and I think I just about
have it working. I've made a couple of patches (which I've put up at
http://www.iruntheinter.net/files/rpm/ for anyone that is interested and
will send to the RPM folks):

1) rpm-4.0.2-errx.patch: Tru64 doesn't have errx() functions in libc
   like Linux and rpm didn't compile its own version (even though it
   included it)

2) rpm-4.0.2-osf-thread.patch: rpm tested to see if it needed pthread
   libraries in a way that didn't work quite right

With those patches, I'm able to compile rpm with the following packages
off the OSSC CD installed:

autoconf-2.13-4
automake-1.4-4
bzip2-1.0.1-4
cygnus_gcc-g++-99r1-4
db3-3.1.17-4
gettext-0.10.35-4
gmake-3.79.1-4
libtool-1.3.5-4
texinfo-4.0-4
zlib-1.1.3-4

with the commands

./autogen.sh --noconfigure
./configure
gmake
gmake install

However, at this point, I'm unable to rebuild the existing RPM database
into the new format (it won't open the old one for some reason). Since
this is a new system, I'll probably just blow away the old stuff,
install the new RPM, and then re-install stuff from the OSSC CD.

-- 
Chris Adams <cmadams_at_hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
Received on Fri Oct 05 2001 - 20:09:01 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT