r18274 - in /trunk/libjavascript-perl/debian: changelog patches/makefile-compile.patch patches/series

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Wed Apr 2 19:26:32 UTC 2008


Author: gregoa-guest
Date: Wed Apr  2 19:26:32 2008
New Revision: 18274

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=18274
Log:
Add patch makefile-compile.patch: Makefile.PL compiles a test file but
the call to system() fails if some variables are empty.

Added:
    trunk/libjavascript-perl/debian/patches/makefile-compile.patch
Modified:
    trunk/libjavascript-perl/debian/changelog
    trunk/libjavascript-perl/debian/patches/series

Modified: trunk/libjavascript-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libjavascript-perl/debian/changelog?rev=18274&op=diff
==============================================================================
--- trunk/libjavascript-perl/debian/changelog (original)
+++ trunk/libjavascript-perl/debian/changelog Wed Apr  2 19:26:32 2008
@@ -6,8 +6,10 @@
   * debian/rules:
     - remove obsolete source and diff targets, add install to .PHONY target
     - remove some unused dh_* calls and some whitespace
+  * Add patch makefile-compile.patch: Makefile.PL compiles a test file but
+    the call to system() fails if some variables are empty.
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 02 Apr 2008 19:38:03 +0200
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Wed, 02 Apr 2008 21:23:52 +0200
 
 libjavascript-perl (1.04-3) unstable; urgency=low
 

Added: trunk/libjavascript-perl/debian/patches/makefile-compile.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libjavascript-perl/debian/patches/makefile-compile.patch?rev=18274&op=file
==============================================================================
--- trunk/libjavascript-perl/debian/patches/makefile-compile.patch (added)
+++ trunk/libjavascript-perl/debian/patches/makefile-compile.patch Wed Apr  2 19:26:32 2008
@@ -1,0 +1,20 @@
+Only pass variables to system() that are not empty; otherwise cc says "no
+such file".
+
+--- libjavascript-perl.orig/Makefile.PL
++++ libjavascript-perl/Makefile.PL
+@@ -164,7 +164,13 @@
+ END_OF_SOURCE
+ close $test_script;
+ my $exe = tmpnam();
+-system($Config{cc}, $libs, @ccflags, "-l${lib}", "-o", $exe, (map { "-I$_" } @incs), "test_js.c");
++
++my @args = ($Config{cc});
++push @args, $libs if $libs;
++push @args, @ccflags if @ccflags;
++push @args, ("-l${lib}", "-o", $exe, (map { "-I$_" } @incs), "test_js.c") ;
++
++system(@args);
+ if ($?) {
+     print "Failed compiling test_js.c. ABORTING\n";
+     exit 1;

Modified: trunk/libjavascript-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libjavascript-perl/debian/patches/series?rev=18274&op=diff
==============================================================================
--- trunk/libjavascript-perl/debian/patches/series (original)
+++ trunk/libjavascript-perl/debian/patches/series Wed Apr  2 19:26:32 2008
@@ -1,1 +1,2 @@
 pod-errors
+makefile-compile.patch




More information about the Pkg-perl-cvs-commits mailing list