Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <00d001c26a4b$4ff51b30$5300a8c0@bowsher.foo> From: "Max Bowsher" To: "Soren A" , References: <001a01c200e4$fde5e240$42a18c09 AT wdg DOT uk DOT ibm DOT com> Subject: Re: Successful Build of rpm-4.0.3 Date: Wed, 2 Oct 2002 20:38:25 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Soren A wrote: > "Max Bowsher" wrote around 21 May 2002 > >> The attached shell script contains the steps I used to build >> rpm-4.0.3 (with its included db) on an up-to-date cygwin. It is >> heavily based on the instructions by Mario Schmidt at >> http://rtfm.shagged.org/~mario/cygwin > > Max, Hey, thanks for posting this. I am wondering if you could provide > more information re. porting 'rpm' to Cygwin. Even tho this posting is > months old. I've moved on to rpm-4.0.4 since then, but haven't yet tried rpm-4.1 > The url above (~mario ...) is bad now. And I went to the official rpm > site and then burrowed into ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.3/, > installed the source tree. > > I ran the script and it didn't quite finish installing stuff (LOTS of > stuff) before it ('make') died with some hard to understand error but > it did get far enough that I have a working rpm setup, good enough at > least to run 'rpm2cpio FOO.rmp | cpio -i...'. Oh. Try rpm-4.0.4 w/ script I posted today. Here it is again: ### BEGIN pre-configure script ### echo Adjusting db3/configure... perl -i.orig -pe 's/\`echo \$\* \| sed -e \ \"s\% --cache-file=\.\*\$\%([^%]*)\%\"\`/$1/;s/--enable-rpc/--disable-rpc/;' \ db3/configure echo Removing -lrt from Makefile.in and rpmio/Makefile.in for file in Makefile.in rpmio/Makefile.in; do perl -i.orig -pe 's/^(LIBS\s*=\s*(?:\S+\s+)*)-lrt(\s+.*)/$1$2/;' $file done ### END pre-configure script ### > Do you have any plans to propose rpm as an official Cygwin package? No, at least not soon, as although I got it building, I didn't go further. I've since been distracted into some other things (including setup.exe). > And are you interested in making the build more simple? Now that db3 > is available for Cygwin, most of the dependencies that are shipped as > bundled sources with rpm-4.0.3 can be satisfied by already-installed > cygwin packages, if one can figure out the linking details and so > forth. Unfortunately, rpm-4.0.4 has moved on to db-4.0.14, not yet available for Cygwin. > Last observation: providing a build script like that is really a nice > contribution, probably beats heck out of merely providing a verbal > description of "how you did it". Thanks, Max. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/