Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/kig/files/
Date: Fri, 07 Aug 2020 23:24:51
Message-Id: 1596842604.f58b2b1d29bbf555869c2877a7db6df8623cc515.asturm@gentoo
1 commit: f58b2b1d29bbf555869c2877a7db6df8623cc515
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Fri Aug 7 18:43:44 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 7 23:23:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f58b2b1d
7
8 kde-apps/kig: remove unused patches
9
10 Package-Manager: Portage-3.0.1, Repoman-2.3.23
11 Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/17045
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 kde-apps/kig/files/kig-19.08.3-pykig-python3.patch | 161 ---------------------
16 .../kig/files/kig-19.08.3-scripter-crash.patch | 29 ----
17 2 files changed, 190 deletions(-)
18
19 diff --git a/kde-apps/kig/files/kig-19.08.3-pykig-python3.patch b/kde-apps/kig/files/kig-19.08.3-pykig-python3.patch
20 deleted file mode 100644
21 index 902c138495e..00000000000
22 --- a/kde-apps/kig/files/kig-19.08.3-pykig-python3.patch
23 +++ /dev/null
24 @@ -1,161 +0,0 @@
25 -From d72f33a14c22480b28c0f35d53293826f6ec787b Mon Sep 17 00:00:00 2001
26 -From: Antonio Rojas <arojas@×××××××××.org>
27 -Date: Sat, 14 Dec 2019 19:49:09 +0100
28 -Subject: Port pykig to python 3
29 -
30 -Differential Revision: https://phabricator.kde.org/D25982
31 ----
32 - pykig/pykig.py | 42 +++++++++++++++++++++---------------------
33 - 1 file changed, 21 insertions(+), 21 deletions(-)
34 -
35 -diff --git a/pykig/pykig.py b/pykig/pykig.py
36 -index 02f637d..3ee6e97 100644
37 ---- a/pykig/pykig.py
38 -+++ b/pykig/pykig.py
39 -@@ -1,4 +1,4 @@
40 --#!/usr/bin/env python
41 -+#!/usr/bin/env python3
42 - # -*- coding: utf-8 -*-
43 - #-------------------------------python------------------------pykig.py--#
44 - # #
45 -@@ -170,9 +170,9 @@ class KigDocument(object):
46 - self.of=of
47 - try:
48 - self.outfile = open(outfilename, 'w')
49 -- except IOError, value:
50 -+ except IOError as value:
51 - # print >> sys.stderr, outfilename, 'unwritable'
52 -- print >> sys.stderr, value
53 -+ print(value, file=sys.stderr)
54 - sys.exit(2)
55 - # KigOut._kigdocument=self
56 - KigDOP._kd=self
57 -@@ -212,14 +212,14 @@ class KigDocument(object):
58 - self.outfile.write(" </View>\n</KigDocument>\n")
59 - if self.outfile != sys.stdout:
60 - self.outfile.close()
61 -- except IOError, value:
62 -- print >> sys.stderr, value
63 -+ except IOError as value:
64 -+ print(value, file=sys.stderr)
65 - sys.exit(2)
66 - try:
67 - if self.callkig:
68 - err = os.system('kig ' + self.outfilename)
69 -- except Exception, value:
70 -- print >> sys.stderr, value
71 -+ except Exception as value:
72 -+ print(value, file=sys.stderr)
73 - if not self.of:
74 - os.system('rm ' + self.outfilename)
75 -
76 -@@ -501,7 +501,7 @@ def databuild(nomeclasse, nomekig, v="val"):
77 -
78 - for d in data:
79 - p1, p2, p3 = d
80 -- exec databuild(p1, p2, p3)
81 -+ exec (databuild(p1, p2, p3))
82 -
83 - #####
84 - # Objects
85 -@@ -645,7 +645,7 @@ def objectbuild(nameclass, namekig, params, objparams):
86 -
87 - for o in objects:
88 - p1, p2, p3, p4 = o
89 -- exec objectbuild(p1, p2, p3, p4)
90 -+ exec (objectbuild(p1, p2, p3, p4))
91 -
92 - #####
93 - # Properties
94 -@@ -688,7 +688,7 @@ def propertybuild(nameclass, namekig, params, objparams):
95 -
96 - for p in property:
97 - p1, p2, p3, p4 = p
98 -- exec propertybuild(p1, p2, p3, p4)
99 -+ exec (propertybuild(p1, p2, p3, p4))
100 -
101 - #####
102 - # Start of properties definitions as Object's methods
103 -@@ -734,7 +734,7 @@ def methodsbuild(namekig):
104 -
105 - for p in methods:
106 - p1, p2, cl = p
107 -- exec methodsbuild(p1)
108 -+ exec (methodsbuild(p1))
109 - for c in cl:
110 - setattr(c, p2, method)
111 -
112 -@@ -743,7 +743,7 @@ for p in methods:
113 - #####
114 -
115 - def usage(codexit):
116 -- print >> sys.stderr, """
117 -+ print ("""
118 - usage: pykig.py [options...] file ...
119 -
120 - Options:
121 -@@ -757,7 +757,7 @@ examples:
122 - $ pykig.py my_file.kpy
123 - $ pykig.py -o output_file.kig my_file.kpy
124 - $ ...
125 --"""
126 -+""", file=sys.stderr)
127 - sys.exit(codexit)
128 -
129 - #####
130 -@@ -776,7 +776,7 @@ def prog():
131 - _opts, _args = getopt.getopt(sys.argv[1:], "hvno:",\
132 - ["help", "version", "nokig", "output="])
133 - except getopt.GetoptError:
134 -- print "GetoptError"
135 -+ print ("GetoptError")
136 - usage(2)
137 - _callKig=True
138 - _of=False
139 -@@ -784,7 +784,7 @@ def prog():
140 - if _opt in ("-h", "--help"):
141 - usage(0)
142 - if _opt in ("-v", "--version"):
143 -- print "Version:", version
144 -+ print ("Version:", version)
145 - sys.exit(0)
146 - if _opt in ("-n", "--nokig"):
147 - _callKig=False
148 -@@ -793,19 +793,19 @@ def prog():
149 - _of=True
150 - _callKig=False # if there's an output file, don't call Kig
151 - if len(_args)==0:
152 -- _infilename=raw_input("Input file name: ")
153 -+ _infilename=input("Input file name: ")
154 - if not _infilename:
155 -- print "No input file name."
156 -+ print ("No input file name.")
157 - usage(2)
158 - elif len(_args)==1:
159 - _infilename=_args[0]
160 - else:
161 -- print "No input file name."
162 -+ print ("No input file name.")
163 - usage(2)
164 - try:
165 - _infile = open(_infilename, 'r')
166 - except:
167 -- print >> sys.stderr, _infilename, "input file can't be read."
168 -+ print (_infilename, "input file can't be read.", file=sys.stderr)
169 - sys.exit(2)
170 - if _of:
171 - if _outfilename=="-":
172 -@@ -817,9 +817,9 @@ def prog():
173 - kigdocument=KigDocument(_outfilename, _callKig, _of)
174 - kd=kigdocument
175 - try:
176 -- execfile(_infilename, globals())
177 -+ exec(open(_infilename).read(), globals())
178 - except:
179 -- print >> sys.stderr, 'Syntax error in', _infilename
180 -+ print ('Syntax error in', _infilename, file=sys.stderr)
181 - _info = sys.exc_info() # print out the traceback
182 - traceback.print_exc()
183 - sys.exit(3)
184 ---
185 -cgit v1.1
186
187 diff --git a/kde-apps/kig/files/kig-19.08.3-scripter-crash.patch b/kde-apps/kig/files/kig-19.08.3-scripter-crash.patch
188 deleted file mode 100644
189 index 9540e9044f3..00000000000
190 --- a/kde-apps/kig/files/kig-19.08.3-scripter-crash.patch
191 +++ /dev/null
192 @@ -1,29 +0,0 @@
193 -From 211f8501ec4cf77ed68253783d58a662b5513612 Mon Sep 17 00:00:00 2001
194 -From: Maurizio Paolini <paolini@×××××××××××.it>
195 -Date: Sat, 11 Jan 2020 19:50:33 +0100
196 -Subject: Fix crash upon exit after transition python2 -> python3 when using
197 - scripting (bug #416037)
198 -
199 -Reviewed By: kkevin
200 -Differential Revision: https://phabricator.kde.org/D12833
201 -CCBUG: 416037
202 ----
203 - scripting/python_scripter.cc | 2 +-
204 - 1 file changed, 1 insertion(+), 1 deletion(-)
205 -
206 -diff --git a/scripting/python_scripter.cc b/scripting/python_scripter.cc
207 -index bb5db39..3edec77 100644
208 ---- a/scripting/python_scripter.cc
209 -+++ b/scripting/python_scripter.cc
210 -@@ -427,8 +427,8 @@ PythonScripter::PythonScripter()
211 - PythonScripter::~PythonScripter()
212 - {
213 - PyErr_Clear();
214 -- Py_Finalize();
215 - delete d;
216 -+ Py_FinalizeEx();
217 - }
218 -
219 - class CompiledPythonScript::Private
220 ---
221 -cgit v1.1