From b4807e751141fbfa691ba546d2f43c6336cd283f Mon Sep 17 00:00:00 2001
From: David Bauer <mail@david-bauer.net>
Date: Tue, 23 Jan 2024 00:27:38 +0100
Subject: [PATCH] tools flex: disable parallel build (#3169)

Sometimes the build of flex fails with erros like these:

./build-aux/config.sub: line 63: opying: command not found

Disable the parallel build of flex in order to avoid these issues from
occuring.

Signed-off-by: David Bauer <mail@david-bauer.net>
---
 ...08-tools-flex-disable-parallel-build.patch | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 patches/openwrt/0008-tools-flex-disable-parallel-build.patch

diff --git a/patches/openwrt/0008-tools-flex-disable-parallel-build.patch b/patches/openwrt/0008-tools-flex-disable-parallel-build.patch
new file mode 100644
index 000000000..e3fbb5379
--- /dev/null
+++ b/patches/openwrt/0008-tools-flex-disable-parallel-build.patch
@@ -0,0 +1,25 @@
+From: David Bauer <mail@david-bauer.net>
+Date: Sun, 21 Jan 2024 02:03:56 +0100
+Subject: tools flex: disable parallel build
+
+Sometimes the build of flex fails with erros like these:
+
+./build-aux/config.sub: line 63: opying: command not found
+
+Disable the parallel build of flex in order to avoid these issues from
+occuring.
+
+Signed-off-by: David Bauer <mail@david-bauer.net>
+
+diff --git a/tools/flex/Makefile b/tools/flex/Makefile
+index 86ba5a4415d3a82aaf5e9897736b465cc7e30c42..f3b6d0b1495b30c278e5bf0d2b322b5ade79ec4f 100644
+--- a/tools/flex/Makefile
++++ b/tools/flex/Makefile
+@@ -15,7 +15,6 @@ PKG_SOURCE_URL:=https://github.com/westes/flex/releases/download/v$(PKG_VERSION)
+ PKG_HASH:=e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995
+ 
+ HOST_FIXUP:=autoreconf
+-HOST_BUILD_PARALLEL:=1
+ 
+ include $(INCLUDE_DIR)/host-build.mk
+ 
-- 
GitLab