From 7c15e51cdc58f8eebb068f1afb71a9721f16a73b Mon Sep 17 00:00:00 2001 From: "Michael Mair-Keimberger (asterix)" Date: Mon, 7 Aug 2017 17:52:15 +0200 Subject: dev-lang/moarvm: remove unused patches Closes: https://github.com/gentoo/gentoo/pull/5337 --- dev-lang/moarvm/files/Configure-2016.04.patch | 145 -------------------------- 1 file changed, 145 deletions(-) delete mode 100644 dev-lang/moarvm/files/Configure-2016.04.patch (limited to 'dev-lang') diff --git a/dev-lang/moarvm/files/Configure-2016.04.patch b/dev-lang/moarvm/files/Configure-2016.04.patch deleted file mode 100644 index 6fd46c2a285e..000000000000 --- a/dev-lang/moarvm/files/Configure-2016.04.patch +++ /dev/null @@ -1,145 +0,0 @@ -diff --git a/Configure.pl b/Configure.pl -index 72a5dad..f829d5c 100755 ---- a/Configure.pl -+++ b/Configure.pl -@@ -32,7 +32,7 @@ GetOptions(\%args, qw( - os=s shell=s toolchain=s compiler=s - ar=s cc=s ld=s make=s has-sha has-libuv - static has-libtommath has-libatomic_ops -- has-dyncall has-libffi -+ has-dyncall has-libffi pkgconfig=s - build=s host=s big-endian jit! enable-jit lua=s has-dynasm - prefix=s bindir=s libdir=s mastdir=s make-install asan ubsan), - 'no-optimize|nooptimize' => sub { $args{optimize} = 0 }, -@@ -99,6 +99,7 @@ $config{config} = join ' ', map { / / ? "\"$_\"" : $_ } @args; - $config{osname} = $^O; - $config{osvers} = $Config{osvers}; - $config{lua} = $args{lua} // './3rdparty/dynasm/minilua@exe@'; -+$config{pkgconfig} = $args{pkgconfig} // '/usr/bin/pkg-config'; - - # set options that take priority over all others - my @keys = qw( ar cc ld make ); -@@ -164,12 +165,33 @@ if (-e '3rdparty/libuv/src/unix/threadpool' . $defaults{obj} - system($defaults{make}, 'realclean') - } - -+# test whether pkg-config works -+if (-e "$config{pkgconfig}") { -+ print("\nTesting pkgconfig ... "); -+ system("$config{pkgconfig}", "--version"); -+ if ( $? == 0 ) { -+ $config{pkgconfig_works} = 1; -+ } else { -+ $config{pkgconfig_works} = 0; -+ } -+} -+ - # conditionally set include dirs and install rules - $config{cincludes} //= ''; - $config{install} //= ''; - if ($args{'has-libuv'}) { - $defaults{-thirdparty}->{uv} = undef; - unshift @{$config{usrlibs}}, 'uv'; -+ if ($config{pkgconfig_works}) { -+ my $result = `$config{pkgconfig} --cflags libuv`; -+ if ( $? == 0 ) { -+ $result =~ s/\n/ /g; -+ $config{cincludes} .= ' ' . "$result"; -+ print("Adding extra include for libuv: $result\n"); -+ } else { -+ print("Error occured when running $config{pkgconfig} --cflags libuv.\n"); -+ } -+ } - } - else { - $config{cincludes} .= ' ' . $defaults{ccinc} . '3rdparty/libuv/include' -@@ -181,6 +203,16 @@ else { - if ($args{'has-libatomic_ops'}) { - $defaults{-thirdparty}->{lao} = undef; - unshift @{$config{usrlibs}}, 'atomic_ops'; -+ if ($config{pkgconfig_works}) { -+ my $result = `$config{pkgconfig} --cflags atomic_ops`; -+ if ( $? == 0 ) { -+ $result =~ s/\n/ /g; -+ $config{cincludes} .= ' ' . "$result"; -+ print("Adding extra include for atomic_ops: $result\n"); -+ } else { -+ print("Error occured when running $config{pkgconfig} --cflags atomic_ops.\n"); -+ } -+ } - } - else { - $config{cincludes} .= ' ' . $defaults{ccinc} . '3rdparty/libatomic_ops/src'; -@@ -216,7 +248,8 @@ if ($args{'has-libtommath'}) { - } - else { - $config{cincludes} .= ' ' . $defaults{ccinc} . '3rdparty/libtommath'; -- $config{install} .= "\t\$(CP) 3rdparty/libtommath/*.h \$(DESTDIR)\$(PREFIX)/include/libtommath\n"; -+ $config{install} .= "\t\$(MKPATH) \$(DESTDIR)\$(PREFIX)/include/libtommath\n" -+ . "\t\$(CP) 3rdparty/libtommath/*.h \$(DESTDIR)\$(PREFIX)/include/libtommath\n"; - } - - if ($args{'has-dynasm'}) { -@@ -232,6 +265,16 @@ if ($args{'has-libffi'}) { - $config{nativecall_backend} = 'libffi'; - unshift @{$config{usrlibs}}, 'ffi'; - push @{$config{defs}}, 'HAVE_LIBFFI'; -+ if ($config{pkgconfig_works}) { -+ my $result = `$config{pkgconfig} --cflags libffi`; -+ if ( $? == 0 ) { -+ $result =~ s/\n/ /g; -+ $config{cincludes} .= ' ' . "$result"; -+ print("Adding extra include for libffi: $result\n"); -+ } else { -+ print("Error occured when running $config{pkgconfig} --cflags libffi.\n"); -+ } -+ } - } - elsif ($args{'has-dyncall'}) { - unshift @{$config{usrlibs}}, 'dyncall_s', 'dyncallback_s', 'dynload_s'; -@@ -364,6 +407,7 @@ my $order = $config{be} ? 'big endian' : 'little endian'; - print "\n", < '-fPIC', - ldshared => '-shared @ccshared@', - moarshared => '', -- ldrpath => '-Wl,-rpath,@libdir@ -Wl,-rpath,@prefix@/share/perl6/site/lib', -+ ldrpath => '-Wl,-rpath,/@libdir@ -Wl,-rpath,@prefix@/share/perl6/site/lib', - - arflags => 'rcs', - arout => '', -- cgit v1.2.3-65-gdbad