RPM Community Forums

Mailing List Message of <rpm-users>

Re: rpm on OSX Lion

From: Anders F Björklund <afb@rpm5.org>
Date: Sun 25 Mar 2012 - 19:07:39 CEST
Message-Id: <B1EE0F6B-5CD4-4CE6-8D25-3869F329316C@rpm5.org>
Jeffrey Johnson wrote:

>> First thing I'd like to do is building RPM 5.x from tarball or SCM with no dependencies on MacPorts. 
> 
> Here's the build incantations:
>    $ cvs -d ':pserver:anonymous@rpm5.org:/v/rpm/cvs' get -r rpm-5_4 -d wdj54 rpm
>    $ cd wdj54
>    $ ./devtool checkout
>    $ ./devtool falmouth
>    $ make
>    $ cd tests
>    $ make clean test

Installing things, not managed by MacPorts, into the "/opt/local" prefix
is bound to cause some conflicts one way or another. Wouldn't recommend it.

> You WILL need (on Lion) to install db-5.3.15  (I'm told that a db53 port was just added).
> 
> I do this one expedient hack with db-5.,3.15 (because its a PITA to "fix" properly):
> 
>    cd /opt/local/lib
>    ln -s db53/* .

It should be enough to use the regular CPPFLAGS+=-I/opt/local/include/db53
and LDFLAGS+=-L/opt/local/lib/db53, rather than setting up symlinks, I think.

> Change the %falmouth stanza to lose any build prerequisites
> (mostly bog standard MacPorts but I do what is needed to
> enable _EVERYTHING_ for RPM development) that you do not wish to fight with.

Adding a "rpm54" port would be the most straight-forward way to include it.
I'll see what I can do about it, should be a copy of the existing "rpm52"...


Of course, neither the %falmouth nor the (post-5.2) %macosx devtool target
nor the mac ports will help if one wants to make a stand-alone distribution.

Then you need to start from the beginning, by installing all dependencies.
Just like the %standalone target used to do, while it was still "alive" ?

--anders
Received on Sun Mar 25 19:09:43 2012
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.