Add depends_on('perl') to git package

This commit changes the git package to depend_on('perl').  The system
perl is not always sufficient to install git (e.g. a CentOS7 system with
the development tools group installed has perl but not the
ExtUtils::MakeMaker package that git needs) and one can't always update
the system's perl.

This PR depends_on PR #1339, which adds a perl package to spack.
This commit is contained in:
George Hartzell 2016-07-22 19:46:36 -04:00
parent d3f115933e
commit 653905e3a2

View File

@ -55,7 +55,7 @@ class Git(Package):
depends_on("zlib")
# Use system perl for now.
# depends_on("perl")
depends_on("perl")
# depends_on("pcre")
def install(self, spec, prefix):
@ -64,8 +64,8 @@ def install(self, spec, prefix):
"--without-pcre",
"--with-openssl=%s" % spec['openssl'].prefix,
"--with-zlib=%s" % spec['zlib'].prefix,
"--with-curl=%s" % spec['curl'].prefix,
"--with-expat=%s" % spec['expat'].prefix
"--with-expat=%s" % spec['expat'].prefix,
"--with-perl=%s" % join_path(spec['perl'].prefix.bin, 'perl'),
]
which('autoreconf')('-i')