On Mar 26, 2012, at 10:49 AM, Henri Gomez wrote: > 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)
Good. Careful about sqlite, its rather tricky. Preferred is building/using the sqlite layer in Berkeley DB (which is exactly sqlite with a Berkeley DB storage). > > 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 > Yes OpenMP is problematic on Mac OS X because of LLVM != GCC. You might want to look at --with-java: it was rather nice. > 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) > You likely should add neon to that mix. > 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. > The very first thing you should do is cd tests make -k clean test and examine that output for serious flaws. The cpu-os-macros.tar.gz is likely of little use on Mac OS X: what is inside is the thundering herd of platforms that RPM used to attempt to provide a "default" configuration for. There's too many dialects from distro vendors for any one-size-fits-all "default" RPM configuration. hth 73 de Jeff > Cheers > ______________________________________________________________________ > RPM Package Manager http://rpm5.org > User Communication List rpm-users@rpm5.org ______________________________________________________________________ RPM Package Manager http://rpm5.org User Communication List rpm-users@rpm5.org