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.