net-fs/samba: Minor ebuilds improvements.
authorLars Wendler <polynomial-c@gentoo.org>
Fri, 16 Nov 2018 07:49:59 +0000 (08:49 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Fri, 16 Nov 2018 07:49:59 +0000 (08:49 +0100)
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
net-fs/samba/samba-4.9.2-r1.ebuild

index 9552e026df24572f26f08046b5b8bb4c171b71eb..6ce5625ef29b1049f971dcbb9f9c330363a3dbcb 100644 (file)
@@ -158,7 +158,9 @@ src_prepare() {
        sed -i -e '/"dns.resolver":/d' "${S}"/third_party/wscript || die
 
        # unbundle iso8601 unless tests are enabled
-       use test || sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
+       if ! use test ; then
+               sed -i -e '/"iso8601":/d' "${S}"/third_party/wscript || die
+       fi
 
        # ugly hackaround for bug #592502
        cp /usr/include/tevent_internal.h "${S}"/lib/tevent/ || die
@@ -231,7 +233,7 @@ multilib_src_install() {
        waf-utils_src_install
 
        # Make all .so files executable
-       find "${ED}" -type f -name "*.so" -exec chmod +x {} +
+       find "${ED}" -type f -name "*.so" -exec chmod +x {} + || die
 
        if multilib_is_native_abi ; then
                # install ldap schema for server (bug #491002)