A tool for creating scanners (text pattern recognizers)
c0c5e9ed4b
This patch rebases flex to upstream version 2.6.4 and thus drops all backported upstream patches that the package has been carrying so far. One exception is flex-2.6.0-yyless.patch which has no equivalent upstream. I could not track the origin of this patch because flex development moved from SourceForge to GitHub and in the process, sourceforge bug tracker content has been lost. However, RHBZ #1281976 seems to suggest that this patch was included in order to fix a libreswan build failure caused by a flex integer comparison type mismatch bug. I dropped flex-2.6.0-yyless.patch and confirmed that the Fedora libreswan package corresponding to libreswan-3.25 builds successfully despite this patch being dropped. Additionally, flex-2.6.4 FTBFS because it uses reallocarray but does not define _GNU_SOURCE leading to a missing prototype for reallocarray. This commit also includes the upstream patch that fixes this. The patch modifies configure.ac, which necessitates executing autoreconf at build time and thus a corresponding set of new build dependencies. |
||
---|---|---|
.gitignore | ||
flex-rh1389575.patch | ||
flex.spec | ||
gen-quilt-series.sh | ||
quilt-patch.sh | ||
README.quilt | ||
sources |
This package supports working with patch files using quilt. To regenerate the quilt series file run: ./gen-quilt-series.sh Setup environment: export QUILT_PATCHES=$PWD Setup the source: ./quilt-patch.sh [-f] Use `-f` if you want to have quilt-patch always remove the existing source directory before starting. Otherwise you'll be patching on top of an already patched tree generated perhaps by `*pkg prep`. To add a new patch: Option 1: Create a new patch: cd flex-2.6.1/ quilt new flex-rh1439367.patch quilt add tests/test-bison-yylloc/parser.y # edit tests/test-bison-yylloc/parser.y # you may add and edit several files in the same fashion Option 2: Add an already prepared patch (e.g. from an upstream commit): cd flex-2.6.1/ quilt import -P flex-rh1439367.patch ~/backport/obsolete-bison.patch quilt push # if this fails, manually deal with conflicts (as in Option 1) Finally: quilt refresh -p ab cd .. git add flex-rh1439367.patch # edit flex.spec to build with the new patch git add flex.spec git commit You're done!