* Perl: make it build with GCC 4.2.
svn path=/nixpkgs/branches/stdenv-updates/; revision=9693
This commit is contained in:
parent
c121f6746b
commit
71353ce929
@ -9,13 +9,19 @@ stdenv.mkDerivation {
|
||||
sha256 = "1j8vzc6lva49mwdxkzhvm78dkxyprqs4n4057amqvsh4kh6i92l1";
|
||||
};
|
||||
|
||||
# This patch does the following:
|
||||
# 1) Do use the PATH environment variable to find the `pwd' command.
|
||||
# By default, Perl will only look for it in /lib and /usr/lib.
|
||||
# !!! what are the security implications of this?
|
||||
# 2) Force the use of <errno.h>, not /usr/include/errno.h, on Linux
|
||||
# systems. (This actually appears to be due to a bug in Perl.)
|
||||
patches = [./no-sys-dirs.patch];
|
||||
patches = [
|
||||
# This patch does the following:
|
||||
# 1) Do use the PATH environment variable to find the `pwd' command.
|
||||
# By default, Perl will only look for it in /lib and /usr/lib.
|
||||
# !!! what are the security implications of this?
|
||||
# 2) Force the use of <errno.h>, not /usr/include/errno.h, on Linux
|
||||
# systems. (This actually appears to be due to a bug in Perl.)
|
||||
./no-sys-dirs.patch
|
||||
|
||||
# Patch to make Perl 5.8.8 build with GCC 4.2. Taken from
|
||||
# http://www.nntp.perl.org/group/perl.perl5.porters/2006/11/msg117738.html
|
||||
./gcc-4.2.patch
|
||||
];
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
}
|
||||
|
10
pkgs/development/interpreters/perl/gcc-4.2.patch
Normal file
10
pkgs/development/interpreters/perl/gcc-4.2.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- perl-5.8.x/makedepend.SH 2006-06-13 15:31:22.000000000 -0400
|
||||
+++ perl-5.8.x-andy/makedepend.SH 2006-07-25 14:45:11.000000000 -0400
|
||||
@@ -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#" \
|
Loading…
Reference in New Issue
Block a user