summaryrefslogtreecommitdiffstats
path: root/package/perl/perl-mkppport.patch
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2012-10-19 03:13:47 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-11-03 11:23:53 +0100
commit4bb3d3bd1c38ecae81a403e1b741ad3cf96db16e (patch)
treed4d7353d0e4371b51ad384e9f8382805687f3a23 /package/perl/perl-mkppport.patch
parent63c287bd27220be6db59033981988f296dccd2ef (diff)
downloadbuildroot-novena-4bb3d3bd1c38ecae81a403e1b741ad3cf96db16e.tar.gz
buildroot-novena-4bb3d3bd1c38ecae81a403e1b741ad3cf96db16e.zip
perl: new package
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/perl/perl-mkppport.patch')
-rw-r--r--package/perl/perl-mkppport.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/perl/perl-mkppport.patch b/package/perl/perl-mkppport.patch
new file mode 100644
index 000000000..97f27a202
--- /dev/null
+++ b/package/perl/perl-mkppport.patch
@@ -0,0 +1,37 @@
+Add RUN
+
+Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
+
+Index: b/mkppport
+===================================================================
+--- a/mkppport
++++ b/mkppport
+@@ -1,6 +1,7 @@
+ use strict;
+ use warnings;
+
++use Config;
+ use Getopt::Long;
+ use File::Spec;
+ use File::Compare qw( compare );
+@@ -136,14 +137,18 @@
+ #----------------------------------------------
+ sub run
+ {
++ my @run = $Config{run};
++ @run = () if not defined $run[0] or $run[0] eq '';
+ my @args = ("-I" . File::Spec->catdir((File::Spec->updir) x 2, 'lib'), @_);
+ my $run = $perl =~ m/\s/ ? qq("$perl") : $perl;
+ for (@args) {
+ $_ = qq("$_") if $^O eq 'VMS' && /^[^"]/;
+ $run .= " $_";
+ }
+- print "running $run\n";
+- system $run and die "$run failed: $?\n";
++# print "running $run\n";
++# system $run and die "$run failed: $?\n";
++ print "running ", join(' ', @run, $run), "\n";
++ system join(' ', @run, $run) and die "@run $run failed: $?\n";
+ }
+
+ __END__