Hi Michael,
Michael Ströder michael@stroeder.com writes:
HI!
Building package nss-pam-ldapd for Leap and SLE currently fails:
https://build.opensuse.org/package/show/network:ldap/nss-pam-ldapd
RPM build errors: File must begin with "/": %{_pam_moduledir}/pam_ldap.so
Probably %{_pam_moduledir} is wrong for these platforms.
Looking at the log: --8<---------------cut here---------------start------------->8--- [ 94s] /usr/bin/install -c pam_ldap.so /home/abuild/rpmbuild/BUILDROOT/nss-pam-ldapd-0.9.11-lp153.23.1.x86_64%{_pam_moduledir}/pam_ldap.so --8<---------------cut here---------------end--------------->8---
it looks like %_pam_moduledir is not defined on Leap & SLE: --8<---------------cut here---------------start------------->8--- faf84efe2f30:/ # cat /usr/lib/rpm/macros.d/macros.pam # on Leap 15.3 %_pamdir /lib64/security --8<---------------cut here---------------end--------------->8--- but it is on Tumbleweed: --8<---------------cut here---------------start------------->8--- 4397836858f5:/ # cat /usr/lib/rpm/macros.d/macros.pam %_pam_libdir %{_libdir} %_pam_moduledir %{_libdir}/security %_pam_secconfdir %{_sysconfdir}/security %_pam_confdir %{_sysconfdir}/pam.d %_pam_vendordir %{_distconfdir}/pam.d # legacy, to be retired %_pamdir %{_pam_moduledir} --8<---------------cut here---------------end--------------->8---
So you'll probably have to revert to the good'ol hackery: --8<---------------cut here---------------start------------->8--- %{!?_pam_moduledir: %define _pam_moduledir %{_libdir}/security} --8<---------------cut here---------------end--------------->8---
Cheers,
Dan