1 |
commit: 7c15e51cdc58f8eebb068f1afb71a9721f16a73b |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Aug 7 15:52:15 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 8 15:57:57 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c15e51c |
7 |
|
8 |
dev-lang/moarvm: remove unused patches |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/5337 |
11 |
|
12 |
dev-lang/moarvm/files/Configure-2016.04.patch | 145 -------------------------- |
13 |
1 file changed, 145 deletions(-) |
14 |
|
15 |
diff --git a/dev-lang/moarvm/files/Configure-2016.04.patch b/dev-lang/moarvm/files/Configure-2016.04.patch |
16 |
deleted file mode 100644 |
17 |
index 6fd46c2a285..00000000000 |
18 |
--- a/dev-lang/moarvm/files/Configure-2016.04.patch |
19 |
+++ /dev/null |
20 |
@@ -1,145 +0,0 @@ |
21 |
-diff --git a/Configure.pl b/Configure.pl |
22 |
-index 72a5dad..f829d5c 100755 |
23 |
---- a/Configure.pl |
24 |
-+++ b/Configure.pl |
25 |
-@@ -32,7 +32,7 @@ GetOptions(\%args, qw( |
26 |
- os=s shell=s toolchain=s compiler=s |
27 |
- ar=s cc=s ld=s make=s has-sha has-libuv |
28 |
- static has-libtommath has-libatomic_ops |
29 |
-- has-dyncall has-libffi |
30 |
-+ has-dyncall has-libffi pkgconfig=s |
31 |
- build=s host=s big-endian jit! enable-jit lua=s has-dynasm |
32 |
- prefix=s bindir=s libdir=s mastdir=s make-install asan ubsan), |
33 |
- 'no-optimize|nooptimize' => sub { $args{optimize} = 0 }, |
34 |
-@@ -99,6 +99,7 @@ $config{config} = join ' ', map { / / ? "\"$_\"" : $_ } @args; |
35 |
- $config{osname} = $^O; |
36 |
- $config{osvers} = $Config{osvers}; |
37 |
- $config{lua} = $args{lua} // './3rdparty/dynasm/minilua@exe@'; |
38 |
-+$config{pkgconfig} = $args{pkgconfig} // '/usr/bin/pkg-config'; |
39 |
- |
40 |
- # set options that take priority over all others |
41 |
- my @keys = qw( ar cc ld make ); |
42 |
-@@ -164,12 +165,33 @@ if (-e '3rdparty/libuv/src/unix/threadpool' . $defaults{obj} |
43 |
- system($defaults{make}, 'realclean') |
44 |
- } |
45 |
- |
46 |
-+# test whether pkg-config works |
47 |
-+if (-e "$config{pkgconfig}") { |
48 |
-+ print("\nTesting pkgconfig ... "); |
49 |
-+ system("$config{pkgconfig}", "--version"); |
50 |
-+ if ( $? == 0 ) { |
51 |
-+ $config{pkgconfig_works} = 1; |
52 |
-+ } else { |
53 |
-+ $config{pkgconfig_works} = 0; |
54 |
-+ } |
55 |
-+} |
56 |
-+ |
57 |
- # conditionally set include dirs and install rules |
58 |
- $config{cincludes} //= ''; |
59 |
- $config{install} //= ''; |
60 |
- if ($args{'has-libuv'}) { |
61 |
- $defaults{-thirdparty}->{uv} = undef; |
62 |
- unshift @{$config{usrlibs}}, 'uv'; |
63 |
-+ if ($config{pkgconfig_works}) { |
64 |
-+ my $result = `$config{pkgconfig} --cflags libuv`; |
65 |
-+ if ( $? == 0 ) { |
66 |
-+ $result =~ s/\n/ /g; |
67 |
-+ $config{cincludes} .= ' ' . "$result"; |
68 |
-+ print("Adding extra include for libuv: $result\n"); |
69 |
-+ } else { |
70 |
-+ print("Error occured when running $config{pkgconfig} --cflags libuv.\n"); |
71 |
-+ } |
72 |
-+ } |
73 |
- } |
74 |
- else { |
75 |
- $config{cincludes} .= ' ' . $defaults{ccinc} . '3rdparty/libuv/include' |
76 |
-@@ -181,6 +203,16 @@ else { |
77 |
- if ($args{'has-libatomic_ops'}) { |
78 |
- $defaults{-thirdparty}->{lao} = undef; |
79 |
- unshift @{$config{usrlibs}}, 'atomic_ops'; |
80 |
-+ if ($config{pkgconfig_works}) { |
81 |
-+ my $result = `$config{pkgconfig} --cflags atomic_ops`; |
82 |
-+ if ( $? == 0 ) { |
83 |
-+ $result =~ s/\n/ /g; |
84 |
-+ $config{cincludes} .= ' ' . "$result"; |
85 |
-+ print("Adding extra include for atomic_ops: $result\n"); |
86 |
-+ } else { |
87 |
-+ print("Error occured when running $config{pkgconfig} --cflags atomic_ops.\n"); |
88 |
-+ } |
89 |
-+ } |
90 |
- } |
91 |
- else { |
92 |
- $config{cincludes} .= ' ' . $defaults{ccinc} . '3rdparty/libatomic_ops/src'; |
93 |
-@@ -216,7 +248,8 @@ if ($args{'has-libtommath'}) { |
94 |
- } |
95 |
- else { |
96 |
- $config{cincludes} .= ' ' . $defaults{ccinc} . '3rdparty/libtommath'; |
97 |
-- $config{install} .= "\t\$(CP) 3rdparty/libtommath/*.h \$(DESTDIR)\$(PREFIX)/include/libtommath\n"; |
98 |
-+ $config{install} .= "\t\$(MKPATH) \$(DESTDIR)\$(PREFIX)/include/libtommath\n" |
99 |
-+ . "\t\$(CP) 3rdparty/libtommath/*.h \$(DESTDIR)\$(PREFIX)/include/libtommath\n"; |
100 |
- } |
101 |
- |
102 |
- if ($args{'has-dynasm'}) { |
103 |
-@@ -232,6 +265,16 @@ if ($args{'has-libffi'}) { |
104 |
- $config{nativecall_backend} = 'libffi'; |
105 |
- unshift @{$config{usrlibs}}, 'ffi'; |
106 |
- push @{$config{defs}}, 'HAVE_LIBFFI'; |
107 |
-+ if ($config{pkgconfig_works}) { |
108 |
-+ my $result = `$config{pkgconfig} --cflags libffi`; |
109 |
-+ if ( $? == 0 ) { |
110 |
-+ $result =~ s/\n/ /g; |
111 |
-+ $config{cincludes} .= ' ' . "$result"; |
112 |
-+ print("Adding extra include for libffi: $result\n"); |
113 |
-+ } else { |
114 |
-+ print("Error occured when running $config{pkgconfig} --cflags libffi.\n"); |
115 |
-+ } |
116 |
-+ } |
117 |
- } |
118 |
- elsif ($args{'has-dyncall'}) { |
119 |
- unshift @{$config{usrlibs}}, 'dyncall_s', 'dyncallback_s', 'dynload_s'; |
120 |
-@@ -364,6 +407,7 @@ my $order = $config{be} ? 'big endian' : 'little endian'; |
121 |
- print "\n", <<TERM, "\n"; |
122 |
- make: $config{make} |
123 |
- compile: $config{cc} $config{cflags} |
124 |
-+ includes: $config{cincludes} |
125 |
- link: $config{ld} $config{ldflags} |
126 |
- libs: $config{ldlibs} |
127 |
- |
128 |
-@@ -873,6 +917,10 @@ Build and install MoarVM in addition to configuring it. |
129 |
- |
130 |
- =item --has-libffi |
131 |
- |
132 |
-+=item --pkgconfig=/path/to/pkgconfig/executable |
133 |
-+ |
134 |
-+Provide path to the pkgconfig executable. Default: /usr/bin/pkg-config |
135 |
-+ |
136 |
- =item --no-jit |
137 |
- |
138 |
- Disable JIT compiler, which is enabled by default to JIT-compile hot frames. |
139 |
-diff --git a/build/Makefile.in b/build/Makefile.in |
140 |
-index 56a4c8a..b94e847 100644 |
141 |
---- a/build/Makefile.in |
142 |
-+++ b/build/Makefile.in |
143 |
-@@ -454,9 +454,6 @@ install: all |
144 |
- $(CP) src/strings/*.h $(DESTDIR)$(PREFIX)/include/moar/strings |
145 |
- $(CP) src/jit/*.h $(DESTDIR)$(PREFIX)/include/moar/jit |
146 |
- $(CP) src/instrument/*.h $(DESTDIR)$(PREFIX)/include/moar/instrument |
147 |
-- $(MKPATH) $(DESTDIR)$(PREFIX)/include/libuv |
148 |
-- $(MKPATH) $(DESTDIR)$(PREFIX)/include/libtommath |
149 |
-- $(CP) 3rdparty/libuv/include/*.h $(DESTDIR)$(PREFIX)/include/libuv |
150 |
- @install@ |
151 |
- |
152 |
- lib: @moar@ |
153 |
-diff --git a/build/setup.pm b/build/setup.pm |
154 |
-index 324cc88..c87d79e 100755 |
155 |
---- a/build/setup.pm |
156 |
-+++ b/build/setup.pm |
157 |
-@@ -125,7 +125,7 @@ our %TC_POSIX = ( |
158 |
- ccshared => '-fPIC', |
159 |
- ldshared => '-shared @ccshared@', |
160 |
- moarshared => '', |
161 |
-- ldrpath => '-Wl,-rpath,@libdir@ -Wl,-rpath,@prefix@/share/perl6/site/lib', |
162 |
-+ ldrpath => '-Wl,-rpath,/@libdir@ -Wl,-rpath,@prefix@/share/perl6/site/lib', |
163 |
- |
164 |
- arflags => 'rcs', |
165 |
- arout => '', |