Gentoo Archives: gentoo-commits

From: Mike Auty <ikelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/ikelos:master commit in: dev-python/pypy/, dev-python/pypy/files/
Date: Sat, 02 Jul 2016 15:45:02
Message-Id: 1467474289.aba3b64f7db0ad54d2953d4d35c1cdf4c1edaff7.ikelos@gentoo
1 commit: aba3b64f7db0ad54d2953d4d35c1cdf4c1edaff7
2 Author: layman <layman <AT> localhost>
3 AuthorDate: Sat Jul 2 15:44:49 2016 +0000
4 Commit: Mike Auty <ikelos <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 2 15:44:49 2016 +0000
6 URL: https://gitweb.gentoo.org/dev/ikelos.git/commit/?id=aba3b64f
7
8 Remove old pypy ebuild.
9
10 dev-python/pypy/ChangeLog | 83 -----
11 dev-python/pypy/Manifest | 11 -
12 dev-python/pypy/files/1.7-patches.patch | 40 ---
13 dev-python/pypy/files/1.7-scripts-location.patch | 11 -
14 .../pypy/files/1.8-elf-metadata-26a8d3fc57a7.patch | 10 -
15 .../files/1.8-sext-instructions-02dc2f6160ee.patch | 22 --
16 ...ils-fix_handling_of_executables_and_flags.patch | 391 ---------------------
17 ....UnixCCompiler.runtime_library_dir_option.patch | 11 -
18 .../pypy/files/pypy-1.8-unknown-opcodes.patch | 15 -
19 dev-python/pypy/metadata.xml | 16 -
20 dev-python/pypy/pypy-1.9.ebuild | 102 ------
21 11 files changed, 712 deletions(-)
22
23 diff --git a/dev-python/pypy/ChangeLog b/dev-python/pypy/ChangeLog
24 deleted file mode 100644
25 index 9eedca0..0000000
26 --- a/dev-python/pypy/ChangeLog
27 +++ /dev/null
28 @@ -1,83 +0,0 @@
29 -# ChangeLog for dev-python/pypy
30 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pypy/ChangeLog,v 1.17 2012/02/28 19:24:00 floppym Exp $
32 -
33 - 28 Feb 2012; Mike Gilbert <floppym@g.o> pypy-1.7-r2.ebuild,
34 - pypy-1.8-r1.ebuild:
35 - Apply patch from Arfrever for bug 406129. Tested by Ian Delaney.
36 -
37 - 16 Feb 2012; Dirkjan Ochtman <djc@g.o> pypy-1.8-r1.ebuild:
38 - Add fake xml useflag for dependencies (suggested by Arfrever).
39 -
40 -*pypy-1.8-r1 (16 Feb 2012)
41 -
42 - 16 Feb 2012; Dirkjan Ochtman <djc@g.o> +pypy-1.8-r1.ebuild,
43 - +files/1.8-sext-instructions-02dc2f6160ee.patch,
44 - +files/1.8-elf-metadata-26a8d3fc57a7.patch:
45 - Made xml mandatory, stackless is built by default, split patches.
46 -
47 - 14 Feb 2012; Mike Gilbert <floppym@g.o> pypy-1.7-r2.ebuild,
48 - pypy-1.8.ebuild:
49 - Adjust memory requirements.
50 -
51 - 12 Feb 2012; Mike Gilbert <floppym@g.o> -pypy-1.7.ebuild,
52 - pypy-1.7-r2.ebuild, pypy-1.8.ebuild:
53 - Rename 1.7 tarball as well. Override src_unpack to avoid having to hardcode S.
54 - Drop old version.
55 -
56 - 12 Feb 2012; Mike Gilbert <floppym@g.o> pypy-1.8.ebuild:
57 - Rename source tarball.
58 -
59 -*pypy-1.8 (12 Feb 2012)
60 -
61 - 12 Feb 2012; Dirkjan Ochtman <djc@g.o> +pypy-1.8.ebuild, metadata.xml:
62 - Version bump to 1.8. Some test failures, but seems to be okay.
63 -
64 - 02 Feb 2012; Mike Gilbert <floppym@g.o> pypy-1.7-r2.ebuild:
65 - Add sqlite USE flag, patch by Arfrever. Make several variables local.
66 -
67 -*pypy-1.7-r2 (01 Feb 2012)
68 -
69 - 01 Feb 2012; Mike Gilbert <floppym@g.o> +pypy-1.7-r2.ebuild,
70 - -pypy-1.7-r1.ebuild,
71 - files/pypy-1.7-distutils-fix_handling_of_executables_and_flags.patch:
72 - Updated patch from Arfrever.
73 -
74 -*pypy-1.7-r1 (30 Jan 2012)
75 -
76 - 30 Jan 2012; Mike Gilbert <floppym@g.o>
77 - +files/pypy-1.7-distutils-fix_handling_of_executables_and_flags.patch, +files/
78 - pypy-1.7-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patc
79 - h, +pypy-1.7-r1.ebuild:
80 - Apply patches from Arfrever to resolve bug 397523.
81 -
82 - 15 Jan 2012; Markos Chandras <hwoarang@g.o> pypy-1.7.ebuild:
83 - Don't call use() in global scope. Patch by Arfrever.
84 -
85 - 13 Dec 2011; Nirbheek Chauhan <nirbheek@g.o> pypy-1.7.ebuild,
86 - metadata.xml:
87 - Remove USE=stackless, which is not optional any longer. Add the ~x86 keyword.
88 - Add myself as co-maintainer.
89 -
90 - 30 Nov 2011; Dirkjan Ochtman <djc@g.o> pypy-1.7.ebuild:
91 - Fix problems resulting from earlier failing ${S}.
92 -
93 - 30 Nov 2011; Dirkjan Ochtman <djc@g.o> -files/1.5-patches.patch,
94 - -pypy-1.5.ebuild:
95 - Remove old version.
96 -
97 -*pypy-1.7 (30 Nov 2011)
98 -
99 - 30 Nov 2011; Dirkjan Ochtman <djc@g.o> +files/1.7-patches.patch,
100 - +files/1.7-scripts-location.patch, +pypy-1.7.ebuild:
101 - Version bump to 1.7 (bugs fixed: 379791, 383063, 373487).
102 -
103 - 24 Jun 2011; Dirkjan Ochtman <djc@g.o> pypy-1.5.ebuild:
104 - Fix bug 372641, bug 372639, bug 372517.
105 -
106 -*pypy-1.5 (06 Jun 2011)
107 -
108 - 06 Jun 2011; Dirkjan Ochtman <djc@g.o> +files/1.5-patches.patch,
109 - +pypy-1.5.ebuild, +metadata.xml:
110 - Initial version of pypy (bug 300301).
111 -
112
113 diff --git a/dev-python/pypy/Manifest b/dev-python/pypy/Manifest
114 deleted file mode 100644
115 index 1107b5b..0000000
116 --- a/dev-python/pypy/Manifest
117 +++ /dev/null
118 @@ -1,11 +0,0 @@
119 -AUX 1.7-patches.patch 1842 RMD160 ee42ff2383477353cf0230a8567b22d87a4b4d56 SHA1 4fa9f1ac91b3b5466e21d8d58dbc9f09b1fd90dd SHA256 1417373a73221b65dcccdee1539a7a11018384ea3f7908cacc2e07b525ebe291
120 -AUX 1.7-scripts-location.patch 412 RMD160 811c3cc38370f97274f8ec5cc36f34b3e79dae56 SHA1 c03fa9679443ed9461829745f5bb00cfecd3eb22 SHA256 abc39fbbf69d1d6b478a4a16626950e8e0b607fb05c6e1e1c10618c59fccdda9
121 -AUX 1.8-elf-metadata-26a8d3fc57a7.patch 569 RMD160 de5a440cb41ab0249141304c12f9a35af1565c87 SHA1 57daa224b13ec3e6cf7f23d02d896527137dca6b SHA256 8c695811ca9eae7d3b81674e8de255dc84e242972041ca54093a3d96f40fe34b
122 -AUX 1.8-sext-instructions-02dc2f6160ee.patch 1100 RMD160 c1f83411a70af07c0987ac51c81806de70a5d991 SHA1 8430932adfaadf903a1ad5a4635644157e04ee78 SHA256 599af03fb41902cb00b6c1768febd921276efbdc7b550d010676cc210f7564bb
123 -AUX pypy-1.7-distutils-fix_handling_of_executables_and_flags.patch 18064 RMD160 8e86cff09340448f3e49ccc626efa40e9463273a SHA1 533cad04bc8d96e2ba1a09e8249a3efd97e46b1d SHA256 43cbabdf5f7b094eb969c754bb6513fa324b1fadb40b37d78bd1ad47194d787a
124 -AUX pypy-1.7-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch 569 RMD160 540aa0881ea1fef56cea3734fa09f5c3366d5bb0 SHA1 5f4939129a9a56c9f9da0e82851f675fd7c73209 SHA256 55ea809a5f3e264b1905b06aa3af78aae149451e7d74a98d11e87629ab69493e
125 -AUX pypy-1.8-unknown-opcodes.patch 654 RMD160 bf20e9b3c5dfb88d26505eea3f3d919eed58cdcc SHA1 e6b9c57fe709d4472f2a2a662b6a01654d74a3e2 SHA256 f1a8345def107c5f01ea2366abf047468ba9c4aaa46548d3930cafe104bdc795
126 -DIST pypy-1.9.tar.bz2 13466551 RMD160 8ac2f53330ae450650f05753985bdbb42e07b526 SHA1 36a05432bbcee5d92a320fa27a627aeb281086b4 SHA256 9fd599acade49ef98017bbce4f179f19cf2680489ff15235d3bad5b20bde0d68
127 -EBUILD pypy-1.9.ebuild 3132 RMD160 3a19d667acf9e4727675ee533fffe51f8474614c SHA1 bf960964e70ff09815897e204bbd00bb1b03ed69 SHA256 19658b6ae3c768cd2bf62c02ba56a908530e5a12d9266bcb600a24ec9a234320
128 -MISC ChangeLog 3095 RMD160 8ee6cf291e4ee2a596c44e5d1e2e3c19e85aae27 SHA1 6c93508ea531654f89a7201a89cd5508a005e208 SHA256 d0876ae7055821d3c593929d19bf55112a5870ec74bc15fe895072c9bb3a9623
129 -MISC metadata.xml 507 RMD160 ebf6143dae73a70cc62880c10dc1f1c3f82cc1dd SHA1 a8bf12cdeebfd1d30a86075b97be027b138435c8 SHA256 b91eb636cbd78badac8a97a95615ff89c33077e0627aa0732394de54f26a018c
130
131 diff --git a/dev-python/pypy/files/1.7-patches.patch b/dev-python/pypy/files/1.7-patches.patch
132 deleted file mode 100644
133 index a03ca22..0000000
134 --- a/dev-python/pypy/files/1.7-patches.patch
135 +++ /dev/null
136 @@ -1,40 +0,0 @@
137 ---- pypy-pypy-release-1.7/pypy/translator/goal/translate.py.bak 2011-11-29 14:23:55.000000000 +0100
138 -+++ pypy-pypy-release-1.7/pypy/translator/goal/translate.py 2011-11-29 14:24:16.000000000 +0100
139 -@@ -255,8 +255,6 @@
140 - log.event("batch mode, not calling interactive helpers")
141 - return
142 -
143 -- log.event("start debugger...")
144 --
145 - if translateconfig.view:
146 - try:
147 - t1 = drv.hint_translator
148 -@@ -266,8 +264,6 @@
149 - page = graphpage.TranslatorPage(t1, translateconfig.huge)
150 - page.display_background()
151 -
152 -- pdb_plus_show.start(tb)
153 --
154 - try:
155 - drv = driver.TranslationDriver.from_targetspec(targetspec_dic, config, args,
156 - empty_translator=t,
157 ---- pypy-pypy-release-1.7/pypy/translator/c/gcc/trackgcroot.py.bak 2011-11-29 14:22:29.000000000 +0100
158 -+++ pypy-pypy-release-1.7/pypy/translator/c/gcc/trackgcroot.py 2011-11-29 14:22:55.000000000 +0100
159 -@@ -1694,6 +1694,7 @@
160 - }
161 - """
162 - elif self.format in ('elf64', 'darwin64'):
163 -+ print >> output, "\t.section .note.GNU-stack,\"\",%progbits"
164 - print >> output, "\t.text"
165 - print >> output, "\t.globl %s" % _globalname('pypy_asm_stackwalk')
166 - _variant(elf64='.type pypy_asm_stackwalk, @function',
167 ---- pypy-pypy-release-1.7/pypy/rlib/ropenssl.py.bak 2011-11-29 14:19:10.000000000 +0100
168 -+++ pypy-pypy-release-1.7/pypy/rlib/ropenssl.py 2011-11-29 14:19:42.000000000 +0100
169 -@@ -159,6 +159,7 @@
170 - lltype.Void)
171 -
172 - if HAVE_OPENSSL_RAND:
173 -+ eci.includes = eci.includes + ('openssl/rand.h',)
174 - ssl_external('RAND_add', [rffi.CCHARP, rffi.INT, rffi.DOUBLE], lltype.Void)
175 - ssl_external('RAND_status', [], rffi.INT)
176 - ssl_external('RAND_egd', [rffi.CCHARP], rffi.INT)
177
178 diff --git a/dev-python/pypy/files/1.7-scripts-location.patch b/dev-python/pypy/files/1.7-scripts-location.patch
179 deleted file mode 100644
180 index 91b5ced..0000000
181 --- a/dev-python/pypy/files/1.7-scripts-location.patch
182 +++ /dev/null
183 @@ -1,11 +0,0 @@
184 ---- pypy-pypy-release-1.7/lib-python/modified-2.7/distutils/command/install.py
185 -+++ pypy-pypy-release-1.7/lib-python/modified-2.7/distutils/command/install.py
186 -@@ -87,7 +87,7 @@
187 - 'purelib': '$base/site-packages',
188 - 'platlib': '$base/site-packages',
189 - 'headers': '$base/include',
190 -- 'scripts': '$base/bin',
191 -+ 'scripts': '/usr/bin',
192 - 'data' : '$base',
193 - },
194 - }
195
196 diff --git a/dev-python/pypy/files/1.8-elf-metadata-26a8d3fc57a7.patch b/dev-python/pypy/files/1.8-elf-metadata-26a8d3fc57a7.patch
197 deleted file mode 100644
198 index d581373..0000000
199 --- a/dev-python/pypy/files/1.8-elf-metadata-26a8d3fc57a7.patch
200 +++ /dev/null
201 @@ -1,10 +0,0 @@
202 ---- pypy-pypy-release-1.7/pypy/translator/c/gcc/trackgcroot.py.bak 2011-11-29 14:22:29.000000000 +0100
203 -+++ pypy-pypy-release-1.7/pypy/translator/c/gcc/trackgcroot.py 2011-11-29 14:22:55.000000000 +0100
204 -@@ -1694,6 +1694,7 @@
205 - }
206 - """
207 - elif self.format in ('elf64', 'darwin64'):
208 -+ print >> output, "\t.section .note.GNU-stack,\"\",%progbits"
209 - print >> output, "\t.text"
210 - print >> output, "\t.globl %s" % _globalname('pypy_asm_stackwalk')
211 - _variant(elf64='.type pypy_asm_stackwalk, @function',
212
213 diff --git a/dev-python/pypy/files/1.8-sext-instructions-02dc2f6160ee.patch b/dev-python/pypy/files/1.8-sext-instructions-02dc2f6160ee.patch
214 deleted file mode 100644
215 index 6528479..0000000
216 --- a/dev-python/pypy/files/1.8-sext-instructions-02dc2f6160ee.patch
217 +++ /dev/null
218 @@ -1,22 +0,0 @@
219 ---- pypy/translator/c/gcc/trackgcroot.py.old 2012-02-15 14:11:38.551479431 -0800
220 -+++ pypy/translator/c/gcc/trackgcroot.py 2012-02-15 00:55:20.082136135 -0800
221 -@@ -471,8 +471,8 @@
222 - return []
223 -
224 - IGNORE_OPS_WITH_PREFIXES = dict.fromkeys([
225 -- 'cmp', 'test', 'set', 'sahf', 'lahf', 'cltd', 'cld', 'std',
226 -- 'rep', 'movs', 'lods', 'stos', 'scas', 'cwtl', 'cwde', 'prefetch',
227 -+ 'cmp', 'test', 'set', 'sahf', 'lahf', 'cld', 'std',
228 -+ 'rep', 'movs', 'lods', 'stos', 'scas', 'cwde', 'prefetch',
229 - # floating-point operations cannot produce GC pointers
230 - 'f',
231 - 'cvt', 'ucomi', 'comi', 'subs', 'subp' , 'adds', 'addp', 'xorp',
232 -@@ -485,6 +485,8 @@
233 - 'bswap', 'bt', 'rdtsc',
234 - 'punpck', 'pshufd', 'pcmp', 'pand', 'psllw', 'pslld', 'psllq',
235 - 'paddq', 'pinsr',
236 -+ # sign-extending moves should not produce GC pointers
237 -+ 'cbtw', 'cwtl', 'cwtd', 'cltd', 'cltq', 'cqto',
238 - # zero-extending moves should not produce GC pointers
239 - 'movz',
240 - # locked operations should not move GC pointers, at least so far
241
242 diff --git a/dev-python/pypy/files/pypy-1.7-distutils-fix_handling_of_executables_and_flags.patch b/dev-python/pypy/files/pypy-1.7-distutils-fix_handling_of_executables_and_flags.patch
243 deleted file mode 100644
244 index 1252d27..0000000
245 --- a/dev-python/pypy/files/pypy-1.7-distutils-fix_handling_of_executables_and_flags.patch
246 +++ /dev/null
247 @@ -1,391 +0,0 @@
248 ---- lib-python/modified-2.7/distutils/ccompiler.py
249 -+++ lib-python/modified-2.7/distutils/ccompiler.py
250 -@@ -27,10 +27,16 @@
251 - varies across Unices and is stored in Python's Makefile.
252 - """
253 - if compiler.compiler_type == "unix":
254 -- (cc, cxx, opt, cflags, ccshared, ldshared, so_ext, ar, ar_flags) = \
255 -- _sysconfig.get_config_vars('CC', 'CXX', 'OPT', 'CFLAGS',
256 -- 'CCSHARED', 'LDSHARED', 'SO', 'AR',
257 -- 'ARFLAGS')
258 -+ cc = ' '.join(compiler.compiler)
259 -+ cxx = ' '.join(compiler.compiler_cxx)
260 -+ ldshared = ' '.join(compiler.linker_so)
261 -+ ldcxxshared = ' '.join(compiler.linker_so_cxx)
262 -+ ar = compiler.archiver[0]
263 -+
264 -+ cflags = ''
265 -+ cxxflags = ''
266 -+ ccshared = '-fPIC'
267 -+ ar_flags = compiler.archiver[1]
268 -
269 - if 'CC' in os.environ:
270 - cc = os.environ['CC']
271 -@@ -38,19 +44,27 @@
272 - cxx = os.environ['CXX']
273 - if 'LDSHARED' in os.environ:
274 - ldshared = os.environ['LDSHARED']
275 -+ if 'LDCXXSHARED' in os.environ:
276 -+ ldcxxshared = os.environ['LDCXXSHARED']
277 - if 'CPP' in os.environ:
278 - cpp = os.environ['CPP']
279 - else:
280 - cpp = cc + " -E" # not always
281 - if 'LDFLAGS' in os.environ:
282 - ldshared = ldshared + ' ' + os.environ['LDFLAGS']
283 -+ ldcxxshared = ldcxxshared + ' ' + os.environ['LDFLAGS']
284 - if 'CFLAGS' in os.environ:
285 -- cflags = opt + ' ' + os.environ['CFLAGS']
286 -+ cflags = os.environ['CFLAGS']
287 - ldshared = ldshared + ' ' + os.environ['CFLAGS']
288 -+ if 'CXXFLAGS' in os.environ:
289 -+ cxxflags = os.environ['CXXFLAGS']
290 -+ ldcxxshared = ldcxxshared + ' ' + os.environ['CXXFLAGS']
291 - if 'CPPFLAGS' in os.environ:
292 - cpp = cpp + ' ' + os.environ['CPPFLAGS']
293 - cflags = cflags + ' ' + os.environ['CPPFLAGS']
294 -+ cxxflags = cxxflags + ' ' + os.environ['CPPFLAGS']
295 - ldshared = ldshared + ' ' + os.environ['CPPFLAGS']
296 -+ ldcxxshared = ldcxxshared + ' ' + os.environ['CPPFLAGS']
297 - if 'AR' in os.environ:
298 - ar = os.environ['AR']
299 - if 'ARFLAGS' in os.environ:
300 -@@ -59,17 +73,19 @@
301 - archiver = ar + ' ' + ar_flags
302 -
303 - cc_cmd = cc + ' ' + cflags
304 -+ cxx_cmd = cxx + ' ' + cxxflags
305 - compiler.set_executables(
306 - preprocessor=cpp,
307 - compiler=cc_cmd,
308 - compiler_so=cc_cmd + ' ' + ccshared,
309 -- compiler_cxx=cxx,
310 -+ compiler_cxx=cxx_cmd,
311 -+ compiler_so_cxx=cxx_cmd + ' ' + ccshared,
312 - linker_so=ldshared,
313 - linker_exe=cc,
314 -+ linker_so_cxx=ldcxxshared,
315 -+ linker_exe_cxx=cxx,
316 - archiver=archiver)
317 -
318 -- compiler.shared_lib_extension = so_ext
319 --
320 - class CCompiler:
321 - """Abstract base class to define the interface that must be implemented
322 - by real compiler classes. Also has some utility methods used by
323 ---- lib-python/modified-2.7/distutils/cygwinccompiler.py
324 -+++ lib-python/modified-2.7/distutils/cygwinccompiler.py
325 -@@ -135,9 +135,13 @@
326 - self.set_executables(compiler='gcc -mcygwin -O -Wall',
327 - compiler_so='gcc -mcygwin -mdll -O -Wall',
328 - compiler_cxx='g++ -mcygwin -O -Wall',
329 -+ compiler_so_cxx='g++ -mcygwin -mdll -O -Wall',
330 - linker_exe='gcc -mcygwin',
331 - linker_so=('%s -mcygwin %s' %
332 -- (self.linker_dll, shared_option)))
333 -+ (self.linker_dll, shared_option)),
334 -+ linker_exe_cxx='g++ -mcygwin',
335 -+ linker_so_cxx=('%s -mcygwin %s' %
336 -+ (self.linker_dll, shared_option)))
337 -
338 - # cygwin and mingw32 need different sets of libraries
339 - if self.gcc_version == "2.91.57":
340 -@@ -163,8 +167,12 @@
341 - raise CompileError, msg
342 - else: # for other files use the C-compiler
343 - try:
344 -- self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
345 -- extra_postargs)
346 -+ if self.detect_language(src) == 'c++':
347 -+ self.spawn(self.compiler_so_cxx + cc_args + [src, '-o', obj] +
348 -+ extra_postargs)
349 -+ else:
350 -+ self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
351 -+ extra_postargs)
352 - except DistutilsExecError, msg:
353 - raise CompileError, msg
354 -
355 -@@ -325,10 +333,15 @@
356 - self.set_executables(compiler='gcc -mno-cygwin -O -Wall',
357 - compiler_so='gcc -mno-cygwin -mdll -O -Wall',
358 - compiler_cxx='g++ -mno-cygwin -O -Wall',
359 -+ compiler_so_cxx='g++ -mno-cygwin -mdll -O -Wall',
360 - linker_exe='gcc -mno-cygwin',
361 - linker_so='%s -mno-cygwin %s %s'
362 - % (self.linker_dll, shared_option,
363 -- entry_point))
364 -+ entry_point),
365 -+ linker_exe_cxx='g++ -mno-cygwin',
366 -+ linker_so_cxx='%s -mno-cygwin %s %s'
367 -+ % (self.linker_dll, shared_option,
368 -+ entry_point))
369 - # Maybe we should also append -mthreads, but then the finished
370 - # dlls need another dll (mingwm10.dll see Mingw32 docs)
371 - # (-mthreads: Support thread-safe exception handling on `Mingw32')
372 ---- lib-python/modified-2.7/distutils/emxccompiler.py
373 -+++ lib-python/modified-2.7/distutils/emxccompiler.py
374 -@@ -65,8 +65,12 @@
375 - # XXX optimization, warnings etc. should be customizable.
376 - self.set_executables(compiler='gcc -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall',
377 - compiler_so='gcc -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall',
378 -+ compiler_cxx='g++ -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall',
379 -+ compiler_so_cxx='g++ -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall',
380 - linker_exe='gcc -Zomf -Zmt -Zcrtdll',
381 -- linker_so='gcc -Zomf -Zmt -Zcrtdll -Zdll')
382 -+ linker_so='gcc -Zomf -Zmt -Zcrtdll -Zdll',
383 -+ linker_exe_cxx='g++ -Zomf -Zmt -Zcrtdll',
384 -+ linker_so_cxx='g++ -Zomf -Zmt -Zcrtdll -Zdll')
385 -
386 - # want the gcc library statically linked (so that we don't have
387 - # to distribute a version dependent on the compiler we have)
388 -@@ -83,8 +87,12 @@
389 - raise CompileError, msg
390 - else: # for other files use the C-compiler
391 - try:
392 -- self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
393 -- extra_postargs)
394 -+ if self.detect_language(src) == 'c++':
395 -+ self.spawn(self.compiler_so_cxx + cc_args + [src, '-o', obj] +
396 -+ extra_postargs)
397 -+ else:
398 -+ self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
399 -+ extra_postargs)
400 - except DistutilsExecError, msg:
401 - raise CompileError, msg
402 -
403 ---- lib-python/modified-2.7/distutils/sysconfig_cpython.py
404 -+++ lib-python/modified-2.7/distutils/sysconfig_cpython.py
405 -@@ -149,9 +149,12 @@
406 - varies across Unices and is stored in Python's Makefile.
407 - """
408 - if compiler.compiler_type == "unix":
409 -- (cc, cxx, opt, cflags, ccshared, ldshared, so_ext) = \
410 -- get_config_vars('CC', 'CXX', 'OPT', 'CFLAGS',
411 -- 'CCSHARED', 'LDSHARED', 'SO')
412 -+ (cc, cxx, ccshared, ldshared, ldcxxshared, so_ext) = \
413 -+ get_config_vars('CC', 'CXX', 'CCSHARED', 'LDSHARED',
414 -+ 'LDCXXSHARED', 'SO')
415 -+
416 -+ cflags = ''
417 -+ cxxflags = ''
418 -
419 - if 'CC' in os.environ:
420 - cc = os.environ['CC']
421 -@@ -159,28 +162,40 @@
422 - cxx = os.environ['CXX']
423 - if 'LDSHARED' in os.environ:
424 - ldshared = os.environ['LDSHARED']
425 -+ if 'LDCXXSHARED' in os.environ:
426 -+ ldcxxshared = os.environ['LDCXXSHARED']
427 - if 'CPP' in os.environ:
428 - cpp = os.environ['CPP']
429 - else:
430 - cpp = cc + " -E" # not always
431 - if 'LDFLAGS' in os.environ:
432 - ldshared = ldshared + ' ' + os.environ['LDFLAGS']
433 -+ ldcxxshared = ldcxxshared + ' ' + os.environ['LDFLAGS']
434 - if 'CFLAGS' in os.environ:
435 -- cflags = opt + ' ' + os.environ['CFLAGS']
436 -+ cflags = os.environ['CFLAGS']
437 - ldshared = ldshared + ' ' + os.environ['CFLAGS']
438 -+ if 'CXXFLAGS' in os.environ:
439 -+ cxxflags = os.environ['CXXFLAGS']
440 -+ ldcxxshared = ldcxxshared + ' ' + os.environ['CXXFLAGS']
441 - if 'CPPFLAGS' in os.environ:
442 - cpp = cpp + ' ' + os.environ['CPPFLAGS']
443 - cflags = cflags + ' ' + os.environ['CPPFLAGS']
444 -+ cxxflags = cxxflags + ' ' + os.environ['CPPFLAGS']
445 - ldshared = ldshared + ' ' + os.environ['CPPFLAGS']
446 -+ ldcxxshared = ldcxxshared + ' ' + os.environ['CPPFLAGS']
447 -
448 - cc_cmd = cc + ' ' + cflags
449 -+ cxx_cmd = cxx + ' ' + cxxflags
450 - compiler.set_executables(
451 - preprocessor=cpp,
452 - compiler=cc_cmd,
453 - compiler_so=cc_cmd + ' ' + ccshared,
454 -- compiler_cxx=cxx,
455 -+ compiler_cxx=cxx_cmd,
456 -+ compiler_so_cxx=cxx_cmd + ' ' + ccshared,
457 - linker_so=ldshared,
458 -- linker_exe=cc)
459 -+ linker_exe=cc,
460 -+ linker_so_cxx=ldcxxshared,
461 -+ linker_exe_cxx=cxx)
462 -
463 - compiler.shared_lib_extension = so_ext
464 -
465 -@@ -506,7 +521,7 @@
466 - for key in ('LDFLAGS', 'BASECFLAGS', 'LDSHARED',
467 - # a number of derived variables. These need to be
468 - # patched up as well.
469 -- 'CFLAGS', 'PY_CFLAGS', 'BLDSHARED'):
470 -+ 'CFLAGS', 'CXXFLAGS', 'PY_CFLAGS', 'BLDSHARED'):
471 - flags = _config_vars[key]
472 - flags = re.sub('-arch\s+\w+\s', ' ', flags)
473 - flags = re.sub('-isysroot [^ \t]*', ' ', flags)
474 -@@ -525,7 +540,7 @@
475 - for key in ('LDFLAGS', 'BASECFLAGS', 'LDSHARED',
476 - # a number of derived variables. These need to be
477 - # patched up as well.
478 -- 'CFLAGS', 'PY_CFLAGS', 'BLDSHARED'):
479 -+ 'CFLAGS', 'CXXFLAGS', 'PY_CFLAGS', 'BLDSHARED'):
480 -
481 - flags = _config_vars[key]
482 - flags = re.sub('-arch\s+\w+\s', ' ', flags)
483 -@@ -549,7 +564,7 @@
484 - for key in ('LDFLAGS', 'BASECFLAGS', 'LDSHARED',
485 - # a number of derived variables. These need to be
486 - # patched up as well.
487 -- 'CFLAGS', 'PY_CFLAGS', 'BLDSHARED'):
488 -+ 'CFLAGS', 'CXXFLAGS', 'PY_CFLAGS', 'BLDSHARED'):
489 -
490 - flags = _config_vars[key]
491 - flags = re.sub('-isysroot\s+\S+(\s|$)', ' ', flags)
492 ---- lib-python/modified-2.7/distutils/sysconfig_pypy.py
493 -+++ lib-python/modified-2.7/distutils/sysconfig_pypy.py
494 -@@ -114,13 +114,56 @@
495 - optional C speedup components.
496 - """
497 - if compiler.compiler_type == "unix":
498 -- compiler.compiler_so.extend(['-fPIC', '-Wimplicit'])
499 -+ cc = ' '.join(compiler.compiler)
500 -+ cxx = ' '.join(compiler.compiler_cxx)
501 -+ ldshared = ' '.join(compiler.linker_so)
502 -+ ldcxxshared = ' '.join(compiler.linker_so_cxx)
503 -+
504 -+ cflags = ''
505 -+ cxxflags = ''
506 -+ ccshared = '-fPIC'
507 -+
508 -+ if 'CC' in os.environ:
509 -+ cc = os.environ['CC']
510 -+ if 'CXX' in os.environ:
511 -+ cxx = os.environ['CXX']
512 -+ if 'LDSHARED' in os.environ:
513 -+ ldshared = os.environ['LDSHARED']
514 -+ if 'LDCXXSHARED' in os.environ:
515 -+ ldcxxshared = os.environ['LDCXXSHARED']
516 -+ if 'CPP' in os.environ:
517 -+ cpp = os.environ['CPP']
518 -+ else:
519 -+ cpp = cc + " -E" # not always
520 -+ if 'LDFLAGS' in os.environ:
521 -+ ldshared = ldshared + ' ' + os.environ['LDFLAGS']
522 -+ ldcxxshared = ldcxxshared + ' ' + os.environ['LDFLAGS']
523 -+ if 'CFLAGS' in os.environ:
524 -+ cflags = os.environ['CFLAGS']
525 -+ ldshared = ldshared + ' ' + os.environ['CFLAGS']
526 -+ if 'CXXFLAGS' in os.environ:
527 -+ cxxflags = os.environ['CXXFLAGS']
528 -+ ldcxxshared = ldcxxshared + ' ' + os.environ['CXXFLAGS']
529 -+ if 'CPPFLAGS' in os.environ:
530 -+ cpp = cpp + ' ' + os.environ['CPPFLAGS']
531 -+ cflags = cflags + ' ' + os.environ['CPPFLAGS']
532 -+ cxxflags = cxxflags + ' ' + os.environ['CPPFLAGS']
533 -+ ldshared = ldshared + ' ' + os.environ['CPPFLAGS']
534 -+ ldcxxshared = ldcxxshared + ' ' + os.environ['CPPFLAGS']
535 -+
536 -+ cc_cmd = cc + ' ' + cflags
537 -+ cxx_cmd = cxx + ' ' + cxxflags
538 -+ compiler.set_executables(
539 -+ preprocessor=cpp,
540 -+ compiler=cc_cmd,
541 -+ compiler_so=cc_cmd + ' ' + ccshared,
542 -+ compiler_cxx=cxx_cmd,
543 -+ compiler_so_cxx=cxx_cmd + ' ' + ccshared,
544 -+ linker_so=ldshared,
545 -+ linker_exe=cc,
546 -+ linker_so_cxx=ldcxxshared,
547 -+ linker_exe_cxx=cxx)
548 - compiler.shared_lib_extension = get_config_var('SO')
549 -- if "CFLAGS" in os.environ:
550 -- cflags = os.environ["CFLAGS"]
551 -- compiler.compiler.append(cflags)
552 -- compiler.compiler_so.append(cflags)
553 -- compiler.linker_so.append(cflags)
554 -
555 -
556 - from sysconfig_cpython import (
557 ---- lib-python/modified-2.7/distutils/unixccompiler.py
558 -+++ lib-python/modified-2.7/distutils/unixccompiler.py
559 -@@ -114,14 +114,17 @@
560 - # are pretty generic; they will probably have to be set by an outsider
561 - # (eg. using information discovered by the sysconfig about building
562 - # Python extensions).
563 -- executables = {'preprocessor' : None,
564 -- 'compiler' : ["cc"],
565 -- 'compiler_so' : ["cc"],
566 -- 'compiler_cxx' : ["cc"],
567 -- 'linker_so' : ["cc", "-shared"],
568 -- 'linker_exe' : ["cc"],
569 -- 'archiver' : ["ar", "-cr"],
570 -- 'ranlib' : None,
571 -+ executables = {'preprocessor' : None,
572 -+ 'compiler' : ["cc"],
573 -+ 'compiler_so' : ["cc"],
574 -+ 'compiler_cxx' : ["c++"],
575 -+ 'compiler_so_cxx' : ["c++"],
576 -+ 'linker_so' : ["cc", "-shared"],
577 -+ 'linker_exe' : ["cc"],
578 -+ 'linker_so_cxx' : ["c++", "-shared"],
579 -+ 'linker_exe_cxx' : ["c++"],
580 -+ 'archiver' : ["ar", "-cr"],
581 -+ 'ranlib' : None,
582 - }
583 -
584 - if sys.platform[:6] == "darwin":
585 -@@ -186,11 +189,18 @@
586 -
587 - def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
588 - compiler_so = self.compiler_so
589 -+ compiler_so_cxx = self.compiler_so_cxx
590 - if sys.platform == 'darwin':
591 - compiler_so = _darwin_compiler_fixup(compiler_so, cc_args + extra_postargs)
592 -+ compiler_so_cxx = _darwin_compiler_fixup(compiler_so_cxx, cc_args +
593 -+ extra_postargs)
594 - try:
595 -- self.spawn(compiler_so + cc_args + [src, '-o', obj] +
596 -- extra_postargs)
597 -+ if self.detect_language(src) == 'c++':
598 -+ self.spawn(compiler_so_cxx + cc_args + [src, '-o', obj] +
599 -+ extra_postargs)
600 -+ else:
601 -+ self.spawn(compiler_so + cc_args + [src, '-o', obj] +
602 -+ extra_postargs)
603 - except DistutilsExecError, msg:
604 - raise CompileError, msg
605 -
606 -@@ -247,23 +257,16 @@
607 - ld_args.extend(extra_postargs)
608 - self.mkpath(os.path.dirname(output_filename))
609 - try:
610 -- if target_desc == CCompiler.EXECUTABLE:
611 -- linker = self.linker_exe[:]
612 -+ if target_lang == "c++":
613 -+ if target_desc == CCompiler.EXECUTABLE:
614 -+ linker = self.linker_exe_cxx[:]
615 -+ else:
616 -+ linker = self.linker_so_cxx[:]
617 - else:
618 -- linker = self.linker_so[:]
619 -- if target_lang == "c++" and self.compiler_cxx:
620 -- # skip over environment variable settings if /usr/bin/env
621 -- # is used to set up the linker's environment.
622 -- # This is needed on OSX. Note: this assumes that the
623 -- # normal and C++ compiler have the same environment
624 -- # settings.
625 -- i = 0
626 -- if os.path.basename(linker[0]) == "env":
627 -- i = 1
628 -- while '=' in linker[i]:
629 -- i = i + 1
630 --
631 -- linker[i] = self.compiler_cxx[i]
632 -+ if target_desc == CCompiler.EXECUTABLE:
633 -+ linker = self.linker_exe[:]
634 -+ else:
635 -+ linker = self.linker_so[:]
636 -
637 - if sys.platform == 'darwin':
638 - linker = _darwin_compiler_fixup(linker, ld_args)
639
640 diff --git a/dev-python/pypy/files/pypy-1.7-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch b/dev-python/pypy/files/pypy-1.7-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch
641 deleted file mode 100644
642 index 4422824..0000000
643 --- a/dev-python/pypy/files/pypy-1.7-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch
644 +++ /dev/null
645 @@ -1,11 +0,0 @@
646 ---- lib-python/modified-2.7/distutils/unixccompiler.py
647 -+++ lib-python/modified-2.7/distutils/unixccompiler.py
648 -@@ -297,7 +297,7 @@
649 - # this time, there's no way to determine this information from
650 - # the configuration data stored in the Python installation, so
651 - # we use this hack.
652 -- compiler = os.path.basename(sysconfig.get_config_var("CC"))
653 -+ compiler = os.path.basename(self.compiler[0])
654 - if sys.platform[:6] == "darwin":
655 - # MacOSX's linker doesn't understand the -R flag at all
656 - return "-L" + dir
657
658 diff --git a/dev-python/pypy/files/pypy-1.8-unknown-opcodes.patch b/dev-python/pypy/files/pypy-1.8-unknown-opcodes.patch
659 deleted file mode 100644
660 index b96d163..0000000
661 --- a/dev-python/pypy/files/pypy-1.8-unknown-opcodes.patch
662 +++ /dev/null
663 @@ -1,15 +0,0 @@
664 -diff --git a/pypy/translator/c/gcc/trackgcroot.py b/pypy/translator/c/gcc/trackgcroot.py
665 -index c15d472..f4b08d1 100755
666 ---- a/pypy/translator/c/gcc/trackgcroot.py
667 -+++ b/pypy/translator/c/gcc/trackgcroot.py
668 -@@ -491,6 +491,10 @@ class FunctionGcRootTracker(object):
669 - 'movz',
670 - # locked operations should not move GC pointers, at least so far
671 - 'lock',
672 -+ # additional unknown operations
673 -+ 'vmul', 'vcvt', 'vucomi', 'vsub', 'vxor', 'vmov', 'vdiv',
674 -+ 'vadd', 'vcmp', 'vand', 'vor', 'vunpck', 'vsqrt', 'vmax',
675 -+ 'vmin',
676 - ])
677 -
678 - # a partial list is hopefully good enough for now; it's all to support
679
680 diff --git a/dev-python/pypy/metadata.xml b/dev-python/pypy/metadata.xml
681 deleted file mode 100644
682 index a46a54a..0000000
683 --- a/dev-python/pypy/metadata.xml
684 +++ /dev/null
685 @@ -1,16 +0,0 @@
686 -<?xml version="1.0" encoding="utf-8"?>
687 -<pkgmetadata>
688 - <herd>python</herd>
689 - <maintainer>
690 - <email>djc@g.o</email>
691 - </maintainer>
692 - <maintainer>
693 - <email>nirbheek@g.o</email>
694 - </maintainer>
695 - <use>
696 - <flag name="jit">Enable the JIT compiler</flag>
697 - <flag name="sandbox">Enable sandboxing functionality</flag>
698 - <flag name="stackless">Enable running with stackless features</flag>
699 - <flag name="shadowstack">Use a shadow stack for finding GC roots</flag>
700 - </use>
701 -</pkgmetadata>
702
703 diff --git a/dev-python/pypy/pypy-1.9.ebuild b/dev-python/pypy/pypy-1.9.ebuild
704 deleted file mode 100644
705 index d10f852..0000000
706 --- a/dev-python/pypy/pypy-1.9.ebuild
707 +++ /dev/null
708 @@ -1,102 +0,0 @@
709 -# Copyright 1999-2012 Gentoo Foundation
710 -# Distributed under the terms of the GNU General Public License v2
711 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pypy/pypy-1.9.ebuild,v 1.1 2012/06/08 16:52:09 djc Exp $
712 -
713 -EAPI="4"
714 -
715 -inherit eutils toolchain-funcs check-reqs python versionator
716 -
717 -DESCRIPTION="PyPy is a fast, compliant alternative implementation of the Python language"
718 -HOMEPAGE="http://pypy.org/"
719 -SRC_URI="https://bitbucket.org/pypy/pypy/get/release-${PV}.tar.bz2 -> ${P}.tar.bz2"
720 -SLOTVER=$(get_version_component_range 1-2 ${PV})
721 -
722 -LICENSE="MIT"
723 -SLOT="${SLOTVER}"
724 -PYTHON_ABI="2.7-pypy-${SLOTVER}"
725 -KEYWORDS="~amd64 ~x86"
726 -IUSE="bzip2 doc examples +jit ncurses sandbox shadowstack sqlite ssl +xml"
727 -
728 -RDEPEND=">=sys-libs/zlib-1.1.3
729 - virtual/libffi
730 - virtual/libintl
731 - dev-libs/expat
732 - bzip2? ( app-arch/bzip2 )
733 - ncurses? ( sys-libs/ncurses )
734 - sqlite? ( dev-db/sqlite:3 )
735 - ssl? ( dev-libs/openssl )"
736 -DEPEND="${RDEPEND}"
737 -PDEPEND="app-admin/python-updater"
738 -
739 -DOC="README LICENSE"
740 -
741 -pkg_pretend() {
742 - CHECKREQS_MEMORY="2G"
743 - use amd64 && CHECKREQS_MEMORY="4G"
744 - check-reqs_pkg_pretend
745 -}
746 -
747 -src_unpack() {
748 - default
749 - mv pypy-pypy-* "${S}" || die
750 -}
751 -
752 -src_prepare() {
753 - epatch "${FILESDIR}/pypy-1.8-unknown-opcodes.patch"
754 - epatch "${FILESDIR}/${PV}-no-bytecode-4151f9c406b6.patch"
755 - epatch "${FILESDIR}/${PV}-scripts-location.patch"
756 - epatch "${FILESDIR}/${PV}-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch"
757 - epatch "${FILESDIR}/${PV}-distutils-fix_handling_of_executables_and_flags.patch"
758 -}
759 -
760 -src_compile() {
761 - local conf
762 - if use jit; then
763 - conf="-Ojit"
764 - else
765 - conf="-O2"
766 - fi
767 - if use shadowstack; then
768 - conf+=" --gcrootfinder=shadowstack"
769 - fi
770 - if use sandbox; then
771 - conf+=" --sandbox"
772 - fi
773 -
774 - conf+=" ./pypy/translator/goal/targetpypystandalone.py"
775 - # Avoid linking against libraries disabled by use flags
776 - local optional_use=("bzip2" "ncurses" "ssl")
777 - local optional_mod=("bz2" "_minimal_curses" "_ssl")
778 - for ((i = 0; i < ${#optional_use[*]}; i++)); do
779 - if use ${optional_use[$i]}; then
780 - conf+=" --withmod-${optional_mod[$i]}"
781 - else
782 - conf+=" --withoutmod-${optional_mod[$i]}"
783 - fi
784 - done
785 -
786 - local translate_cmd="$(PYTHON -2) ./pypy/translator/goal/translate.py --batch $conf"
787 - echo ${_BOLD}"${translate_cmd}"${_NORMAL}
788 - ${translate_cmd} || die "compile error"
789 -}
790 -
791 -src_install() {
792 - local INSPATH="/usr/$(get_libdir)/pypy${SLOT}"
793 - insinto ${INSPATH}
794 - doins -r include lib_pypy lib-python pypy-c
795 - fperms a+x ${INSPATH}/pypy-c
796 - dosym ../$(get_libdir)/pypy${SLOT}/pypy-c /usr/bin/pypy-c${SLOT}
797 -
798 - if ! use sqlite; then
799 - rm -fr "${ED}${INSPATH}/lib-python/2.7/sqlite3"
800 - rm -fr "${ED}${INSPATH}/lib-python/modified-2.7/sqlite3"
801 - rm -f "${ED}${INSPATH}/lib_pypy/_sqlite3.py"
802 - fi
803 -
804 - # Generate Grammar and PatternGrammar pickles.
805 - PYTHONPATH="${ED}${INSPATH}/lib_pypy/__extensions__:${ED}${INSPATH}/lib_pypy:${ED}${INSPATH}/lib-python/modified-2.7:${ED}${INSPATH}/lib-python/2.7" "${ED}${INSPATH}/pypy-c" -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" || die "Generation of Grammar and PatternGrammar pickles failed"
806 -}
807 -
808 -src_test() {
809 - $(PYTHON -2) ./pypy/test_all.py --pypy=./pypy-c lib-python
810 -}