1 |
floppym 12/01/01 05:02:27 |
2 |
|
3 |
Modified: ChangeLog distutils.eclass python.eclass |
4 |
Log: |
5 |
Avoid including python.eclass more than once. |
6 |
|
7 |
Revision Changes Path |
8 |
1.66 eclass/ChangeLog |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.66&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.66&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.65&r2=1.66 |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
17 |
retrieving revision 1.65 |
18 |
retrieving revision 1.66 |
19 |
diff -u -r1.65 -r1.66 |
20 |
--- ChangeLog 31 Dec 2011 00:46:04 -0000 1.65 |
21 |
+++ ChangeLog 1 Jan 2012 05:02:27 -0000 1.66 |
22 |
@@ -1,6 +1,10 @@ |
23 |
# ChangeLog for eclass directory |
24 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.65 2011/12/31 00:46:04 pesa Exp $ |
26 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
27 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.66 2012/01/01 05:02:27 floppym Exp $ |
28 |
+ |
29 |
+ 01 Jan 2012; Mike Gilbert <floppym@g.o> distutils.eclass, |
30 |
+ python.eclass: |
31 |
+ Avoid including python.eclass more than once. |
32 |
|
33 |
31 Dec 2011; Davide Pesavento <pesa@g.o> qt4-build.eclass: |
34 |
Respect {C,CXX,LD}FLAGS during config.tests (bug #336618). |
35 |
|
36 |
|
37 |
|
38 |
1.81 eclass/distutils.eclass |
39 |
|
40 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils.eclass?rev=1.81&view=markup |
41 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils.eclass?rev=1.81&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils.eclass?r1=1.80&r2=1.81 |
43 |
|
44 |
Index: distutils.eclass |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v |
47 |
retrieving revision 1.80 |
48 |
retrieving revision 1.81 |
49 |
diff -u -r1.80 -r1.81 |
50 |
--- distutils.eclass 12 Apr 2011 18:49:03 -0000 1.80 |
51 |
+++ distutils.eclass 1 Jan 2012 05:02:27 -0000 1.81 |
52 |
@@ -1,6 +1,6 @@ |
53 |
-# Copyright 1999-2011 Gentoo Foundation |
54 |
+# Copyright 1999-2012 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.80 2011/04/12 18:49:03 arfrever Exp $ |
57 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.81 2012/01/01 05:02:27 floppym Exp $ |
58 |
|
59 |
# @ECLASS: distutils.eclass |
60 |
# @MAINTAINER: |
61 |
@@ -9,7 +9,11 @@ |
62 |
# @DESCRIPTION: |
63 |
# The distutils eclass defines phase functions for packages with build systems using Distutils. |
64 |
|
65 |
-inherit multilib python |
66 |
+if [[ -z "${_PYTHON_ECLASS_INHERITED}" ]]; then |
67 |
+ inherit python |
68 |
+fi |
69 |
+ |
70 |
+inherit multilib |
71 |
|
72 |
case "${EAPI:-0}" in |
73 |
0|1) |
74 |
|
75 |
|
76 |
|
77 |
1.144 eclass/python.eclass |
78 |
|
79 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python.eclass?rev=1.144&view=markup |
80 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python.eclass?rev=1.144&content-type=text/plain |
81 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python.eclass?r1=1.143&r2=1.144 |
82 |
|
83 |
Index: python.eclass |
84 |
=================================================================== |
85 |
RCS file: /var/cvsroot/gentoo-x86/eclass/python.eclass,v |
86 |
retrieving revision 1.143 |
87 |
retrieving revision 1.144 |
88 |
diff -u -r1.143 -r1.144 |
89 |
--- python.eclass 19 Dec 2011 01:29:57 -0000 1.143 |
90 |
+++ python.eclass 1 Jan 2012 05:02:27 -0000 1.144 |
91 |
@@ -1,6 +1,6 @@ |
92 |
-# Copyright 1999-2011 Gentoo Foundation |
93 |
+# Copyright 1999-2012 Gentoo Foundation |
94 |
# Distributed under the terms of the GNU General Public License v2 |
95 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.143 2011/12/19 01:29:57 robbat2 Exp $ |
96 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.144 2012/01/01 05:02:27 floppym Exp $ |
97 |
|
98 |
# @ECLASS: python.eclass |
99 |
# @MAINTAINER: |
100 |
@@ -9,7 +9,19 @@ |
101 |
# @DESCRIPTION: |
102 |
# The python eclass contains miscellaneous, useful functions for Python packages. |
103 |
|
104 |
-inherit multilib |
105 |
+# Must call inherit before EXPORT_FUNCTIONS to avoid QA warning. |
106 |
+if [[ -z "${_PYTHON_ECLASS_INHERITED}" ]]; then |
107 |
+ inherit multilib |
108 |
+fi |
109 |
+ |
110 |
+# Export pkg_setup every time to avoid issues with eclass inheritance order. |
111 |
+if ! has "${EAPI:-0}" 0 1 2 3 || { has "${EAPI:-0}" 2 3 && [[ -n "${PYTHON_USE_WITH}" || -n "${PYTHON_USE_WITH_OR}" ]]; }; then |
112 |
+ EXPORT_FUNCTIONS pkg_setup |
113 |
+fi |
114 |
+ |
115 |
+# Avoid processing this eclass more than once. |
116 |
+if [[ -z "${_PYTHON_ECLASS_INHERITED}" ]]; then |
117 |
+_PYTHON_ECLASS_INHERITED="1" |
118 |
|
119 |
if ! has "${EAPI:-0}" 0 1 2 3 4; then |
120 |
die "API of python.eclass in EAPI=\"${EAPI}\" not established" |
121 |
@@ -463,10 +475,6 @@ |
122 |
PYTHON_PKG_SETUP_EXECUTED="1" |
123 |
} |
124 |
|
125 |
-if ! has "${EAPI:-0}" 0 1 2 3 || { has "${EAPI:-0}" 2 3 && [[ -n "${PYTHON_USE_WITH}" || -n "${PYTHON_USE_WITH_OR}" ]]; }; then |
126 |
- EXPORT_FUNCTIONS pkg_setup |
127 |
-fi |
128 |
- |
129 |
_PYTHON_SHEBANG_BASE_PART_REGEX='^#![[:space:]]*([^[:space:]]*/usr/bin/env[[:space:]]+)?([^[:space:]]*/)?(jython|pypy-c|python)' |
130 |
|
131 |
# @FUNCTION: python_convert_shebangs |
132 |
@@ -3114,3 +3122,5 @@ |
133 |
# ================================================================================================ |
134 |
# ===================================== DEPRECATED FUNCTIONS ===================================== |
135 |
# ================================================================================================ |
136 |
+ |
137 |
+fi # _PYTHON_ECLASS_INHERITED |