Andreas Schwab wrote:
Michael Ströder
writes: Disclaimer: I'm not a packaging expert. I'm just trying to update packages here and there.
In the current case I'm fighting with a strange problem here:
https://build.opensuse.org/package/show/home:stroeder:branches:network:ldap:...
It seems %{_sysconfdir} expands to /usr/local/etc but only in some cases.
No, it should always expand to /etc.
Build always fails like this:
------------------- 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
You need to pass sysconfdir=%{_sysconfdir} when calling make in the contrib overlays.
This was the solution! slapo-nssov ships with its own copy of ldapns.schema and the Makefile wants to also install that. Ciao, Michael.