[openwrt/openwrt] package-pack: fix Ubuntu 18.04 compilation

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 8 15:44:37 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/5caf02eba98f1e2e004220538facd884adb00a0c

commit 5caf02eba98f1e2e004220538facd884adb00a0c
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Fri Feb 6 18:39:33 2026 -0800

    package-pack: fix Ubuntu 18.04 compilation
    
    Add \ to fix parsing with make 4.1.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/21910
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    (cherry picked from commit 71ad91ecfa74427fce0dd5cfa68b95213b9a3e76)
---
 include/package-pack.mk | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/include/package-pack.mk b/include/package-pack.mk
index 723d23e201..6ea4c59546 100644
--- a/include/package-pack.mk
+++ b/include/package-pack.mk
@@ -231,17 +231,17 @@ endef
 # 3: ABI version
 # 4: list of provides
 define FormatProvides
-$(strip
-  $(if $(call FormatABISuffix,$(1),$(3)),
-    $(1) $(foreach provide,
-      $(filter-out $(1),$(4)),
-      $(call AddProvide,$(provide),$(2),$(3))
-    ),
-    $(foreach provide,
-      $(filter-out $(1),$(4)),
-      $(call AddProvide,$(provide),$(2))
-    )
-  )
+$(strip \
+  $(if $(call FormatABISuffix,$(1),$(3)), \
+    $(1) $(foreach provide, \
+      $(filter-out $(1),$(4)), \
+      $(call AddProvide,$(provide),$(2),$(3)) \
+    ), \
+    $(foreach provide, \
+      $(filter-out $(1),$(4)), \
+      $(call AddProvide,$(provide),$(2)) \
+    ) \
+  ) \
 )
 endef
 




More information about the lede-commits mailing list