On Mon, 8 Dec 2014 23:01, Michael Ströder wrote:
Jan Engelhardt wrote:
On Monday 2014-12-08 21:23, Michael Ströder wrote:
------------------- snip ------------------- [ 224s] cp ldapns.schema /home/abuild/rpmbuild/BUILDROOT/openldap2-2.4.40-0.x86_64/usr/local/etc/openldap/schema [ 224s] cp: cannot create regular file '/home/abuild/rpmbuild/BUILDROOT/openldap2-2.4.40-0.x86_64/usr/local/etc/openldap/schema': No such file or directory [ 224s] Makefile:67: recipe for target 'install' failed [ 224s] make: *** [install] Error 1 ------------------- snip ------------------- Even if I *remove* (for testing) this line from openldap2.spec it fails like above: ------------------- snip ------------------- install -m 644 *.schema $RPM_BUILD_ROOT/%{_sysconfdir}/openldap/schema ------------------- snip -------------------
That is because what fails is not "install -m 644 *.schema", but "make install".
Thanks for your answer.
But frankly I don't get it.
Which line in the build log indicates that a prior "make install" fails?
The cp command above is plain wrong since the target directory should be
/home/abuild/rpmbuild/BUILDROOT/openldap2-2.4.40-0.x86_64/etc/openldap/schema
instead of
/home/abuild/rpmbuild/BUILDROOT/openldap2-2.4.40-0.x86_64/usr/local/etc/openldap/schema
Ciao, Michael.
IMHO spec file error as root cause. Have you checked the results of the %configure? Is there a definition of a "BASE" (or similar) that contains "/usr/local" anywhere? A predefined default of "local" build could cause a basedir of "/usr/local/" instead of "system" build basedir "/" This could be the cause of %{_sysconfdir} resolving to /usr/local/etc. - Yamaban.