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

LEDE Commits lede-commits at lists.infradead.org
Sat Feb 7 15:23:54 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/71ad91ecfa74427fce0dd5cfa68b95213b9a3e76

commit 71ad91ecfa74427fce0dd5cfa68b95213b9a3e76
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>
---
 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 e6f6a11fed..bdf2fae742 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