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>
This commit is contained in:
Axel Huebl 2020-04-21 20:36:02 -07:00 committed by GitHub
parent 667fee0703
commit 2f7e940872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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