Skip to content

Commit 9d7e482

Browse files
authored
git: add version 2.25.0 and fixup pcre dependency (spack#14649)
* git: add version 2.25.0 and fixup pcre dependency pcre2 became optional in 2.14 and the default in 2.18. I noticed this as git was compiling against the system pcre2 (spack was specifying pcre as the dependency). * missed a chunk from my internal repo
1 parent 69feea2 commit 9d7e482

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

var/spack/repos/builtin/packages/git/package.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ class Git(AutotoolsPackage):
2424
# You can find the source here: https://mirrors.edge.kernel.org/pub/software/scm/git/sha256sums.asc
2525

2626
releases = [
27+
{
28+
'version': '2.25.0',
29+
'sha256': 'a98c9b96d91544b130f13bf846ff080dda2867e77fe08700b793ab14ba5346f6',
30+
'sha256_manpages': '22b2380842ef75e9006c0358de250ead449e1376d7e5138070b9a3073ef61d44'
31+
},
2732
{
2833
'version': '2.21.0',
2934
'sha256': '85eca51c7404da75e353eba587f87fea9481ba41e162206a6f70ad8118147bee',
@@ -175,7 +180,7 @@ class Git(AutotoolsPackage):
175180
depends_on('libiconv')
176181
depends_on('openssl')
177182
depends_on('pcre', when='@:2.13')
178-
depends_on('pcre+jit', when='@2.14:')
183+
depends_on('pcre2', when='@2.14:')
179184
depends_on('perl')
180185
depends_on('zlib')
181186

@@ -216,12 +221,17 @@ def configure_args(self):
216221
'--with-curl={0}'.format(spec['curl'].prefix),
217222
'--with-expat={0}'.format(spec['expat'].prefix),
218223
'--with-iconv={0}'.format(spec['libiconv'].prefix),
219-
'--with-libpcre={0}'.format(spec['pcre'].prefix),
220224
'--with-openssl={0}'.format(spec['openssl'].prefix),
221225
'--with-perl={0}'.format(spec['perl'].command.path),
222226
'--with-zlib={0}'.format(spec['zlib'].prefix),
223227
]
224228

229+
if '^pcre' in self.spec:
230+
configure_args.append('--with-libpcre={0}'.format(
231+
spec['pcre'].prefix))
232+
if '^pcre2' in self.spec:
233+
configure_args.append('--with-libpcre2={0}'.format(
234+
spec['pcre2'].prefix))
225235
if '+tcltk' in self.spec:
226236
configure_args.append('--with-tcltk={0}'.format(
227237
self.spec['tk'].prefix.bin.wish))

0 commit comments

Comments
 (0)