perl: added fix for gcc 4.2

This commit is contained in:
Juergen Daubert 2007-08-30 10:16:59 +02:00
parent 1763ea4648
commit 8bcb361872
3 changed files with 27 additions and 13 deletions

View File

@ -1,2 +1,3 @@
02f3956c90132b061bde08bb0615c822 perl-5.8.8-CVE-2005-3962.patch
565a8ae3144b4a695c0525fcb587476a perl-5.8.8-gcc42.patch
b8c118d4360846829beb30b02a6b91a7 perl-5.8.8.tar.gz

View File

@ -5,24 +5,26 @@
name=perl
version=5.8.8
release=2
release=3
source=(ftp://ftp.perl.org/pub/CPAN/src/$name-$version.tar.gz \
$name-$version-CVE-2005-3962.patch)
$name-$version-CVE-2005-3962.patch \
$name-$version-gcc42.patch)
build() {
cd $name-$version
patch -p4 < ../$name-$version-CVE-2005-3962.patch
patch -p4 < $SRC/$name-$version-CVE-2005-3962.patch
patch -p1 < $SRC/$name-$version-gcc42.patch
./Configure -des \
-Dprefix=/usr \
-Darchname=linux \
-Dman1ext=1pm \
-Dman3ext=3pm \
-Dman1dir=/usr/man/man1 \
-Dman3dir=/usr/man/man3 \
-Di_gdbm \
-Di_db \
-Duseshrplib=true \
-Doptimize="$CFLAGS"
-Dprefix=/usr \
-Darchname=linux \
-Dman1ext=1pm \
-Dman3ext=3pm \
-Dman1dir=/usr/man/man1 \
-Dman3dir=/usr/man/man3 \
-Di_gdbm \
-Di_db \
-Duseshrplib=true \
-Doptimize="$CFLAGS"
make
make DESTDIR=$PKG install
ln -sf perl$version $PKG/usr/bin/perl

View File

@ -0,0 +1,11 @@
diff -Naur perl-5.8.8-orig/makedepend.SH perl-5.8.8/makedepend.SH
--- perl-5.8.8-orig/makedepend.SH 2006-10-01 20:05:40.000000000 -0600
+++ perl-5.8.8/makedepend.SH 2006-10-01 20:07:03.000000000 -0600
@@ -167,6 +167,7 @@
-e '/^#.*<builtin>/d' \
-e '/^#.*<built-in>/d' \
-e '/^#.*<command line>/d' \
+ -e '/^#.*<command-line>/d' \
-e '/^#.*"-"/d' \
-e '/: file path prefix .* never used$/d' \
-e 's#\.[0-9][0-9]*\.c#'"$file.c#" \