Hello CentOS People,
I'm trying to build the php-5.0.4-5 subpackage 'php-ldap' from the centosplus repo --with-ldap-sasl. Strangly the stock php-ldap package is linked with libsasl2 et al but the ldap_sasl_bind PHP function is not available which leads me to conclude that it was not built --with-ldap-sasl.
To this end, can anyone help with the following questions:
1) The php-5.0.4-5.centos4.src.rpm builds 17 packages. Is there anyway to instruct rpmbuild to only build 1 of those packages? Is there a way to hack the php.spec to only build 1 package?
2) Is there a way to specify a configure option with rpmbuild? I know PHP's configure accepts --with-ldap-sasl but trying to simply pass that as an argument to rpmbuild does not work.
3) Where is config.log? After running rpmbuild it is nowhere to be found.
4) I suspect I will need to experiment with changing the .src.rpm contents and rebuilding the package(s). However, because rpmbuild unpacks the archive anew each time, it overwrites any changes I attempt to make. Is there a way to instruct rpmbuild to build from an existing build dir?
Thanks, Mike
hi,
Michael B Allen wrote:
Hello CentOS People,
- The php-5.0.4-5.centos4.src.rpm builds 17 packages. Is there anyway
to instruct rpmbuild to only build 1 of those packages? Is there a way to hack the php.spec to only build 1 package?
not without redoing parts of the spec file. in most cases, its a waste of time. just build the whole set and use that, or just use the subpackages you need.
plus there is the chance that some of the sub-packages need / rely on the main package / other sub-packages also being there..
- Is there a way to specify a configure option with rpmbuild? I know
PHP's configure accepts --with-ldap-sasl but trying to simply pass that as an argument to rpmbuild does not work.
do you have the required devel stuff installed ? ( i havent actually looked at the php binaries as yet, so cant confirm the options its built with )
- Where is config.log? After running rpmbuild it is nowhere to be found.
depends on how far down the road you killed / dropped the rpmbuild process - otherwise look in the BUILD directory under you rpm-build-tree.
- I suspect I will need to experiment with changing the .src.rpm contents
and rebuilding the package(s). However, because rpmbuild unpacks the archive anew each time, it overwrites any changes I attempt to make. Is there a way to instruct rpmbuild to build from an existing build dir?
make a patch, and incorporate that patch into the .spec file.
also, btw, 5.0.x tree of php got obsoleted yesterday in favour of php-5.1.x, so you might want to try with that instead.
also, btw, 5.0.x tree of php got obsoleted yesterday in favour of php-5.1.x, so you might want to try with that instead.
The 5.1.x tree isn't in centosplus yet, but you can find it in the testing repository located at http://dev.centos.org. Current is 5.1.4