Selaa lähdekoodia

fix building under new gcc 3.1

Ralf S. Engelschall 24 vuotta sitten
vanhempi
commit
d423e01a48
2 muutettua tiedostoa jossa 23 lisäystä ja 1 poistoa
  1. 20 0
      perl/perl.patch
  2. 3 1
      perl/perl.spec

+ 20 - 0
perl/perl.patch

@@ -0,0 +1,20 @@
+--- makedepend.SH.orig	Mon Mar 19 08:33:17 2001
++++ makedepend.SH	Sun May 19 15:17:49 2002
+@@ -141,6 +141,8 @@
+         $cppstdin $finc -I. $cppflags $cppminus <UU/$file.c |
+         $sed \
+     	    -e '/^#.*<stdin>/d' \
++    	    -e '/^#.*<built-in>/d' \
++    	    -e '/^#.*<command line>/d' \
+ 	    -e '/^#.*"-"/d' \
+ 	    -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
+ 	    -e 's/^[	 ]*#[	 ]*line/#/' \
+@@ -155,6 +157,8 @@
+         $sed \
+ 	    -e '1d' \
+ 	    -e '/^#.*<stdin>/d' \
++    	    -e '/^#.*<built-in>/d' \
++    	    -e '/^#.*<command line>/d' \
+ 	    -e '/^#.*"-"/d' \
+ 	    -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
+ 	    -e 's/^[	 ]*#[	 ]*line/#/' \

+ 3 - 1
perl/perl.spec

@@ -33,10 +33,11 @@ Distribution: OpenPKG [REL]
 Group:        Language
 License:      GPL/Artistic
 Version:      5.6.1
-Release:      20020510
+Release:      20020519
 
 #   list of sources
 Source0:      ftp://ftp.cpan.org/pub/CPAN/src/%{name}-%{version}.tar.gz
+Patch0:       perl.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -54,6 +55,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q 
+    %patch0 -p0
     chmod -R u+w .
     #   Support both "ld: Software Generation Utilities" and "ld:
     #   Solaris Link Editors" in the internal outputs of the Solaris