python-utils-r1.eclass: Sanitize insopts/exeopts
authorMichał Górny <mgorny@gentoo.org>
Fri, 8 Jun 2018 07:15:02 +0000 (09:15 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 13 Jun 2018 08:09:58 +0000 (10:09 +0200)
Sanitize insopts/exeopts when calling doins/doexe, in order to avoid
prior insopts calls accidentally affecting do*/new* functions defined
by the eclass.

eclass/python-utils-r1.eclass

index 3a462e34614a3888043930d22469d7b606976759..ab4db71422d22413d38d4b55bc253d71521448df 100644 (file)
@@ -789,6 +789,7 @@ python_newexe() {
 
        (
                dodir "${wrapd}"
+               exeopts -m 0755
                exeinto "${d}"
                newexe "${f}" "${newfn}" || return ${?}
        )
@@ -920,6 +921,7 @@ python_domodule() {
        fi
 
        (
+               insopts -m 0644
                insinto "${d}"
                doins -r "${@}" || return ${?}
        )
@@ -954,6 +956,7 @@ python_doheader() {
        d=${PYTHON_INCLUDEDIR#${EPREFIX}}
 
        (
+               insopts -m 0644
                insinto "${d}"
                doins -r "${@}" || return ${?}
        )