Skip to contentSkip to conversation

package/luvi: fix build without c++

PATCH New Bernd Kuhls 1 participant 2 messages Sep 12

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/luvi: fix build without c++

Buildroot commit 00317f0aff243986983650671fd220ab040af50f bumped the package to 2.15.0 which first included upstream commit
https://github.com/luvit/luvi/commit/262d5f7dff3484285cd8b3bf2ed32ff0f13c8741
that added the miniz submodule.

The version of miniz used by luvi contains commit
https://github.com/richgel999/miniz/commit/05ab4dc05c9d1e1f951f5849b659e2c7e291a620
which removed "C" from the project variable causing a dependency to c++ which causes build errors when the toolchain does not support c++:

-- Check for working CXX compiler: /bin/false - broken

This dependency was not intended so we add an upstream commit to fix the problem.

Fixes:
https://autobuild.buildroot.net/results/2a5/2a5cf09dc9303b11e2a2769c5b0b319284ec1bbb/

---
 ...eLists.txt-only-require-a-C-compiler.patch | 47 +++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 package/luvi/0003-CMakeLists.txt-only-require-a-C-compiler.patch
package/luvi/0003-CMakeLists.txt-only-require-a-C-compiler.patch new file +47 -0
new file mode 100644
index 0000000000..c68e05bdc7
@@ -0,0 +1,47 @@
+From 383e551cccf41fc2ce1177712d6a37a85d936642 Mon Sep 17 00:00:00 2001
+From: Thomas Devoogdt <[email protected]>
+Date: Tue, 1 Apr 2025 22:56:00 +0200
+Subject: [PATCH] CMakeLists.txt: only require a C compiler
+
+Commit 05ab4dc05c9d1e1f951f5849b659e2c7e291a620
+"Add some catch2 tests" dropped that C flag,
+but should instead only have added a simple
+enable_language call for tests only.
+
+Signed-off-by: Thomas Devoogdt <[email protected]>
+
+Upstream: https://github.com/richgel999/miniz/commit/383e551cccf41fc2ce1177712d6a37a85d936642
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ deps/miniz/CMakeLists.txt | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/deps/miniz/CMakeLists.txt b/deps/miniz/CMakeLists.txt
+index 156df83..e0933f8 100644
+--- a/deps/miniz/CMakeLists.txt
++++ b/deps/miniz/CMakeLists.txt
+@@ -7,10 +7,10 @@ if(DEFINED PROJECT_NAME)
+ endif()
+ 
+ if(CMAKE_MINOR_VERSION LESS 12)
+-  project(miniz)
++  project(miniz C)
+   # see issue https://gitlab.kitware.com/cmake/cmake/merge_requests/1799
+ else()
+-  project(miniz)
++  project(miniz C)
+   set(CMAKE_C_STANDARD 90)
+   set(CMAKE_VERBOSE_MAKEFILE ON)
+   # set(CMAKE_C_VISIBILITY_PRESET hidden)
+@@ -309,6 +309,7 @@ if(BUILD_FUZZERS)
+ endif()
+ 
+ if(BUILD_TESTS)
++  enable_language(CXX)
+   set(CMAKE_CXX_STANDARD 20)
+   set(CMAKE_CXX_STANDARD_REQUIRED YES)
+ 
+-- 
+2.47.3
+
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/luvi: bump version to 102-g9fa6c141a

This bump includes a bump of the lua-openssl submodule
https://github.com/luvit/luvi/commit/98fa10f2823d4a9bb93306bf445d596aa8c4a75f
which is a prerequisite for the upcoming bump of OpenSSL to 4.0.2.

Removed patches 0001 & 0002 which are included in this bump.

Renumbered and rebased remaining patch.

---
Series passed Gitlab pipelines:
https://gitlab.com/bkuhls/buildroot/-/commits/465efd43cab3493abf235cecdca493fee0897397

 ...Lists.txt-only-require-a-C-compiler.patch} |  9 ++-
 ...ly-disable-GCC-diagnostics-in-ocsp.c.patch | 80 -------------------
 ...isable-Wincompatible-pointer-types-f.patch | 54 -------------
 package/luvi/luvi.hash                        |  2 +-
 package/luvi/luvi.mk                          |  2 +-
 5 files changed, 7 insertions(+), 140 deletions(-)
 rename package/luvi/{0003-CMakeLists.txt-only-require-a-C-compiler.patch => 0001-CMakeLists.txt-only-require-a-C-compiler.patch} (89%)
 delete mode 100644 package/luvi/0001-Selectively-disable-GCC-diagnostics-in-ocsp.c.patch
 delete mode 100644 package/luvi/0002-CMakeLists.txt-disable-Wincompatible-pointer-types-f.patch
package/luvi/0001-CMakeLists.txt-only-require-a-C-compiler.patch renamed from package/luvi/0003-CMakeLists.txt-only-require-a-C-compiler.patch +5 -4
similarity index 89%
rename from package/luvi/0003-CMakeLists.txt-only-require-a-C-compiler.patch
rename to package/luvi/0001-CMakeLists.txt-only-require-a-C-compiler.patch
index c68e05bdc7..550c0fecf8 100644
@@ -12,6 +12,7 @@ Signed-off-by: Thomas Devoogdt <[email protected]>
 
 Upstream: https://github.com/richgel999/miniz/commit/383e551cccf41fc2ce1177712d6a37a85d936642
 
+[Bernd: rebased for 102-g9fa6c141a]
 Signed-off-by: Bernd Kuhls <[email protected]>
 ---
  deps/miniz/CMakeLists.txt | 5 +++--
@@ -34,14 +35,14 @@ index 156df83..e0933f8 100644
    set(CMAKE_C_STANDARD 90)
    set(CMAKE_VERBOSE_MAKEFILE ON)
    # set(CMAKE_C_VISIBILITY_PRESET hidden)
-@@ -309,6 +309,7 @@ if(BUILD_FUZZERS)
+@@ -298,6 +298,7 @@ if(BUILD_FUZZERS)
  endif()
  
  if(BUILD_TESTS)
 +  enable_language(CXX)
-   set(CMAKE_CXX_STANDARD 20)
-   set(CMAKE_CXX_STANDARD_REQUIRED YES)
- 
+	set(CMAKE_CXX_STANDARD 20)
+	set(CMAKE_CXX_STANDARD_REQUIRED YES)
+	
 -- 
 2.47.3
 
package/luvi/0001-Selectively-disable-GCC-diagnostics-in-ocsp.c.patch deleted +0 -80

80 lines not on this page · raw message

package/luvi/0002-CMakeLists.txt-disable-Wincompatible-pointer-types-f.patch deleted +0 -54

54 lines not on this page · raw message

package/luvi/luvi.hash +1 -1
index d8825487db..4b322c119e 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  f933bf1899a5419b26d46d7f111aaa50101831922716ffaed62e355b1bc9de1d  luvi-v2.15.0-git4.tar.gz
+sha256  8dee14773ffa59e3015c2f3923d4fb62f0021961aa5669373f6bcf553847c73b  luvi-102-g9fa6c141abf24a5a7fe49ca39335210fa1be3ab4-git4.tar.gz
 sha256  cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30  LICENSE.txt
package/luvi/luvi.mk +1 -1
index 78de76aa45..157d9a1401 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LUVI_VERSION = v2.15.0
+LUVI_VERSION = 102-g9fa6c141abf24a5a7fe49ca39335210fa1be3ab4
 LUVI_SITE = https://github.com/luvit/luvi.git
 LUVI_SITE_METHOD = git
 LUVI_GIT_SUBMODULES = YES
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot