RPM Community Forums

Mailing List Message of <rpm-users>

Re: rpm on OSX Lion

From: Henri Gomez <henri.gomez@gmail.com>
Date: Mon 26 Mar 2012 - 16:49:31 CEST
Message-ID: <CALyUpY2s8ZdYB4MEamVOxT0C4emBsHwzNA7QvMa+kYmeoVXn1Q@mail.gmail.com>
Hi to all,

I success in building rpm 5.4.7 on OSX (from tarball)

First step was to build and install bee crypt 4.2.1, popt 1.1.6,
db-5.3.15, sqlite 3.7.11, pcre 8.30, zlib 1.2.6 libraries under
/usr/local (nothing in)

For configure I forced dual arch :

./configure --prefix=/usr/local CC=/usr/bin/clang 'CFLAGS=-pipe -O2
-arch x86_64' 'LDFLAGS=-L/usr/local/lib -arch x86_64'
CPPFLAGS=-I/usr/local/include CXX=/usr/bin/clang++ 'CXXFLAGS=-pipe -O2
-arch x86_64'

For beecrypt, I disabled some options with :

--disable-openmp --without-cplusplus --without-java --without-python

rpm is only using system or prebuilt libraries :


otool -L /usr/local/bin/rpm
/usr/local/bin/rpm:
	/usr/local/lib/librpmbuild-5.4.dylib (compatibility version 0.0.0,
current version 0.0.0)
	/usr/local/lib/librpm-5.4.dylib (compatibility version 0.0.0, current
version 0.0.0)
	/usr/local/lib/librpmdb-5.4.dylib (compatibility version 0.0.0,
current version 0.0.0)
	/usr/local/lib/librpmio-5.4.dylib (compatibility version 0.0.0,
current version 0.0.0)
	/usr/local/lib/librpmmisc-5.4.dylib (compatibility version 0.0.0,
current version 0.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 159.1.0)
	/usr/local/lib/libpcreposix.0.dylib (compatibility version 1.0.0,
current version 1.0.0)
	/usr/local/lib/libdb-5.3.dylib (compatibility version 0.0.0, current
version 0.0.0)
	/usr/local/lib/libbeecrypt.7.dylib (compatibility version 8.0.0,
current version 8.0.0)
	/usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
	/usr/local/lib/libz.1.dylib (compatibility version 1.0.0, current
version 1.2.6)
	/usr/local/lib/libpopt.0.dylib (compatibility version 1.0.0, current
version 1.0.0)
	/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/local/lib/libpcre.1.dylib (compatibility version 2.0.0, current
version 2.0.0)

Question :

What should I do now, I noticed a cpu-os-macros.tar.gz bundled in
source RPM but not macros available for OSX inside.

Cheers
Received on Mon Mar 26 16:49:33 2012
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.