summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* sys-devel/flex: fix crash on Apple M1 due to undefined behavior.Yifeng Li2023-02-201-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, when the NULL-terminated variadic function filter_create_ext() is invoked, the value "0" is passed as the last argument to act as a terminator. However, this is an integer value, which is incompatible with the pointer data type expected by filter_create_ext(). This is undefined behavior in C, correct operation is not guaranteed. In fact, it causes flex to crash on Apple M1 when GCC is used - the loop is not terminated when it should, instead, it keeps running, corrupting the argument list for invoking m4. As a result, it creates the following error: > flex: fatal internal error, exec of gm4 failed This commit fixes the problem by explicitly casting the value 0 to the correct pointer type (char *). Since the existence of the bug doesn't always prevent a Gentoo Prefix bootstrapping, it can lurk inside the system and remain undetected, furthermore, it's technically a C programming bug, other platforms could've been affected as well in theory. Thus, we also bump the package version. Closes: https://bugs.gentoo.org/871324 Signed-off-by: Yifeng Li <tomli@tomli.me> Signed-off-by: Sam James <sam@gentoo.org>
* sys-devel/flex: drop 2.6.4-r2, 2.6.4-r4Sam James2022-12-281-767/+0
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* sys-devel/flex: backport further macro fixesSam James2022-10-281-0/+219
| | | | | | | | | | | | | | | | | | | | The gist is that the original glibc-2.26 patch was incomplete and didn't help with cross-compilation or non-glibc environments fully. There were a succession of further upstream commits now backported here. Noticed when doing some more Clang 16 work. This complements bec6a7be57fc3493dccef497b5d4b513c315f5f1 in that more effort is taken to ensure all necessary macros are defined so needed functions are available. Bug: https://bugs.gentoo.org/628744 Bug: https://bugs.gentoo.org/705800 See: bec6a7be57fc3493dccef497b5d4b513c315f5f1 See: 4d77781e2db7bb8bef7f390c43efc04ba58ff7bb See: aa6c077d00c3a21b75ae646421aefadcad527f80 Signed-off-by: Sam James <sam@gentoo.org>
* sys-devel/flex: fix build w/o flexSam James2022-10-281-50/+0
| | | | | | | We touch a file which has a generated derivative, so regenerate that. Closes: https://bugs.gentoo.org/878339 Signed-off-by: Sam James <sam@gentoo.org>
* sys-devel/flex: backport "config.h" fix tooSam James2022-10-251-0/+50
| | | | | | | | | | | We already have the patch to config.h/configure.ac backported but we don't have the fix to actually *use* config.h everywhere, and clearly from bug #705800 it wasn't sufficient to just backport it (for reasons covered in the bug & upstream bug). Bug: https://bugs.gentoo.org/628744 Bug: https://bugs.gentoo.org/705800 Signed-off-by: Sam James <sam@gentoo.org>
* sys-devel/flex: Drop 2.6.1, 2.6.3, 2.6.3-r1 and 2.6.4 (r0)Andreas Sturmlechner2021-04-301-82/+0
| | | | | | Bug: https://bugs.gentoo.org/777906 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* sys-devel/flex: Rev bump to fix multiple problemsThomas Deutschmann2017-10-132-0/+793
| | | | | | | Closes: https://bugs.gentoo.org/628744 Closes: https://bugs.gentoo.org/625508 See: https://bugs.gentoo.org/632523 Package-Manager: Portage-2.3.10, Repoman-2.3.3
* sys-devel/flex: Added upstream reentrant patch to fix wine breakage.Lars Wendler2017-03-231-0/+82
| | | | | | See https://bugs.winehq.org/show_bug.cgi?id=42132 Package-Manager: Portage-2.3.5, Repoman-2.3.2
* sys-devel/flex: Security cleanup (bug #589820).Lars Wendler2017-01-112-106/+0
| | | | Package-Manager: Portage-2.3.3, Repoman-2.3.1
* sys-devel/flex: fix tests #567332Mike Frysinger2015-12-122-0/+106
|
* sys-devel/flex: Removed old.Lars Wendler2015-11-236-295/+0
| | | | | Package-Manager: portage-2.2.25 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* proj/gentoo: Initial commitRobin H. Johnson2015-08-086-0/+295
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed