From 4bb3d3bd1c38ecae81a403e1b741ad3cf96db16e Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Fri, 19 Oct 2012 03:13:47 +0000 Subject: perl: new package Signed-off-by: Francois Perrad Signed-off-by: Peter Korsgaard --- package/perl/perl-configure-qemu.patch | 53 ++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 package/perl/perl-configure-qemu.patch (limited to 'package/perl/perl-configure-qemu.patch') diff --git a/package/perl/perl-configure-qemu.patch b/package/perl/perl-configure-qemu.patch new file mode 100644 index 000000000..c2d6b9265 --- /dev/null +++ b/package/perl/perl-configure-qemu.patch @@ -0,0 +1,53 @@ +Add qemu support + +see https://rt.perl.org/rt3//Public/Bug/Display.html?id=114798 + +Signed-off-by: Francois Perrad + +Index: b/Configure +=================================================================== +--- a/Configure ++++ b/Configure +@@ -2837,6 +2837,9 @@ + ;; + *) echo "Using usrinc $usrinc." >&4 ;; + esac ++ case "$targetrun" in ++ *qemu*) targethost=dummy ;; ++ esac + case "$targethost" in + '') echo "Targethost not defined." >&4; croak=y ;; + *) echo "Using targethost $targethost." >&4 +@@ -2868,7 +2871,7 @@ + case "$targetfrom" in + '') targetfrom=scp ;; + esac +- run=$run-$targetrun ++ run=$run-`basename $targetrun` + to=$to-$targetto + from=$from-$targetfrom + case "$targetdir" in +@@ -2908,6 +2911,14 @@ + $targetrun -l $targetuser $targethost "cd \$cwd && ./\$exe \$@" + EOF + ;; ++ *qemu*) ++ to=: ++ from=: ++ cat >$run <&4 + exit 1 + ;; +@@ -5048,7 +5059,7 @@ + echo " "; + echo "Checking if your compiler accepts $flag" 2>&1; + echo "int main(void) { return 0; }" > gcctest.c; +-if $cc -O2 $flag -o gcctest gcctest.c 2>gcctest.out && ./gcctest; then ++if $cc -O2 $flag -o gcctest gcctest.c 2>gcctest.out && $run ./gcctest; then + echo "Yes, it does." 2>&1; + if $test -s gcctest.out ; then + echo "But your platform does not like it:"; -- cgit v1.2.3