From bb3f79a6c1c1faeaea67d9a9be27f846fc486a0a281c031d6bcb4f8c28a0b158 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Thu, 26 Sep 2024 11:28:47 +0200 Subject: [PATCH] Adapt spec file for samba 4.21 From 4.21 onwards Samba no longer provides an independent libldb tarball. The library is now considered to be private and it has to be built from the samba package using a specific configure switch to expose it and the modules path has changed from /usr/lib64/ldb2/modules/ldb/ to /usr/lib64/samba/ldb. In the case of /usr/lib64/samba/ldb/memberof.so the directory /usr/lib64/samba/ldb is owned by libldb2 and sssd requires it, so the directory shouldn't be owned by sssd. But the case of /usr/lib64/samba/idmap/sss.so falls into the "Common directory for unrelated packages" exception from the packaging guidelines. In this case sssd should also own /usr/lib64/samba. Signed-off-by: Samuel Cabrero --- sssd.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sssd.spec b/sssd.spec index 17e610d..faf4771 100644 --- a/sssd.spec +++ b/sssd.spec @@ -654,7 +654,7 @@ fi %dir %_libdir/%name/modules/ %_libdir/%name/modules/libsss_autofs.so %_libdir/libsss_sudo.so -%ldbdir/ +%ldbdir/memberof.so %dir %_libexecdir/%name/ %_libexecdir/%name/p11_child %_libexecdir/%name/sssd_autofs @@ -832,7 +832,9 @@ fi %python3_sitelib/sssd/ %files winbind-idmap -%_libdir/samba/ +%dir %_libdir/samba +%dir %_libdir/samba/idmap +%_libdir/samba/idmap/sss.so %_mandir/man8/idmap_sss.8* %files -n libipa_hbac0