Re: [expert] Upgrading RPM 3 to 4

2001-04-16 Thread C. CLOSE

John Wolford wrote:
> 
> 
> Yeah but what database does it use? Did you have to specify *anything* or did it 
>just start
> working on its own?
> 
> This is the closest thing to a success story i've heard of on this particular issue.
> 
> Thanks,
> j
Hi,
The db files you want are the BerkeleyDB.3.1 distribution available
from www.sleepycat.com.
These build ok and install in /usr/local/.
You can then build the rpm.4 source there are a few tricks to this. The
first thing you need to do is to feed configure with the paths of the db
files on usr local the following script is what I used.

LDFLAGS='-L/usr/local/BerkeleyDB.3.1/lib'
CFLAGS='-I/usr/local/BerkeleyDB.3.1/include' ./configure >check 2>&1 &
tail -f check 

Put this in a file in the top rpm-4.0 directory and make it executable
then run it.

You will also need to do one important hack!!.

go to the lib directory in the rpm-4 source tree and open the file db3.c
in a text editor. Near the top you will find a line #include 
change this to
#include 

then run make and then make install.

With a bit of luck you will have rpm-4 in your /usr/local/bin/
directory.

By the way don't bother to try and run the tests they are badly broken.
I did hack them a bit and got most of them to pass they are mainly
screwed on the paths Redhat must have a slightly different directory
structure than Mandrake. The only tests which I know definatelt failed
are the two last tests in the popt directory; using a pre-build Mandrake
lib for this would probably solve the problem configure or the makefiles
would probably have to be hacked to do this.

FYI I have tried install the Mandrake cooker RPM-4 binary package with
--nodeps I was able to install it and uninstall it. I could not run it
fully because I don't have libc-2.2.2. If you have it a simple sybolic
link from the /usr/local/Berkely libs to /usr/lib will probably allow it
to run alternatively you can change the install dir on the one youv'e
compiled and do an install in the proper places. I haven't done this yet 


Hope this info helps you


Regards

Colin Close

> 
> --- "C. CLOSE" <[EMAIL PROTECTED]> wrote:
> > SoloCDM wrote:
> > >
> > > Does anyone have ideas how to go from RPM version 3.x to 4.x,
> > > because RPM version 3.x won't install version 4.x?  Also, what
> > > files are necessary to completely upgrade?
> > >
> > > Note: When you reply to this message, please include the mailing
> > >   list/newsgroup address in Cc: and my email address in To:.
> > >
> > > *
> > > Signed,
> > > SoloCDM
> >
> > Hi,
> >   I had this problem the only solution I found was to download the source
> > as a tar.gz archive and compile it, I seem to recall that there were
> > some dependencies. If I recall correctly it was htdig which also needed
> > a later version (it was certainly a database package). I installed in
> > /usr/local and use it from the command line when necessary; this saved
> > messing up the rpm-3 installation. Hope this helps.
> >
> >
> >   Regards
> >
> >Colin Close




Re: [expert] Upgrading RPM 3 to 4

2001-04-16 Thread John Wolford

See my last post. This illustrates my point quite nicely.

If you figure it out, please post it.

Thanks :-)
j

--- SoloCDM <[EMAIL PROTECTED]> wrote:
> Does anyone have ideas how to go from RPM version 3.x to 4.x,
> because RPM version 3.x won't install version 4.x?  Also, what
> files are necessary to completely upgrade?
> 
> Note: When you reply to this message, please include the mailing
>   list/newsgroup address in Cc: and my email address in To:.
> 
> *
> Signed,
> SoloCDM
> 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




Re: [expert] Upgrading RPM 3 to 4

2001-04-16 Thread John Wolford

Yeah but what database does it use? Did you have to specify *anything* or did it just 
start
working on its own?

This is the closest thing to a success story i've heard of on this particular issue.

Thanks,
j


--- "C. CLOSE" <[EMAIL PROTECTED]> wrote:
> SoloCDM wrote:
> > 
> > Does anyone have ideas how to go from RPM version 3.x to 4.x,
> > because RPM version 3.x won't install version 4.x?  Also, what
> > files are necessary to completely upgrade?
> > 
> > Note: When you reply to this message, please include the mailing
> >   list/newsgroup address in Cc: and my email address in To:.
> > 
> > *
> > Signed,
> > SoloCDM
> 
> Hi,
>   I had this problem the only solution I found was to download the source
> as a tar.gz archive and compile it, I seem to recall that there were
> some dependencies. If I recall correctly it was htdig which also needed
> a later version (it was certainly a database package). I installed in
> /usr/local and use it from the command line when necessary; this saved
> messing up the rpm-3 installation. Hope this helps.
> 
> 
>   Regards
> 
>Colin Close
> 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




Re: [expert] Upgrading RPM 3 to 4

2001-04-15 Thread C. CLOSE

SoloCDM wrote:
> 
> Does anyone have ideas how to go from RPM version 3.x to 4.x,
> because RPM version 3.x won't install version 4.x?  Also, what
> files are necessary to completely upgrade?
> 
> Note: When you reply to this message, please include the mailing
>   list/newsgroup address in Cc: and my email address in To:.
> 
> *
> Signed,
> SoloCDM

Hi,
I had this problem the only solution I found was to download the source
as a tar.gz archive and compile it, I seem to recall that there were
some dependencies. If I recall correctly it was htdig which also needed
a later version (it was certainly a database package). I installed in
/usr/local and use it from the command line when necessary; this saved
messing up the rpm-3 installation. Hope this helps.


Regards

 Colin Close