Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/java-config/files/, dev-java/java-config/
Date: Thu, 07 May 2020 09:55:40
Message-Id: 1588845130.943a0212ff7b44ada2bcd53a6c73bcd7605a3286.gyakovlev@gentoo
1 commit: 943a0212ff7b44ada2bcd53a6c73bcd7605a3286
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 7 09:49:43 2020 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Thu May 7 09:52:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=943a0212
7
8 dev-java/java-config: add python3_8 compat
9
10 Bug: https://bugs.gentoo.org/719204
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13
14 .../java-config/files/java-config-2.2.0-py38.patch | 52 ++++++++++++++++++++++
15 dev-java/java-config/java-config-2.2.0-r4.ebuild | 7 ++-
16 2 files changed, 57 insertions(+), 2 deletions(-)
17
18 diff --git a/dev-java/java-config/files/java-config-2.2.0-py38.patch b/dev-java/java-config/files/java-config-2.2.0-py38.patch
19 new file mode 100644
20 index 00000000000..cb59e1f36be
21 --- /dev/null
22 +++ b/dev-java/java-config/files/java-config-2.2.0-py38.patch
23 @@ -0,0 +1,52 @@
24 +From 5e7cc49184e657bd446998f4b08e9106e5215ce5 Mon Sep 17 00:00:00 2001
25 +From: Georgy Yakovlev <gyakovlev@g.o>
26 +Date: Thu, 7 May 2020 02:45:57 -0700
27 +Subject: [PATCH] replace is with ==
28 +
29 +---
30 + src/java-config-2 | 8 ++++----
31 + 1 file changed, 4 insertions(+), 4 deletions(-)
32 +
33 +diff --git a/src/java-config-2 b/src/java-config-2
34 +index 8ad2539..84ecd30 100755
35 +--- a/src/java-config-2
36 ++++ b/src/java-config-2
37 +@@ -199,7 +199,7 @@ def set_user_vm(option, opt, value, parser):
38 + if not vm:
39 + fatalError("Could not find a vm matching: %s" % value)
40 + else:
41 +- if os.getuid() is 0:
42 ++ if os.getuid() == 0:
43 + fatalError("The user 'root' should always use the System VM")
44 + else:
45 + try:
46 +@@ -227,7 +227,7 @@ def user_classpath_target():
47 + # Deprecated
48 + def set_system_classpath(option, opt, value, parser):
49 + deprecation_notice()
50 +- if os.getuid() is 0:
51 ++ if os.getuid() == 0:
52 + pkgs = value.split(',')
53 + manager.set_classpath(system_classpath_target(), pkgs)
54 +
55 +@@ -252,7 +252,7 @@ def set_user_classpath(option, opt, value, parser):
56 + # Deprecated
57 + def append_system_classpath(option, opt, value, parser):
58 + deprecation_notice()
59 +- if os.getuid() is 0:
60 ++ if os.getuid() == 0:
61 + pkgs = value.split(',')
62 + manager.append_classpath(system_classpath_target(), pkgs)
63 +
64 +@@ -277,7 +277,7 @@ def append_user_classpath(option, opt, value, parser):
65 + # Deprecated
66 + def clean_system_classpath(option, opt, value, parser):
67 + deprecation_notice()
68 +- if os.getuid() is 0:
69 ++ if os.getuid() == 0:
70 + manager.clean_classpath(system_classpath_target())
71 + update_env()
72 + else:
73 +--
74 +2.26.2
75 +
76
77 diff --git a/dev-java/java-config/java-config-2.2.0-r4.ebuild b/dev-java/java-config/java-config-2.2.0-r4.ebuild
78 index 2913a8f7f68..8f03a425121 100644
79 --- a/dev-java/java-config/java-config-2.2.0-r4.ebuild
80 +++ b/dev-java/java-config/java-config-2.2.0-r4.ebuild
81 @@ -4,7 +4,7 @@
82 EAPI=6
83
84 # jython depends on java-config, so don't add it or things will break
85 -PYTHON_COMPAT=( python{3_6,3_7} )
86 +PYTHON_COMPAT=( python3_{6,7,8} )
87 DISTUTILS_USE_SETUPTOOLS=no
88
89 inherit distutils-r1
90 @@ -27,7 +27,10 @@ RDEPEND="
91 sys-apps/baselayout-java
92 sys-apps/portage[${PYTHON_USEDEP}]"
93
94 -PATCHES=( "${FILESDIR}"/${PN}-2.2.0-prefix.patch )
95 +PATCHES=(
96 + "${FILESDIR}"/${PN}-2.2.0-prefix.patch
97 + "${FILESDIR}"/${PN}-2.2.0-py38.patch
98 +)
99
100 python_install_all() {
101 distutils-r1_python_install_all