Anybody have a good recent SPEC file for OpenLDAP on RHEL4 that you wouldn't mind posting?
(This is for building RPMs for anybody who doesn't recognize a SPEC file.)
Thanks,
Buchan Milne does.
http://anorien.csc.warwick.ac.uk/mirrors/buchan/openldap/SRPMS/
hmmm, I would expect newer than 2.3.24, maybe he'll chime in on that. .34 should be a drop-in (might have to remove some patches that have been upstreamed) though.
On Wed, 28 Mar 2007, Josh Miller wrote:
Anybody have a good recent SPEC file for OpenLDAP on RHEL4 that you wouldn't mind posting?
(This is for building RPMs for anybody who doesn't recognize a SPEC file.)
Thanks,
Joshua M. Miller - RHCE,VCP
Aaron Richton wrote, on 28. mar 2007 22:09:
Buchan Milne does.
http://anorien.csc.warwick.ac.uk/mirrors/buchan/openldap/SRPMS/
hmmm, I would expect newer than 2.3.24, maybe he'll chime in on that. .34 should be a drop-in (might have to remove some patches that have been upstreamed) though.
FWIW I've built (and am running in production) 2.3.34 using Buchan's 2.3.24 spec as is, out of the box, on RHAS4 by just changing "%define version 2.3.34" in the spec:
rpmbuild -ba openldap.spec --target i686-linux --without test
Buchan has his own philosophy about running OpenLDAP on RHAS/RHEL without conflicting with existing Red Hat OpenLDAP stuff, and it is as well to gen up on that before beginning any build. My experience is that his design is (almost ;)) perfect.
Also worth pointing out is, that one *has* to get the /etc/rpm/macros.mdk4rh rpm macros first, as pointed out in the spec file, or the build will barf before beginning.
Best,
--Tonni
On Thursday 29 March 2007, Tony Earnshaw wrote:
Aaron Richton wrote, on 28. mar 2007 22:09:
Buchan Milne does.
http://anorien.csc.warwick.ac.uk/mirrors/buchan/openldap/SRPMS/
hmmm, I would expect newer than 2.3.24, maybe he'll chime in on that. .34 should be a drop-in (might have to remove some patches that have been upstreamed) though.
FWIW I've built (and am running in production) 2.3.34 using Buchan's 2.3.24 spec as is, out of the box, on RHAS4 by just changing "%define version 2.3.34" in the spec:
I've updated the binaries there to what I'm running in production, (i.e. built from the SRPM that will ship with Mandriva 2007.1).
rpmbuild -ba openldap.spec --target i686-linux --without test
Yep, building without tests saves a bit of time, but I keep it there by default so automated builds on the Mandriva cluster don't get uploaded if they don't pass ...
I now usually skip the tests in most cases, and run them manually on a dev box (using the new tests subpackage).
Buchan has his own philosophy about running OpenLDAP on RHAS/RHEL without conflicting with existing Red Hat OpenLDAP stuff, and it is as well to gen up on that before beginning any build. My experience is that his design is (almost ;)) perfect.
I think I've fixed your syslog issue ... if I haven't, please send me your syslo..conf ...
Also worth pointing out is, that one *has* to get the /etc/rpm/macros.mdk4rh rpm macros first, as pointed out in the spec file, or the build will barf before beginning.
Maybe it's time to start advocating additional standard macro names upstream ... the fact that user addition etc. is macro-fied means that I can actually build some of my Red Hat/Mandriva/Fedora packages on Solaris 9 (just by writing a new set of compat macros that use the flags in the right order for various commands).
Regards, Buchan
Buchan Milne wrote, on 29. mar 2007 16:06:
[...]
Buchan has his own philosophy about running OpenLDAP on RHAS/RHEL without conflicting with existing Red Hat OpenLDAP stuff, and it is as well to gen up on that before beginning any build. My experience is that his design is (almost ;)) perfect.
I think I've fixed your syslog issue ... if I haven't, please send me your syslo..conf ...
I don't run syslogd on any of my rigs, I run syslog-ng and my problem wasn't with syslog, but with other things. I've commented out lots in the 2.3.24 spec and all works perfectly now, I'll send the spec off list.
Maybe it's time to start advocating additional standard macro names upstream ... the fact that user addition etc. is macro-fied means that I can actually build some of my Red Hat/Mandriva/Fedora packages on Solaris 9 (just by writing a new set of compat macros that use the flags in the right order for various commands).
That would, of course, be perfect.
Baaie dankie ;)
--Tonni
On 3/30/07, Tony Earnshaw tonni@hetnet.nl wrote:
Buchan Milne wrote, on 29. mar 2007 16:06:
Buchan has his own philosophy about running OpenLDAP on RHAS/RHEL without conflicting with existing Red Hat OpenLDAP stuff, and it is as well to gen up on that before beginning any build. My experience is that his design is (almost ;)) perfect.
I think I've fixed your syslog issue ... if I haven't, please send me your syslo..conf ...
I don't run syslogd on any of my rigs, I run syslog-ng and my problem wasn't with syslog, but with other things. I've commented out lots in the 2.3.24 spec and all works perfectly now, I'll send the spec off list.
So what sort of problems are you having? There are no doubt others on
this list that run Buchan's rpms on RH systems. It would be good to know
what issues there may be.
Cheers.
Norman Gaywood wrote, on 02. apr 2007 01:27:
[...]
I think I've fixed your syslog issue ... if I haven't, please send
me your
syslo..conf ...
I don't run syslogd on any of my rigs, I run syslog-ng and my problem wasn't with syslog, but with other things. I've commented out lots in the 2.3.24 spec and all works perfectly now, I'll send the spec off list.
So what sort of problems are you having? There are no doubt others on
s/are/were/. I've mentioned problems to Buchan at intervals since I started using his 2.3 srpms several versions ago and he's always taken notice and fixed them at the next version's spec (file).
this list that run Buchan's rpms on RH systems. It would be good to know what issues there may be.
The issues were generally editing errors on subsidiary config files, permission errors and providing unwanted cron and logrotate files. The one he's referring to here edited /etc/syslog.conf to add an entry with a facility my systems don't use, every time a new rpm was installed.
However, firstly most of these have been fixed and secondly most are probably specific to my systems. If most people who use Buchan's rpms haven't found these problems, then they're probably system specific.
However, all rpm packagers (of which I'm one) are dependent on users reporting errors or unwanted things, but surprisingly few do.
Best,
--Tonni
On Wednesday 28 March 2007, Aaron Richton wrote:
Buchan Milne does.
http://anorien.csc.warwick.ac.uk/mirrors/buchan/openldap/SRPMS/
hmmm, I would expect newer than 2.3.24, maybe he'll chime in on that. .34 should be a drop-in (might have to remove some patches that have been upstreamed) though.
Sorry about that.
Been a bit busy with real work (including upgrading all my production LDAP servers to 2.3.34 + patches that I built for the next issue) and finalising packages for Mandriva 2007.1.
I've just uploaded these 2.3.34 packages, and fixed up some tools here to uploads will be more automated in future.
BTW, I've added 2 new subpackages, testprogs, which includes slapd-search etc., and tests, which includes the test suite ready-to-run (as non-root if you set USER_TESTDIR to a local - non-NFS - directory you have write access to, eg $TMPDIR/openldap-testrun).
OpenLDAP 2.4 packages should be on the way soon ...
Regards, Buchan
Buchan Milne wrote, on 29. mar 2007 12:32:
[...]
Been a bit busy with real work (including upgrading all my production LDAP servers to 2.3.34 + patches that I built for the next issue) and finalising packages for Mandriva 2007.1.
I've just uploaded these 2.3.34 packages, and fixed up some tools here to uploads will be more automated in future.
I see the packages, but I don't see an srpm in the SRPM folder..
[...]
OpenLDAP 2.4 packages should be on the way soon ...
Yea! But please include the srpm?
--Tonni
openldap-software@openldap.org