<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/blocktrron/tools/flex, branch master</title>
<subtitle>Staging tree of David Bauer</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/'/>
<updated>2026-09-22T18:29:59Z</updated>
<entry>
<title>tools: cache the configure results of eleven more autotools tools</title>
<updated>2026-09-22T18:29:59Z</updated>
<author>
<name>John Crispin</name>
</author>
<published>2026-09-22T18:23:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=6eae1d6b772eeb012046f64be83ecf9ea5ef7514'/>
<id>urn:sha1:6eae1d6b772eeb012046f64be83ecf9ea5ef7514</id>
<content type='text'>
Configure stage without a cache against a warm cache:

  mtools      3.34 s -&gt; 0.28 s
  gengetopt   4.39 s -&gt; 2.13 s
  fakeroot   10.97 s -&gt; 8.73 s
  xz          4.32 s -&gt; 2.17 s
  libressl    3.07 s -&gt; 1.46 s
  flex       12.32 s -&gt; 10.98 s
  expat       2.74 s -&gt; 1.52 s
  bc          1.34 s -&gt; 0.38 s
  dosfstools  3.13 s -&gt; 2.54 s
  libtool     2.86 s -&gt; 2.29 s
  mtd-utils   4.06 s -&gt; 3.56 s

flex, fakeroot, dosfstools and mtd-utils run autoreconf in the same
stage, and the cache does not reach that part.

Each of the eleven configures the same way with a warm cache as it does
without one: the check configures three times, without a cache, with a
cold cache and with a warm cache, and every generated file of the first
and the last run is identical. A static scan of each configure script
found no cache check that changes CFLAGS, CPPFLAGS, LDFLAGS or LIBS
without restoring it.

patchelf, mklibs and automake pass the same check but gain less than
half a second, so they stay out.

make world after make tools/clean now takes 121 s against 177 s with
cold caches.

Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</content>
</entry>
<entry>
<title>tools/flex: respect STAGING_DIR_HOST</title>
<updated>2024-09-24T18:48:43Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2024-07-06T23:59:13Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=72accd078f20ed2a5caaa12b1bea463f40aadd73'/>
<id>urn:sha1:72accd078f20ed2a5caaa12b1bea463f40aadd73</id>
<content type='text'>
flex currently leaks the path of m4 as found on the build host.
While it is possible to override this using the M4 environment
variable (which we always did for autotools based builds) when
using CMake or Ninja the M4 variable is not set.
One easy fix is to make flex take STAGING_DIR_HOST into account
and expect m4 there if that variable is set in the environment.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>tools/flex: fix PKG_CPE_ID</title>
<updated>2024-04-27T10:08:11Z</updated>
<author>
<name>Fabrice Fontaine</name>
</author>
<published>2024-04-26T08:51:16Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=832460b452d840451adf44713e90515fc61c88ab'/>
<id>urn:sha1:832460b452d840451adf44713e90515fc61c88ab</id>
<content type='text'>
cpe:/a:westes:flex is the correct CPE ID for flex:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:westes:flex

Fixes: c61a2395140d92cdd37d3d6ee43a765427e8e318 (add PKG_CPE_ID ids to package and tools)

Signed-off-by: Fabrice Fontaine &lt;fontaine.fabrice@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/flex: override SUBDIRS variable with Makefile</title>
<updated>2023-05-04T04:07:28Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2023-03-25T05:01:36Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=e764a909e3d468a5597373cac087ecc008540e2d'/>
<id>urn:sha1:e764a909e3d468a5597373cac087ecc008540e2d</id>
<content type='text'>
Instead of editing the SUBDIRS variable with a patch,
it can be overriden at the end of the command line when invoking Make.

Skip the build for po files as well, which is causing a conflict
depending on the version of gettext detected, and macros present.

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
</content>
</entry>
<entry>
<title>tools: add Host/Uninstall where possible</title>
<updated>2022-10-19T22:33:22Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2022-09-28T08:23:56Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=a63805b25f99e609d575ee920baae269fb58794c'/>
<id>urn:sha1:a63805b25f99e609d575ee920baae269fb58794c</id>
<content type='text'>
This cleans staging_dir when calling tool/x/clean.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>flex: Add a lex symlink</title>
<updated>2018-11-25T18:23:03Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2018-11-13T20:59:47Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=7ef38e42c8440a29d1dc721a9e6184b2e369bc2f'/>
<id>urn:sha1:7ef38e42c8440a29d1dc721a9e6184b2e369bc2f</id>
<content type='text'>
Some packages like libpfring assume the presense of lex, which on some
other systems is a symlink to flex but not all. Symlink flex to fix
compilation.

Arch Linux and Fedora do this as far as I know.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>add PKG_CPE_ID ids to package and tools</title>
<updated>2017-11-17T01:24:35Z</updated>
<author>
<name>Alexander Couzens</name>
</author>
<published>2017-09-28T02:55:46Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=c61a2395140d92cdd37d3d6ee43a765427e8e318'/>
<id>urn:sha1:c61a2395140d92cdd37d3d6ee43a765427e8e318</id>
<content type='text'>
CPE ids helps to tracks CVE in packages.
https://cpe.mitre.org/specification/

Thanks to swalker for CPE to package mapping and
keep tracking CVEs.

Acked-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
Signed-off-by: Alexander Couzens &lt;lynxis@fe80.eu&gt;
</content>
</entry>
<entry>
<title>tools: flex: fix segfault with glibc 2.26+</title>
<updated>2017-09-24T14:28:28Z</updated>
<author>
<name>Marko Ratkaj</name>
</author>
<published>2017-09-19T07:35:39Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=0fb14a2b1ab2f82ce63f4437b062229d73d90516'/>
<id>urn:sha1:0fb14a2b1ab2f82ce63f4437b062229d73d90516</id>
<content type='text'>
Fix segmentation fault caused by implicit declaration of function 'reallocarray'. Added patch will enable
reallocarray() prototype in glibc 2.26+ on Linux systems. This fix will be included in flex 2.6.5.

Fixes LEDE issue: FS#1003 (Flex does not build with GCC 7.2)

Signed-off-by: Marko Ratkaj &lt;marko.ratkaj@sartura.hr&gt;
</content>
</entry>
<entry>
<title>tools/flex: Revert "tools/flex: add autoreconf"</title>
<updated>2017-07-14T22:12:46Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2017-07-13T20:47:42Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=027aea8af790c2741bcdd0f9b861765fcc1e23eb'/>
<id>urn:sha1:027aea8af790c2741bcdd0f9b861765fcc1e23eb</id>
<content type='text'>
This was already done in commit 91e262c6b35a7 ("tools: flex: fix build
with automake 1.15.1")

This reverts commit 6b127d86390f85e92e59f3dba04fa585efb3b2c5.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>tools/flex: add autoreconf</title>
<updated>2017-07-06T06:57:27Z</updated>
<author>
<name>John Crispin</name>
</author>
<published>2017-07-06T06:57:27Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/blocktrron/commit/?id=6b127d86390f85e92e59f3dba04fa585efb3b2c5'/>
<id>urn:sha1:6b127d86390f85e92e59f3dba04fa585efb3b2c5</id>
<content type='text'>
build blows up on latest debian due to automake mismatch

Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</content>
</entry>
</feed>
