commit:     4851df917d9c42839a315760f35a79dbd000e185
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 28 19:15:23 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Jan 28 19:19:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4851df91

net-fs/samba: remove empty dirs in /run and /var

Closes: https://bugs.gentoo.org/892341
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 net-fs/samba/{samba-4.15.12-r3.ebuild => samba-4.15.12-r4.ebuild} | 3 +++
 net-fs/samba/{samba-4.16.7-r3.ebuild => samba-4.16.7-r4.ebuild}   | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/net-fs/samba/samba-4.15.12-r3.ebuild 
b/net-fs/samba/samba-4.15.12-r4.ebuild
similarity index 98%
rename from net-fs/samba/samba-4.15.12-r3.ebuild
rename to net-fs/samba/samba-4.15.12-r4.ebuild
index 7cd4ba9cba8b..685dbfdbc549 100644
--- a/net-fs/samba/samba-4.15.12-r3.ebuild
+++ b/net-fs/samba/samba-4.15.12-r4.ebuild
@@ -270,6 +270,9 @@ multilib_src_install() {
        # smbspool_krb5_wrapper must only be accessible to root, bug #880739
        find "${ED}" -type f -name "smbspool_krb5_wrapper" -exec chmod go-rwx 
{} + || die
 
+       # Remove empty runtime dirs created by build system (bug #892341)
+       find "${ED}"/{run,var} -type d -empty -delete || die
+
        if multilib_is_native_abi ; then
                # install ldap schema for server (bug #491002)
                if use ldap ; then

diff --git a/net-fs/samba/samba-4.16.7-r3.ebuild 
b/net-fs/samba/samba-4.16.7-r4.ebuild
similarity index 98%
rename from net-fs/samba/samba-4.16.7-r3.ebuild
rename to net-fs/samba/samba-4.16.7-r4.ebuild
index 3f91c4f83dab..3186d2557a34 100644
--- a/net-fs/samba/samba-4.16.7-r3.ebuild
+++ b/net-fs/samba/samba-4.16.7-r4.ebuild
@@ -310,6 +310,9 @@ multilib_src_install() {
        # smbspool_krb5_wrapper must only be accessible to root, bug #880739
        find "${ED}" -type f -name "smbspool_krb5_wrapper" -exec chmod go-rwx 
{} + || die
 
+       # Remove empty runtime dirs created by build system (bug #892341)
+       find "${ED}"/{run,var} -type d -empty -delete || die
+
        if multilib_is_native_abi ; then
                # Install ldap schema for server (bug #491002)
                if use ldap ; then

Reply via email to