SOURCES: perl-h2ph-includes.patch (NEW) - process samedir includes...

qboosh qboosh at pld-linux.org
Sun Feb 10 14:14:06 CET 2008


Author: qboosh                       Date: Sun Feb 10 13:14:06 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- process samedir includes too (used by x86 posix_types.h and unistd.h now)

---- Files affected:
SOURCES:
   perl-h2ph-includes.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/perl-h2ph-includes.patch
diff -u /dev/null SOURCES/perl-h2ph-includes.patch:1.1
--- /dev/null	Sun Feb 10 14:14:06 2008
+++ SOURCES/perl-h2ph-includes.patch	Sun Feb 10 14:14:01 2008
@@ -0,0 +1,19 @@
+--- perl-5.10.0/utils/h2ph.PL.orig	2007-12-18 11:47:08.000000000 +0100
++++ perl-5.10.0/utils/h2ph.PL	2008-02-10 14:01:47.206525485 +0100
+@@ -717,6 +717,7 @@
+ 
+     return if ($file eq "-");
+ 
++    (my $filedir = $file) =~ s/[^\/]*$//;
+     open HEADER, $file or return;
+         while (defined($line = <HEADER>)) {
+             while (/\\$/) { # Handle continuation lines
+@@ -726,6 +727,8 @@
+ 
+             if ($line =~ /^#\s*include\s+<(.*?)>/) {
+                 push(@ARGV, $1) unless $Is_converted{$1};
++            } elsif ($line =~ /^#\s*include\s+\"(.*?)\"/) {
++                push(@ARGV, $filedir . $1) unless $Is_converted{$filedir . $1};
+             }
+         }
+     close HEADER;
================================================================


More information about the pld-cvs-commit mailing list