This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Successful Build of rpm-4.0.3


Soren A wrote:
> "Max Bowsher" <maxb@ukf.net> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]