summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Bunkus <moritz@bunkus.org>2017-07-09 12:58:29 (GMT)
committerMoritz Bunkus <moritz@bunkus.org>2017-07-09 13:31:17 (GMT)
commit16aa4d0347fcbdb3b2e1bc7efbe67f109dd7d683 (patch)
tree08fe01f9daca4b92c32aa2633238323e95730c6b
parente2ecdb2d1584c0757b33cf6758b0240aa354736e (diff)
downloadmxe-16aa4d0347fcbdb3b2e1bc7efbe67f109dd7d683.zip
mxe-16aa4d0347fcbdb3b2e1bc7efbe67f109dd7d683.tar.gz
mxe-16aa4d0347fcbdb3b2e1bc7efbe67f109dd7d683.tar.bz2
openmp-validation: add current directory to @INC for newer Perl
Perl v5.26.0 has removed the current directory from the include path. This breaks the `run_test.pl` script which tries to load modules from the build directory and fails if the system Perl is 5.26.0 or newer. Error message: `Can't locate ompts_parserFunctions.pm in @INC`
-rw-r--r--src/openmp-validation-2-perl-cwd-not-in-inc-anymore.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/openmp-validation-2-perl-cwd-not-in-inc-anymore.patch b/src/openmp-validation-2-perl-cwd-not-in-inc-anymore.patch
new file mode 100644
index 0000000..f4e6473
--- /dev/null
+++ b/src/openmp-validation-2-perl-cwd-not-in-inc-anymore.patch
@@ -0,0 +1,14 @@
+diff --git a/runtest.pl b/runtest.pl
+index 3472351..e84595b 100755
+--- a/runtest.pl
++++ b/runtest.pl
+@@ -1,5 +1,9 @@
+ #!/usr/bin/env perl
+
++BEGIN {
++ unshift @INC, '.';
++}
++
+ # runtest [options] FILENAME
+ #
+ # Read the file FILENAME. Each line contains a test.