forked from mirrors/nixpkgs
* Perl updated to 5.8.5.
svn path=/nixpkgs/trunk/; revision=1450
This commit is contained in:
parent
be49175db4
commit
80ee0edb27
|
@ -1,11 +1,9 @@
|
|||
buildinputs="$patch"
|
||||
. $stdenv/setup
|
||||
|
||||
tar xvfz $src
|
||||
cd perl-*
|
||||
|
||||
# Perl's Configure messes with PATH. We can't have that, so we patch it.
|
||||
# Yeah, this is an ugly hack.
|
||||
postUnpack=postUnpack
|
||||
postUnpack() {
|
||||
# Perl's Configure messes with PATH. We can't have that, so we
|
||||
# patch it. Yeah, this is an ugly hack.
|
||||
if test "$NIX_ENFORCE_PURITY" = "1" -a -n "$NIX_STORE"; then
|
||||
cat Configure | \
|
||||
grep -v '^paths=' | \
|
||||
|
@ -18,14 +16,15 @@ if test "$NIX_ENFORCE_PURITY" = "1" -a -n "$NIX_STORE"; then
|
|||
mv Configure.tmp Configure
|
||||
chmod +x Configure
|
||||
fi
|
||||
|
||||
patch -p1 < $srcPatch
|
||||
}
|
||||
|
||||
if test "$NIX_ENFORCE_PURITY" = "1" -a -n "$NIX_STORE"; then
|
||||
GLIBC=$(cat $NIX_GCC/nix-support/orig-glibc)
|
||||
extraflags="-Dlocincpth=$GLIBC/include -Dloclibpth=$GLIBC/lib"
|
||||
fi
|
||||
|
||||
./Configure -de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl $extraflags
|
||||
make
|
||||
make install
|
||||
configureScript=./Configure
|
||||
configureFlags="-de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl $extraflags"
|
||||
dontAddPrefix=1
|
||||
|
||||
genericBuild
|
|
@ -1,12 +1,12 @@
|
|||
{stdenv, fetchurl, patch}:
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "perl-5.8.3";
|
||||
name = "perl-5.8.5";
|
||||
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.cs.uu.nl/mirror/CPAN/src/5.0/perl-5.8.3.tar.gz;
|
||||
md5 = "6d2b389f8c6424b7af303f417947714f";
|
||||
url = ftp://ftp.cs.uu.nl/mirror/CPAN/src/5.0/perl-5.8.5.tar.gz;
|
||||
md5 = "49baa8d7d29b4a9713c06edeb81e6b1b";
|
||||
};
|
||||
|
||||
# This patch does the following:
|
||||
|
@ -15,8 +15,5 @@ stdenv.mkDerivation {
|
|||
# !!! 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.)
|
||||
|
||||
srcPatch = ./patch;
|
||||
|
||||
inherit patch;
|
||||
patches = [./no-sys-dirs.patch];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue