1 |
commit: d3fc2535dc462da5c2f951c6a8cd8a089bed4fb7 |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Aug 7 15:51:52 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 8 15:57:44 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3fc2535 |
7 |
|
8 |
dev-lang/nqp: remove unused patches |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/5337 |
11 |
|
12 |
dev-lang/nqp/files/enable-external-jars.patch | 214 -------------------------- |
13 |
1 file changed, 214 deletions(-) |
14 |
|
15 |
diff --git a/dev-lang/nqp/files/enable-external-jars.patch b/dev-lang/nqp/files/enable-external-jars.patch |
16 |
deleted file mode 100644 |
17 |
index cf5d4bd206e..00000000000 |
18 |
--- a/dev-lang/nqp/files/enable-external-jars.patch |
19 |
+++ /dev/null |
20 |
@@ -1,214 +0,0 @@ |
21 |
-diff --git a/Configure.pl b/Configure.pl |
22 |
-index 2064ac8..73e2d27 100755 |
23 |
---- a/Configure.pl |
24 |
-+++ b/Configure.pl |
25 |
-@@ -34,6 +34,7 @@ MAIN: { |
26 |
- 'no-clean', |
27 |
- 'with-parrot=s', 'gen-parrot:s', 'parrot-config=s', 'parrot-option=s@', |
28 |
- 'with-moar=s', 'gen-moar:s', 'moar-option=s@', |
29 |
-+ 'with-asm=s', 'with-asm-tree=s', 'with-jline=s', 'with-jna=s', |
30 |
- 'make-install!', 'makefile-timing!', |
31 |
- 'git-protocol=s', |
32 |
- 'git-depth=s', 'git-reference=s',); |
33 |
-@@ -50,6 +51,53 @@ MAIN: { |
34 |
- "Use --prefix to specify a directory in which parrot is installed."; |
35 |
- } |
36 |
- |
37 |
-+ if ($options{'with-asm'}) { |
38 |
-+ if ($options{'with-asm'} ne '-') { |
39 |
-+ $config{'asm'} = $options{'with-asm'}; |
40 |
-+ } |
41 |
-+ } else { |
42 |
-+ $config{'asm'} = "3rdparty/asm/asm-4.1.jar"; |
43 |
-+ } |
44 |
-+ if ($options{'with-asm-tree'}) { |
45 |
-+ if ($options{'with-asm-tree'} ne '-') { |
46 |
-+ $config{'asmtree'} = $options{'with-asm-tree'}; |
47 |
-+ } |
48 |
-+ } else { |
49 |
-+ $config{'asmtree'} = "3rdparty/asm/asm-tree-4.1.jar"; |
50 |
-+ } |
51 |
-+ if ($options{'with-jline'}) { |
52 |
-+ if ($options{'with-jline'} ne '-') { |
53 |
-+ $config{'jline'} = $options{'with-jline'}; |
54 |
-+ } |
55 |
-+ } else { |
56 |
-+ $config{'jline'} = "3rdparty/jline/jline-1.0.jar"; |
57 |
-+ } |
58 |
-+ if ($options{'with-jna'}) { |
59 |
-+ if ($options{'with-jna'} ne '-') { |
60 |
-+ $config{'jna'} = $options{'with-jna'}; |
61 |
-+ } |
62 |
-+ } else { |
63 |
-+ $config{'jna'} = "3rdparty/jna/jna.jar"; |
64 |
-+ } |
65 |
-+ |
66 |
-+ if ($^O eq 'MSWin32') { |
67 |
-+ $config{'asmfile'} = $config{'asm'}; |
68 |
-+ $config{'asmfile'} =~ s/.*\\//; |
69 |
-+ $config{'jlinefile'} = $config{'jline'}; |
70 |
-+ $config{'jlinefile'} =~ s/.*\\//; |
71 |
-+ } else { |
72 |
-+ $config{'asmfile'} = $config{'asm'}; |
73 |
-+ $config{'asmfile'} =~ s/.*\///; |
74 |
-+ $config{'jlinefile'} = $config{'jline'}; |
75 |
-+ $config{'jlinefile'} =~ s/.*\///; |
76 |
-+ } |
77 |
-+ |
78 |
-+ fill_template_file( |
79 |
-+ 'tools/build/install-jvm-runner.pl.in', |
80 |
-+ 'tools/build/install-jvm-runner.pl', |
81 |
-+ %config, |
82 |
-+ ); |
83 |
-+ |
84 |
- my $default_backend; |
85 |
- my @backends; |
86 |
- my %backends; |
87 |
-@@ -357,6 +405,11 @@ General Options: |
88 |
- --gen-moar Download and build a copy of MoarVM to use |
89 |
- --moar-option='--option=value' |
90 |
- Options to pass to MoarVM configuration for --gen-moar |
91 |
-+ --with-asm='/path/to/jar' |
92 |
-+ --with-asm-tree='/path/to/jar' |
93 |
-+ --with-jline='/path/to/jar' |
94 |
-+ --with-jna='/path/to/jar' |
95 |
-+ Provide paths to already installed jars |
96 |
- --git-protocol={ssh,https,git} |
97 |
- Protocol to use for git clone. Default: https |
98 |
- --make-install Immediately run `MAKE install` after configuring |
99 |
-diff --git a/tools/build/Makefile-JVM.in b/tools/build/Makefile-JVM.in |
100 |
-index 27959ad..c19965a 100644 |
101 |
---- a/tools/build/Makefile-JVM.in |
102 |
-+++ b/tools/build/Makefile-JVM.in |
103 |
-@@ -2,7 +2,6 @@ BAT = @bat@ |
104 |
- JAVA = java |
105 |
- JAVAC = javac |
106 |
- JAR = jar |
107 |
--ASM = 3rdparty/asm/ |
108 |
- J_RUNNER = nqp-j$(BAT) |
109 |
- |
110 |
- NQP_JAR_DIR = $(NQP_LANG_DIR)/runtime |
111 |
-@@ -18,7 +17,11 @@ RUNTIME_JAVAS = \ |
112 |
- |
113 |
- RUNTIME_JAR = nqp-runtime.jar |
114 |
- |
115 |
--THIRDPARTY_JARS = $(ASM)asm-4.1.jar@cpsep@$(ASM)asm-tree-4.1.jar@cpsep@3rdparty/jline/jline-1.0.jar@cpsep@3rdparty/jna/jna.jar |
116 |
-+ASM = @asm@ |
117 |
-+ASMTREE = @asmtree@ |
118 |
-+JLINE = @jline@ |
119 |
-+JNA = @jna@ |
120 |
-+THIRDPARTY_JARS = $(ASM)@cpsep@$(ASMTREE)@cpsep@$(JLINE)@cpsep@$(JNA) |
121 |
- J_STAGE0 = src/vm/jvm/stage0 |
122 |
- J_STAGE1 = $(JVM_BUILD_DIR)/stage1 |
123 |
- J_STAGE2 = $(JVM_BUILD_DIR)/stage2 |
124 |
-@@ -80,8 +83,8 @@ j-install: j-all |
125 |
- $(MKPATH) $(DESTDIR)$(BIN_DIR) |
126 |
- $(MKPATH) $(DESTDIR)$(NQP_JAR_DIR) |
127 |
- $(MKPATH) $(DESTDIR)$(NQP_LIB_DIR) |
128 |
-- $(CP) 3rdparty/asm/asm-4.1.jar 3rdparty/asm/asm-tree-4.1.jar $(DESTDIR)$(NQP_JAR_DIR) |
129 |
-- $(CP) 3rdparty/jline/jline-1.0.jar 3rdparty/jna/jna.jar $(DESTDIR)$(NQP_JAR_DIR) |
130 |
-+ $(CP) $(ASM) $(ASMTREE) $(DESTDIR)$(NQP_JAR_DIR) |
131 |
-+ $(CP) $(JLINE) $(JNA) $(DESTDIR)$(NQP_JAR_DIR) |
132 |
- $(CP) $(RUNTIME_JAR) $(DESTDIR)$(NQP_JAR_DIR) |
133 |
- $(CP) $(NQP_MO_JAR) $(MODULE_LOADER_JAR) $(DESTDIR)$(NQP_LIB_DIR) |
134 |
- $(CP) $(CORE_SETTING_JAR) $(QASTNODE_JAR) $(QREGEX_JAR) $(DESTDIR)$(NQP_LIB_DIR) |
135 |
-diff --git a/tools/build/install-jvm-runner.pl b/tools/build/install-jvm-runner.pl |
136 |
-deleted file mode 100644 |
137 |
-index 14541d6..0000000 |
138 |
---- a/tools/build/install-jvm-runner.pl |
139 |
-+++ /dev/null |
140 |
-@@ -1,44 +0,0 @@ |
141 |
--#!/usr/bin/perl |
142 |
--# Copyright (C) 2013, The Perl Foundation. |
143 |
-- |
144 |
--use strict; |
145 |
--use warnings; |
146 |
--use 5.008; |
147 |
--use File::Spec; |
148 |
-- |
149 |
--my ($destdir, $prefix) = @ARGV; |
150 |
--my $realpath = $destdir.$prefix; |
151 |
-- |
152 |
--unless (File::Spec->file_name_is_absolute($prefix)) { |
153 |
-- $prefix = File::Spec->rel2abs($prefix); |
154 |
--} |
155 |
-- |
156 |
--if ($^O eq 'MSWin32') { |
157 |
-- my $jar_dir = File::Spec->catfile($prefix, 'share', 'nqp', 'runtime'); |
158 |
-- my $lib_dir = File::Spec->catfile($prefix, 'share', 'nqp', 'lib'); |
159 |
-- my $install_to = File::Spec->catfile($realpath, 'bin', 'nqp-j.bat'); |
160 |
-- |
161 |
-- open my $fh, ">", $install_to |
162 |
-- or die "Could not open $install_to: $!"; |
163 |
-- print $fh '@java -Xss1m -Xmx512m -Xbootclasspath/a:' . $jar_dir . '\\nqp-runtime.jar;' . |
164 |
-- "$jar_dir\\asm-4.1.jar;$jar_dir\\jline-1.0.jar;$lib_dir\\nqp.jar -cp $lib_dir nqp %*\n"; |
165 |
-- close $fh |
166 |
-- or die "Could not close $install_to: $!"; |
167 |
--} |
168 |
--else { |
169 |
-- my $nqp_dir = File::Spec->catfile($prefix, qw/share nqp/); |
170 |
-- my $jar_dir = File::Spec->catfile('${NQP_DIR}', 'runtime'); |
171 |
-- my $lib_dir = File::Spec->catfile('${NQP_DIR}', 'lib'); |
172 |
-- my $jars = "$jar_dir/nqp-runtime.jar:$jar_dir/asm-4.1.jar:$jar_dir/jline-1.0.jar:$lib_dir/nqp.jar"; |
173 |
-- my $install_to = File::Spec->catfile($realpath, 'bin', 'nqp-j'); |
174 |
-- |
175 |
-- open my $fh, ">", $install_to |
176 |
-- or die "Could not open $install_to: $!"; |
177 |
-- print $fh "#!/bin/sh\n"; |
178 |
-- print $fh ": \${NQP_DIR:=\"$nqp_dir\"}\n"; |
179 |
-- print $fh ": \${NQP_JARS:=\"$jars\"}\n"; |
180 |
-- print $fh "exec java -Xss1m -Xmx512m -Xbootclasspath/a:\${NQP_JARS} -cp $lib_dir nqp \"\$\@\"\n"; |
181 |
-- close $fh |
182 |
-- or die "Could not close $install_to: $!"; |
183 |
-- chmod 0755, $install_to; |
184 |
--} |
185 |
-diff --git a/tools/build/install-jvm-runner.pl.in b/tools/build/install-jvm-runner.pl.in |
186 |
-new file mode 100644 |
187 |
-index 0000000..92a1109 |
188 |
---- /dev/null |
189 |
-+++ b/tools/build/install-jvm-runner.pl.in |
190 |
-@@ -0,0 +1,44 @@ |
191 |
-+#!/usr/bin/perl |
192 |
-+# Copyright (C) 2013, The Perl Foundation. |
193 |
-+ |
194 |
-+use strict; |
195 |
-+use warnings; |
196 |
-+use 5.008; |
197 |
-+use File::Spec; |
198 |
-+ |
199 |
-+my ($destdir, $prefix) = @ARGV; |
200 |
-+my $realpath = $destdir.$prefix; |
201 |
-+ |
202 |
-+unless (File::Spec->file_name_is_absolute($prefix)) { |
203 |
-+ $prefix = File::Spec->rel2abs($prefix); |
204 |
-+} |
205 |
-+ |
206 |
-+if ($^O eq 'MSWin32') { |
207 |
-+ my $jar_dir = File::Spec->catfile($prefix, 'share', 'nqp', 'runtime'); |
208 |
-+ my $lib_dir = File::Spec->catfile($prefix, 'share', 'nqp', 'lib'); |
209 |
-+ my $install_to = File::Spec->catfile($realpath, 'bin', 'nqp-j.bat'); |
210 |
-+ |
211 |
-+ open my $fh, ">", $install_to |
212 |
-+ or die "Could not open $install_to: $!"; |
213 |
-+ print $fh '@java -Xss1m -Xmx512m -Xbootclasspath/a:' . $jar_dir . '\\nqp-runtime.jar;' . |
214 |
-+ "$jar_dir\\@asmfile@;$jar_dir\\@jlinefile@;$lib_dir\\nqp.jar -cp $lib_dir nqp %*\n"; |
215 |
-+ close $fh |
216 |
-+ or die "Could not close $install_to: $!"; |
217 |
-+} |
218 |
-+else { |
219 |
-+ my $nqp_dir = File::Spec->catfile($prefix, qw/share nqp/); |
220 |
-+ my $jar_dir = File::Spec->catfile('${NQP_DIR}', 'runtime'); |
221 |
-+ my $lib_dir = File::Spec->catfile('${NQP_DIR}', 'lib'); |
222 |
-+ my $jars = "$jar_dir/nqp-runtime.jar:$jar_dir/@asmfile@:$jar_dir/@jlinefile@:$lib_dir/nqp.jar"; |
223 |
-+ my $install_to = File::Spec->catfile($realpath, 'bin', 'nqp-j'); |
224 |
-+ |
225 |
-+ open my $fh, ">", $install_to |
226 |
-+ or die "Could not open $install_to: $!"; |
227 |
-+ print $fh "#!/bin/sh\n"; |
228 |
-+ print $fh ": \${NQP_DIR:=\"$nqp_dir\"}\n"; |
229 |
-+ print $fh ": \${NQP_JARS:=\"$jars\"}\n"; |
230 |
-+ print $fh "exec java -Xss1m -Xmx512m -Xbootclasspath/a:\${NQP_JARS} -cp $lib_dir nqp \"\$\@\"\n"; |
231 |
-+ close $fh |
232 |
-+ or die "Could not close $install_to: $!"; |
233 |
-+ chmod 0755, $install_to; |
234 |
-+} |