Re: rpm on OSX Lion

2012-03-28 Thread Jeffrey Johnson
On Mar 28, 2012, at 12:50 AM, Henri Gomez wrote: I removed everything in /usr/local and changed PATH to hide contents in /opt/local Good. So question about pcre used with --with-pcre=Internal is still opened. I cannot diagnose your error until you add --miredebug. There are 2

Re: rpm on OSX Lion

2012-03-27 Thread Henri Gomez
In make install I noticed : bin/sh ../../libtool --tag=CC --mode=link /usr/bin/clang -pipe -O2 -arch i386 -arch x86_64 -D_GNU_SOURCE -D_REENTRANT -L/usr/local/lib -arch i386 -arch x86_64 -Wl,-search_paths_first -o update update.o ../../rpmio/librpmio.la ../../misc/librpmmisc.la

Re: rpm on OSX Lion

2012-03-26 Thread Jeffrey Johnson
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

Re: rpm on OSX Lion

2012-03-26 Thread Henri Gomez
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). How can I select such preferred building ? Yes OpenMP is problematic on Mac OS X because of LLVM != GCC. You might want to look at

Re: rpm on OSX Lion

2012-03-26 Thread Henri Gomez
But see the options use when db-5.3.15 is built. This is what I use to build Berkely DB on Mac OS X (after creating a build_macosx directory to build in) === #!/bin/sh prefix=/opt/local configure_cmd=../dist/configure configure_args=        --prefix=${prefix}        

Re: rpm on OSX Lion

2012-03-26 Thread Henri Gomez
BTW, I attached tests results : 2012/3/26 Henri Gomez henri.go...@gmail.com: But see the options use when db-5.3.15 is built. This is what I use to build Berkely DB on Mac OS X (after creating a build_macosx directory to build in) === #!/bin/sh prefix=/opt/local

Re: rpm on OSX Lion

2012-03-26 Thread Jeffrey Johnson
On Mar 26, 2012, at 11:53 AM, Henri Gomez wrote: rpm-test-results Quick drive-by browse: --14: __gpg %{_bindir}/gpg2 That is used by make test to generate a pub key for testing. That is these failures: sh genpgp.sh genpgp.h genpgp.sh: line 15: gpg2: command not

Re: rpm on OSX Lion

2012-03-26 Thread Jeffrey Johnson
On Mar 26, 2012, at 12:31 PM, Henri Gomez wrote: Use noarch. What would be kinda spiffy is to automate lipo under RPM control and strip out the unused architectures in universal executables (and if one trusts the automated dependencies are accurate) the libraries. I've also been waiting

Re: rpm on OSX Lion

2012-03-26 Thread Jeffrey Johnson
On Mar 26, 2012, at 12:39 PM, Henri Gomez wrote: I'll add gpg, neon and wget, and redo tests. About pcre, I build rpm with 8.30 (as seen in otool log). Should I disable it ? PCRE is MANDATORY (because RPM has compiled in patterns written in the PCRE dialect). 8.30 was what I used when I

Re: rpm on OSX Lion

2012-03-26 Thread Anders F Björklund
Jeffrey Johnson: [...] The .src.rpm format is somewhat troublesome to port, but bundled rpm2cpio.sh and extracted the tarball in a post-extract {} step. [...] But if it gets to be too big a hassle, I'll pop out the tar ball and included detached signature whenever you wish. Basically

Re: rpm on OSX Lion

2012-03-26 Thread Anders F Björklund
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) Great! The only thing I added after that was

Re: rpm on OSX Lion

2012-03-26 Thread Anders F Björklund
Henri Gomez wrote: Not sure what you ask here: you want a rpm-mac mailing list? Nope, I just want to see if there is other guys interested with RPM on OSX. Frankly, I'm borred to rebuild Brew/MacPorts stuff and I'm not alone. I just want to be able to set a package repository and use yum or

Re: rpm on OSX Lion

2012-03-26 Thread Henri Gomez
Anders, your expertise on OSX and RPM will be very helpfull. Could we team up for providing Snow/Lion packages (RPM yum/zypper/wharever) ? Le 26 mars 2012 à 20:35, Anders F Björklund a...@rpm5.org a écrit : Henri Gomez wrote: Also, Xcode build tools may stop supporting PowerPC in a near

Re: rpm on OSX Lion

2012-03-26 Thread Henri Gomez
If MacPorts could provide a RPM based distribution, may be need for recreating a new distribution may be less urgent. Better if they push dependencies in ... RPMs. MacPorts team did a tremendous works and duplicating effort may not be mandatory. About RPM on MacPorts, could it be updated

Re: rpm on OSX Lion

2012-03-26 Thread Jeffrey Johnson
On Mar 26, 2012, at 4:54 PM, Henri Gomez wrote: What's devtool.conf ? This is the file where various build option stanzas are kept. Building from CVS, the workflow goes like cvs co rpm ./devtool checkout ./devtool falmouth # -- the build options I use on Lion

Re: rpm on OSX Lion

2012-03-26 Thread Jeffrey Johnson
On Mar 26, 2012, at 4:57 PM, Henri Gomez wrote: MacPorts team did a tremendous works and duplicating effort may not be mandatory. I should explain the fundamental disconnect between RPM - MacPorts (and more generally *BSD) here. There are build dependencies and there are install

Re: rpm on OSX Lion

2012-03-25 Thread Jeffrey Johnson
On Mar 25, 2012, at 2:59 AM, Henri Gomez wrote: Jenkins is spiffy, buildbot -- particularly with older python-2.4 -- is a bit of wrestling match. I set up both on the same machine. Jenkins/Hudson needed 500 Mb and filled /var/log within a week with useless messages. Yep, Jenkins could

Re: rpm on OSX Lion

2012-03-25 Thread Jeffrey Johnson
On Mar 25, 2012, at 11:18 AM, Henri Gomez 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:anonym...@rpm5.org:/v/rpm/cvs' get -r rpm-5_4 -d wdj54 rpm $ cd wdj54 $

Re: rpm on OSX Lion

2012-03-25 Thread Henri Gomez
You're amazing guys ! Well, I feel I have works-fun next week. I'll avoid /opt of course, first step will be to install rpm under /usr/bin for a test drive and test some of my own rpms. If it works great, next step may be a relocation under /opt/rpm4osx or something like this, ie using a

Re: rpm on OSX Lion

2012-03-24 Thread Henri Gomez
Excellent. I now well Jenkins but not Waterfall, seems interesting. I build the latest rpm-5_4 from CVS on Lion Server using a buildbot here:        http://harwich.jbj.org:8010/waterfall Both Lion Server (and Leopard) are there in the waterfalls. (aside) Both are broken atm just because I

Re: rpm on OSX Lion

2012-03-24 Thread Jeffrey Johnson
On Mar 24, 2012, at 9:12 AM, Henri Gomez wrote: Excellent. I now well Jenkins but not Waterfall, seems interesting. Jenkins is spiffy, buildbot -- particularly with older python-2.4 -- is a bit of wrestling match. I set up both on the same machine. Jenkins/Hudson needed 500 Mb and filled

Re: rpm on OSX Lion

2012-03-23 Thread Jeffrey Johnson
On Mar 23, 2012, at 7:41 PM, Henri Gomez wrote: Hi to all, I'm a long time rpm user and packager and I'd like to experiment it on OSX (10.7.3) and Xcode 4.3.2. Good. snip Did someone succeed to build rpm 5.x on OSX Lion ? Advices more than welcomed. I build the latest rpm-5_4