2 things you can do: 1. Read the .spec file and applie the patches in the order they are mentioned there. 2. Run /usr/lib/rpm/rpmdb --initdb ( or whereever debian puts it ) and try to rpm again :)
On Fri, Jul 13, 2001 at 12:14:50AM -0400, Paul D. Smith wrote: > I have an SRPM that I need to build on my Debian box. Really, I don't > need to build it I just need to get to the patch phase (-bp) so that it > constructs the proper source hierarchy and applies the patches (there > are a lot of patches and they have to be applied in a certain order). > > I'd installed the Debian RPM and I used rpm -i to install the SRPM, > which put the source in the SOURCES directory and the spec file in the > SPECS directory just fine. > > But, when I try to run the "rpm -bp" I get this error: > > error: cannot open Packages index using db3 - No such file or directory (2) > error: cannot open rpm database in /var/lib/rpm > > I created that directory and put an empty Packages file there, but I > get: > > error: cannot open Packages index using db3 - Invalid argument (22) > error: cannot open rpm database in /var/lib/rpm > > I don't want to do anything else with RPM, I just want to get this > source set up correctly. It's annoying that I appear to need a Packages > DB just for that, but I apparently do. > > Does anyone know how to construct a legal Packages file (I guess it can > be empty--not contain any packages) on my Debian (woody/testing) box? > > Thx. > > -- > ------------------------------------------------------------------------------- > Paul D. Smith <[EMAIL PROTECTED]> HASMAT--HA Software Methods & Tools > "Please remain calm...I may be mad, but I am a professional." --Mad Scientist > ------------------------------------------------------------------------------- > These are my opinions---Nortel Networks takes no responsibility for them. > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- I don't suffer from insanity, I enjoy every minute of it.