Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 5/8] python-utils-r1.eclass: Sanitize insopts/exeopts
Date: Fri, 08 Jun 2018 07:22:42
Message-Id: 20180608071916.25716-6-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/8] insopts/exeopts sanitization by "Michał Górny"
1 Sanitize insopts/exeopts when calling doins/doexe, in order to avoid
2 prior insopts calls accidentally affecting do*/new* functions defined
3 by the eclass.
4 ---
5 eclass/python-utils-r1.eclass | 3 +++
6 1 file changed, 3 insertions(+)
7
8 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
9 index 3a462e34614a..c57b9117bf6f 100644
10 --- a/eclass/python-utils-r1.eclass
11 +++ b/eclass/python-utils-r1.eclass
12 @@ -789,6 +789,7 @@ python_newexe() {
13
14 (
15 dodir "${wrapd}"
16 + exeopts
17 exeinto "${d}"
18 newexe "${f}" "${newfn}" || return ${?}
19 )
20 @@ -920,6 +921,7 @@ python_domodule() {
21 fi
22
23 (
24 + insopts
25 insinto "${d}"
26 doins -r "${@}" || return ${?}
27 )
28 @@ -954,6 +956,7 @@ python_doheader() {
29 d=${PYTHON_INCLUDEDIR#${EPREFIX}}
30
31 (
32 + insopts
33 insinto "${d}"
34 doins -r "${@}" || return ${?}
35 )
36 --
37 2.18.0.rc1