ola: update to 0.10.9
authorRosen Penev <[email protected]>
Mon, 8 Apr 2024 03:59:42 +0000 (20:59 -0700)
committerTianling Shen <[email protected]>
Sat, 23 Aug 2025 12:46:12 +0000 (20:46 +0800)
Use local tarballs instead of codeload. Smaller size.

Patch ola.m4 to support statically linked protobuf. Avoids rpath hacks.

Remove upstream backport.

Signed-off-by: Rosen Penev <[email protected]>
(cherry picked from commit 7be4cc6411d29850c8c8c8d8f8cf5ed72a457b9e)
[keep using codeload as pkg maintainer requested]
Signed-off-by: Tianling Shen <[email protected]>
net/ola/Makefile
net/ola/patches/020-static-protoc.patch [new file with mode: 0644]
net/ola/patches/020_extend_configure_so_we_switch_to_cpp11.patch [deleted file]
net/ola/patches/200-configure-acx-pthread.patch

index a434b90dd37f6f42ed38afb71831f7ee09f9daca..f56771df7c01ebd0848d39a53d71d345c59277dc 100644 (file)
@@ -9,12 +9,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ola
-PKG_VERSION:=0.10.8
-PKG_RELEASE:=4
+PKG_VERSION:=0.10.9
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/OpenLightingProject/ola/tar.gz/$(PKG_VERSION)?
-PKG_HASH:=45bc101d1ddcc1c6320c063eb25a9345e5820a4233acfa5b29f2dfd99f7452e1
+PKG_HASH:=d2a80d907f5a0a5169583060bd32aa0fdbb2fdfe18d1194dd922595ab6d447b5
 
 PKG_MAINTAINER:=Christian Beier <[email protected]>
 PKG_LICENSE:=LGPL-2.1-or-later
@@ -62,10 +62,8 @@ HOST_CONFIGURE_ARGS += \
        --disable-examples \
        --disable-unittests \
        --disable-doxygen-html \
-       --disable-doxygen-doc
-
-HOST_LDFLAGS += -Wl,-rpath$(comma)$(STAGING_DIR_HOSTPKG)/lib
-TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lm)
+       --disable-doxygen-doc \
+       --with-protoc=$(STAGING_DIR_HOSTPKG)/bin/protoc
 
 # only build the ola_protoc thingy
 define Host/Compile
diff --git a/net/ola/patches/020-static-protoc.patch b/net/ola/patches/020-static-protoc.patch
new file mode 100644 (file)
index 0000000..0b88c6f
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/config/ola.m4
++++ b/config/ola.m4
+@@ -84,7 +84,7 @@ else
+       [],
+       AC_MSG_ERROR([Cannot find the protoc header files]))
+   SAVED_LIBS=$LIBS
+-  LIBS="$LIBS -lprotoc"
++  LIBS="$LIBS -lprotoc -lprotobuf"
+   AC_LINK_IFELSE(
+     [AC_LANG_PROGRAM([#include <google/protobuf/compiler/command_line_interface.h>],
+       [google::protobuf::compiler::CommandLineInterface cli])],
diff --git a/net/ola/patches/020_extend_configure_so_we_switch_to_cpp11.patch b/net/ola/patches/020_extend_configure_so_we_switch_to_cpp11.patch
deleted file mode 100644 (file)
index 8eaeceb..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-https://github.com/OpenLightingProject/ola/commit/30fe936a885c8a364bdda507a692c8e259576621
-
-From 30fe936a885c8a364bdda507a692c8e259576621 Mon Sep 17 00:00:00 2001
-From: Peter Newman <[email protected]>
-Date: Mon, 13 Aug 2018 00:53:51 +0100
-Subject: [PATCH] Extend configure so we switch to C++11 if necessary for
- Protobuf 3.6 or above too
-
-(cherry picked from commit 5286a6925f5f9dc1a045d13632d08cef7f818536)
----
- configure.ac | 28 +++++++++++++++++-----------
- 1 file changed, 17 insertions(+), 11 deletions(-)
-
---- a/configure.ac
-+++ b/configure.ac
-@@ -103,23 +103,29 @@ AS_IF([test "x$ac_cv_gnu_plus_plus_11" =
- # force us into gnu++98 mode if necessary
- # If gnu++11 and gnu++98 then
- #   If random works with gnu++98
--#     If no unit tests, force to gnu++98
--#     If unittests and cppunit < 1.14.0, force to gnu++98
--#     Else turn off deprecation messages for std::auto_ptr and run gnu++11
--#   Else run gnu++11
-+#     If protobuf < 3.6
-+#       If no unit tests, force to gnu++98
-+#       Else we have unit tests
-+#         If cppunit < 1.14.0, force to gnu++98
-+#         Else turn off deprecation messages for std::auto_ptr and run gnu++11
-+#     Else assume we have protobuf >= 3.6 (later checks will confirm that for certain), turn off deprecation messages for std::auto_ptr and run gnu++11
-+#   Else turn off deprecation messages for std::auto_ptr and run gnu++11
- require_gnu_plus_plus_11="no"
- AS_IF([test "x$ac_cv_gnu_plus_plus_11" = xyes],
-       [AS_IF([test "x$ac_cv_gnu_plus_plus_98" = xyes],
-              [AS_IF([test "x$ac_cv_header_random_98" = xyes],
--                    [AS_IF([test "x$enable_unittests" = xno],
--                           [CXXFLAGS="$CXXFLAGS -std=gnu++98"],
--                           [PKG_CHECK_MODULES([CPPUNIT1], [cppunit < 1.14.0],
-+                    [PKG_CHECK_MODULES([PROTOBUF1], [protobuf < 3.6],
-+                                       [AS_IF([test "x$enable_unittests" = xno],
-                                               [CXXFLAGS="$CXXFLAGS -std=gnu++98"],
--                                              [PKG_CHECK_MODULES([CPPUNIT2], [cppunit >= 1.14.0],
--                                                                 [require_gnu_plus_plus_11="yes"],
--                                                                 [AC_MSG_WARN([OLA requires std::auto_ptr support.])])
-+                                              [PKG_CHECK_MODULES([CPPUNIT1], [cppunit < 1.14.0],
-+                                                                 [CXXFLAGS="$CXXFLAGS -std=gnu++98"],
-+                                                                 [PKG_CHECK_MODULES([CPPUNIT2], [cppunit >= 1.14.0],
-+                                                                                    [require_gnu_plus_plus_11="yes"],
-+                                                                                    [AC_MSG_WARN([OLA requires std::auto_ptr support.])])
-+                                                                 ])
-                                               ])
--                           ])
-+                                       ],
-+                                       [require_gnu_plus_plus_11="yes"])
-                     ],
-                     [require_gnu_plus_plus_11="yes"])
-              ])
index 112aab1cb3317ea66e9b81aec8053ccc3ea65e05..7bc6df148bb6574ed4f4f4ebc8a080bdb7565de2 100644 (file)
@@ -1,6 +1,6 @@
 --- a/configure.ac
 +++ b/configure.ac
-@@ -434,8 +434,7 @@ ACX_PTHREAD([
+@@ -439,8 +439,7 @@ ACX_PTHREAD([
               LIBS="$PTHREAD_LIBS $LIBS"
               CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
               CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"