ports/core (2.4): perl: added fix for gcc 4.2
commit 8bcb36187243a87b7e45417d7083b84bf003a012 Author: Juergen Daubert <jue@jue.li> Date: Thu Aug 30 10:16:59 2007 +0200 perl: added fix for gcc 4.2 diff --git a/perl/.md5sum b/perl/.md5sum index 0b33e6b..c22ef94 100644 --- a/perl/.md5sum +++ b/perl/.md5sum @@ -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 diff --git a/perl/Pkgfile b/perl/Pkgfile index 252e5ef..08246ac 100644 --- a/perl/Pkgfile +++ b/perl/Pkgfile @@ -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 diff --git a/perl/perl-5.8.8-gcc42.patch b/perl/perl-5.8.8-gcc42.patch new file mode 100644 index 0000000..6904136 --- /dev/null +++ b/perl/perl-5.8.8-gcc42.patch @@ -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#" \
participants (1)
-
crux@crux.nu