1 |
commit: bc78701f54654622feff3694c7f66621b2acaa80 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 3 23:04:18 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 3 23:08:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc78701f |
7 |
|
8 |
xorg-3.eclass: Fix unsetting GIT_ECLASS |
9 |
|
10 |
Apparently I cannot remember how bash works. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/836727 |
13 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
14 |
|
15 |
eclass/xorg-3.eclass | 8 +++----- |
16 |
1 file changed, 3 insertions(+), 5 deletions(-) |
17 |
|
18 |
diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass |
19 |
index 2ab80b6c0c6d..c68b3041629a 100644 |
20 |
--- a/eclass/xorg-3.eclass |
21 |
+++ b/eclass/xorg-3.eclass |
22 |
@@ -52,7 +52,7 @@ fi |
23 |
# we need to inherit autotools first to get the deps |
24 |
inherit autotools libtool multilib toolchain-funcs flag-o-matic \ |
25 |
${FONT_ECLASS} ${GIT_ECLASS} |
26 |
-unset FONT_ECLASS |
27 |
+unset FONT_ECLASS GIT_ECLASS |
28 |
|
29 |
if [[ ${XORG_MULTILIB} == yes ]]; then |
30 |
inherit multilib-minimal |
31 |
@@ -119,7 +119,7 @@ HOMEPAGE="https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/${XORG_MOD |
32 |
# to bz2. |
33 |
: ${XORG_TARBALL_SUFFIX:="bz2"} |
34 |
|
35 |
-if [[ -n ${GIT_ECLASS} ]]; then |
36 |
+if [[ ${PV} == *9999* ]]; then |
37 |
: ${EGIT_REPO_URI:="https://gitlab.freedesktop.org/xorg/${XORG_MODULE}${XORG_PACKAGE_NAME}.git"} |
38 |
elif [[ -n ${XORG_BASE_INDIVIDUAL_URI} ]]; then |
39 |
SRC_URI="${XORG_BASE_INDIVIDUAL_URI}/${XORG_MODULE}${P}.tar.${XORG_TARBALL_SUFFIX}" |
40 |
@@ -266,7 +266,7 @@ xorg-3_pkg_setup() { |
41 |
xorg-3_src_unpack() { |
42 |
debug-print-function ${FUNCNAME} "$@" |
43 |
|
44 |
- if [[ -n ${GIT_ECLASS} ]]; then |
45 |
+ if [[ ${PV} == *9999* ]]; then |
46 |
git-r3_src_unpack |
47 |
else |
48 |
unpack ${A} |
49 |
@@ -535,5 +535,3 @@ create_fonts_dir() { |
50 |
-- "${EROOT}/usr/share/fonts/${FONT_DIR}" |
51 |
eend $? |
52 |
} |
53 |
- |
54 |
-unset GIT_ECLASS |