summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/flex
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2020-04-21 20:36:02 -0700
committerGitHub <noreply@github.com>2020-04-21 22:36:02 -0500
commit2f7e940872f0361bc28a21b665ad2986da21d246 (patch)
tree3b2429d9303a5a8be52b59f10964db5ad63ac4ab /var/spack/repos/builtin/packages/flex
parent667fee0703799fc78606d0628ff42b0f5a318f2c (diff)
downloadspack-2f7e940872f0361bc28a21b665ad2986da21d246.tar.gz
spack-2f7e940872f0361bc28a21b665ad2986da21d246.tar.bz2
spack-2f7e940872f0361bc28a21b665ad2986da21d246.tar.xz
spack-2f7e940872f0361bc28a21b665ad2986da21d246.zip
Fix: Flex Reconfigure (#16194)
* Fix: Flex Reconfigure Learn the `flex` package how to reconfigure itself when needed. Fix #11551 Co-authored-by: Andrew W Elble <aweits@rit.edu> * Autoreconf: only when actually desired Co-authored-by: Andrew W Elble <aweits@rit.edu>
Diffstat (limited to 'var/spack/repos/builtin/packages/flex')
-rw-r--r--var/spack/repos/builtin/packages/flex/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/flex/package.py b/var/spack/repos/builtin/packages/flex/package.py
index 3c9f51a0eb..83214099f2 100644
--- a/var/spack/repos/builtin/packages/flex/package.py
+++ b/var/spack/repos/builtin/packages/flex/package.py
@@ -43,6 +43,11 @@ class Flex(AutotoolsPackage):
# - https://github.com/westes/flex/issues/241
patch('https://github.com/westes/flex/commit/24fd0551333e7eded87b64dd36062da3df2f6380.patch', sha256='09c22e5c6fef327d3e48eb23f0d610dcd3a35ab9207f12e0f875701c677978d3', when='@2.6.4')
+ @when('@:2.6.0,2.6.4')
+ def autoreconf(self, spec, prefix):
+ autogen = Executable('./autogen.sh')
+ autogen()
+
@property
def force_autoreconf(self):
# The patch for 2.6.4 touches configure