Update the sysrepo package and dependend libs
v2 cover Update the sysrepo package and dependend libs
From: Heiko Thiery <[email protected]>
This patch series bumps the sysrepo and dependencies to the newest upstream version. A lot of cleanup was done in the upstream project so the sysrepo package makefile looks much cleaner.
Changes v1 -> v2:
Sorry. Send v1 to fast without checking if it builds. Add missing patch and tested
Heiko Thiery (3):
package/libyang; bump to version 1.0.109
package/libnetconf2: bump to version 1.1.3
package/sysrepo: bump to version 1.3.21
.../0001-Add-support-for-musl-libc.patch | 65 ------------------- package/libnetconf2/libnetconf2.hash | 2 +- package/libnetconf2/libnetconf2.mk | 2 +- package/libyang/libyang.hash | 2 +- package/libyang/libyang.mk | 2 +- ...espect-CMAKE_INSTALL_PREFIX-and-DEST.patch | 33 ---------- ...CHANGE-create-plugins-dir-if-it-does.patch | 41 ++++++++++++ ...t-make-systemd-unit-dir-configurable.patch | 40 ------------ ...BUGFIX-create-plugins-dir-recursivel.patch | 65 +++++++++++++++++++ package/sysrepo/S50sysrepod | 48 -------------- package/sysrepo/sysrepo.hash | 4 +- package/sysrepo/sysrepo.mk | 31 ++------- 12 files changed, 116 insertions(+), 219 deletions(-) delete mode 100644 package/libnetconf2/0001-Add-support-for-musl-libc.patch delete mode 100644 package/sysrepo/0001-CMakeLists.txt-respect-CMAKE_INSTALL_PREFIX-and-DEST.patch create mode 100644 package/sysrepo/0001-sysrepo-plugind-CHANGE-create-plugins-dir-if-it-does.patch delete mode 100644 package/sysrepo/0002-CMakeLists.txt-make-systemd-unit-dir-configurable.patch create mode 100644 package/sysrepo/0002-sysrpeo-plugind-BUGFIX-create-plugins-dir-recursivel.patch delete mode 100644 package/sysrepo/S50sysrepod
Signature · 1 line
2.20.1
PATCH v2 1/3 package/libyang; bump to version 1.0.109
--- package/libyang/libyang.hash | 2 +- package/libyang/libyang.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/libyang/libyang.hash +1 -1
@@ -1,2 +1,2 @@ -sha256 411f0c675b0858f8deabc0545e33fbd791ff7c7a5b7d2c27e347e3973d5b8ae4 libyang-1.0-r4.tar.gz +sha256 1686a381a8cce775102e60c8eb93f7ba64c6d4ae10591fc05d9f969a07815f60 libyang-1.0.109.tar.gz sha256 f942fe693e03e4e3ff67a351c00dc8f468a042e0d7273b0aa6bc53060b568112 LICENSE
package/libyang/libyang.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LIBYANG_VERSION = 1.0-r4 +LIBYANG_VERSION = 1.0.109 LIBYANG_SITE = $(call github,CESNET,libyang,v$(LIBYANG_VERSION)) LIBYANG_LICENSE = BSD-3-Clause LIBYANG_LICENSE_FILES = LICENSE
Signature · 1 line
2.20.1
Thomas Petazzoni
AppliedPATCH v2 1/3 package/libyang; bump to version 1.0.109
Quoted 6 lines · On Fri, 20 Dec 2019 14:53:43 +0100 Heiko Thiery <[email protected]> wrote:
Signed-off-by Heiko Thiery <[email protected]>Signed-off-by Heiko Thiery <[email protected]>--- package/libyang/libyang.hash | 2 +- package/libyang/libyang.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 2/3 package/libnetconf2: bump to version 1.1.3
In reply to Heiko ThieryOther changes:
- Remove patch (already in upstream version)
--- .../0001-Add-support-for-musl-libc.patch | 65 ------------------- package/libnetconf2/libnetconf2.hash | 2 +- package/libnetconf2/libnetconf2.mk | 2 +- 3 files changed, 2 insertions(+), 67 deletions(-) delete mode 100644 package/libnetconf2/0001-Add-support-for-musl-libc.patch
package/libnetconf2/0001-Add-support-for-musl-libc.patch deleted +0 -65
@@ -1,65 +0,0 @@ -From 153fe40bd60499677e825e66501e8601536e0323 Mon Sep 17 00:00:00 2001 -From: Rosen Penev <[email protected]> -Date: Mon, 15 Jul 2019 18:15:28 -0700 -Subject: [PATCH] Add support for musl libc - -musl does not support pthread_rwlockattr_setkind_np. Don't use it if it is -not available. - -Patch comes from upstream commit: -https://github.com/CESNET/libnetconf2/commit/153fe40bd60499677e825e66501e8601536e0323 - -Signed-of-by: Heiko Thiery <[email protected]> ---- - CMakeLists.txt | 1 + - src/config.h.in | 3 +++ - src/session_server.c | 2 ++ - 3 files changed, 6 insertions(+) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 624b8c8..c05cd03 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -176,6 +176,7 @@ target_link_libraries(netconf2 ${CMAKE_THREAD_LIBS_INIT}) - set(CMAKE_REQUIRED_LIBRARIES pthread) - check_include_file(stdatomic.h HAVE_STDATOMIC) - check_function_exists(pthread_mutex_timedlock HAVE_PTHREAD_MUTEX_TIMEDLOCK) -+check_function_exists(pthread_rwlockattr_setkind_np HAVE_PTHREAD_RWLOCKATTR_SETKIND_NP) - - # dependencies - openssl - if(ENABLE_TLS OR ENABLE_DNSSEC OR ENABLE_SSH) -diff --git a/src/config.h.in b/src/config.h.in -index 96d33c5..30dd8a3 100644 ---- a/src/config.h.in -+++ b/src/config.h.in -@@ -73,4 +73,7 @@ - */ - #define NC_PS_QUEUE_SIZE @MAX_PSPOLL_THREAD_COUNT@ - -+/* Portability feature-check macros. */ -+#cmakedefine HAVE_PTHREAD_RWLOCKATTR_SETKIND_NP -+ - #endif /* NC_CONFIG_H_ */ -diff --git a/src/session_server.c b/src/session_server.c -index 636b1a2..3b747ed 100644 ---- a/src/session_server.c -+++ b/src/session_server.c -@@ -560,6 +560,7 @@ nc_server_init(struct ly_ctx *ctx) - errno=0; - - if (pthread_rwlockattr_init(&attr) == 0) { -+#if defined(HAVE_PTHREAD_RWLOCKATTR_SETKIND_NP) - if (pthread_rwlockattr_setkind_np(&attr, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP) == 0) { - if (pthread_rwlock_init(&server_opts.endpt_lock, &attr) != 0) { - ERR("%s: failed to init rwlock(%s).", __FUNCTION__, strerror(errno)); -@@ -570,6 +571,7 @@ nc_server_init(struct ly_ctx *ctx) - } else { - ERR("%s: failed set attribute (%s).", __FUNCTION__, strerror(errno)); - } -+#endif - pthread_rwlockattr_destroy(&attr); - } else { - ERR("%s: failed init attribute (%s).", __FUNCTION__, strerror(errno)); --- -2.20.1 -
package/libnetconf2/libnetconf2.hash +1 -1
@@ -1,2 +1,2 @@ -sha256 760061fb1c1fe87a2a068d5a9e5affcef280044c5940ef344854e9ea7ec26452 libnetconf2-0.12-r2.tar.gz +sha256 38e780cdd0135e9c7fe44b5190a1acc8c33cb28aa395c329893b019a57b1f783 libnetconf2-1.1.3.tar.gz sha256 085122ea91161812dda9cd2f42d8c50ecc3a48cc1a4f15044d86cfc5aa887577 LICENSE
package/libnetconf2/libnetconf2.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LIBNETCONF2_VERSION = 0.12-r2 +LIBNETCONF2_VERSION = 1.1.3 LIBNETCONF2_SITE = $(call github,CESNET,libnetconf2,v$(LIBNETCONF2_VERSION)) LIBNETCONF2_INSTALL_STAGING = YES LIBNETCONF2_LICENSE = BSD-3-Clause
Signature · 1 line
2.20.1
Thomas Petazzoni
AppliedPATCH v2 2/3 package/libnetconf2: bump to version 1.1.3
Quoted 4 lines · On Fri, 20 Dec 2019 14:53:44 +0100 Heiko Thiery <[email protected]> wrote:
Other changes:
- Remove patch (already in upstream version)
Quoted 8 lines
Signed-off-by Heiko Thiery <[email protected]>Signed-off-by Heiko Thiery <[email protected]>--- .../0001-Add-support-for-musl-libc.patch | 65 ------------------- package/libnetconf2/libnetconf2.hash | 2 +- package/libnetconf2/libnetconf2.mk | 2 +- 3 files changed, 2 insertions(+), 67 deletions(-) delete mode 100644 package/libnetconf2/0001-Add-support-for-musl-libc.patch
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 3/3 package/sysrepo: bump to version 1.3.21
In reply to Heiko ThieryFrom: Heiko Thiery <[email protected]>
This Sysrepo is a complete rewrite of the older versions.
Thus several changes are made in the package to support this new version.
- several cmake config options dropped
- no systemd service scripts availble in upstream version
- no sysrepod daemon available
- drop patches that are no longer needed
- add new patch
--- ...espect-CMAKE_INSTALL_PREFIX-and-DEST.patch | 33 ---------- ...CHANGE-create-plugins-dir-if-it-does.patch | 41 ++++++++++++ ...t-make-systemd-unit-dir-configurable.patch | 40 ------------ ...BUGFIX-create-plugins-dir-recursivel.patch | 65 +++++++++++++++++++ package/sysrepo/S50sysrepod | 48 -------------- package/sysrepo/sysrepo.hash | 4 +- package/sysrepo/sysrepo.mk | 31 ++------- 7 files changed, 112 insertions(+), 150 deletions(-) delete mode 100644 package/sysrepo/0001-CMakeLists.txt-respect-CMAKE_INSTALL_PREFIX-and-DEST.patch create mode 100644 package/sysrepo/0001-sysrepo-plugind-CHANGE-create-plugins-dir-if-it-does.patch delete mode 100644 package/sysrepo/0002-CMakeLists.txt-make-systemd-unit-dir-configurable.patch create mode 100644 package/sysrepo/0002-sysrpeo-plugind-BUGFIX-create-plugins-dir-recursivel.patch delete mode 100644 package/sysrepo/S50sysrepod
package/sysrepo/0001-CMakeLists.txt-respect-CMAKE_INSTALL_PREFIX-and-DEST.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From c4a2195febbd5d436f8de79d8391d8da9aa60ac4 Mon Sep 17 00:00:00 2001 -From: Michael Walle <[email protected]> -Date: Thu, 10 Oct 2019 14:58:16 +0200 -Subject: [PATCH] CMakeLists.txt: respect CMAKE_INSTALL_PREFIX and DESTDIR - -Don't use absolute pathnames in the install function. This way the files -will be installed in the correct location even if CMAKE_INSTALL_PREFIX -and DESTDIR are changed. - -Patch comes from upstream pull-request: -https://github.com/sysrepo/sysrepo/pull/1638 - -Signed-off-by: Heiko Thiery <[email protected]> ---- - CMakeLists.txt | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index e4521088..14b7cd36 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -357,7 +357,7 @@ if(WITH_SYSTEMD) - ${PROJECT_SOURCE_DIR}/deploy/systemd/sysrepod.service - ${PROJECT_SOURCE_DIR}/deploy/systemd/sysrepo-plugind.service - ) -- install(DIRECTORY ${PROJECT_SOURCE_DIR}/deploy/systemd/ DESTINATION "/lib/systemd/system" -+ install(DIRECTORY ${PROJECT_SOURCE_DIR}/deploy/systemd/ DESTINATION "lib/systemd/system" - FILES_MATCHING PATTERN "*.service") - endif() - --- -2.20.1 -
package/sysrepo/0001-sysrepo-plugind-CHANGE-create-plugins-dir-if-it-does.patch new file +41 -0
41 lines not on this page · raw message
package/sysrepo/0002-CMakeLists.txt-make-systemd-unit-dir-configurable.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 906927b4ee2dd0d5bd669d193fc851d14919fbd1 Mon Sep 17 00:00:00 2001 -From: Michael Walle <[email protected]> -Date: Thu, 10 Oct 2019 14:38:57 +0200 -Subject: [PATCH] CMakeLists.txt: make systemd unit dir configurable - -Patch comes from upstream pull-request: -https://github.com/sysrepo/sysrepo/pull/1638 - -Signed-off-by: Heiko Thiery <[email protected]> ---- - CMakeLists.txt | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 14b7cd36..14c84675 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -217,6 +217,9 @@ else() - message(FATAL_ERROR "Unknown file format \"${FILE_FORMAT_EXT}\", must be json, xml, or lyb.") - endif() - -+set(SYSTEMD_UNIT_DIR "lib/systemd/system/" CACHE STRING -+ "Path to the systemd service directory.") -+ - # timeouts - set(REQUEST_TIMEOUT 15 CACHE STRING - "Timeout (in seconds) for Sysrepo API requests. Set to 0 for no timeout.") -@@ -357,7 +360,8 @@ if(WITH_SYSTEMD) - ${PROJECT_SOURCE_DIR}/deploy/systemd/sysrepod.service - ${PROJECT_SOURCE_DIR}/deploy/systemd/sysrepo-plugind.service - ) -- install(DIRECTORY ${PROJECT_SOURCE_DIR}/deploy/systemd/ DESTINATION "lib/systemd/system" -+ install(DIRECTORY ${PROJECT_SOURCE_DIR}/deploy/systemd/ -+ DESTINATION "${SYSTEMD_UNIT_DIR}" - FILES_MATCHING PATTERN "*.service") - endif() - --- -2.20.1 -
package/sysrepo/0002-sysrpeo-plugind-BUGFIX-create-plugins-dir-recursivel.patch new file +65 -0
65 lines not on this page · raw message
package/sysrepo/S50sysrepod deleted +0 -48
48 lines not on this page · raw message
package/sysrepo/sysrepo.hash +2 -2
@@ -1,2 +1,2 @@ -sha256 d3066c1776a6727b96bbb3517eb646d0bb6037e8e1addcbe873cae590493843e sysrepo-0.7.8.tar.gz -sha256 28a773bfffa828ec38c030fc8ace5f3aeb90926ec1309bbd135441c4387ce3cd LICENSE +sha256 be405a33b1713d1114f3c092a6349b25a2de2a0f43a15dc6984c029f70230b3b sysrepo-1.3.21.tar.gz +sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE
package/sysrepo/sysrepo.mk +4 -27
@@ -4,7 +4,7 @@ # ################################################################################ -SYSREPO_VERSION = 0.7.8 +SYSREPO_VERSION = 1.3.21 SYSREPO_SITE = $(call github,sysrepo,sysrepo,v$(SYSREPO_VERSION)) SYSREPO_INSTALL_STAGING = YES SYSREPO_LICENSE = Apache-2.0
@@ -13,45 +13,22 @@ SYSREPO_DEPENDENCIES = libev libavl libyang pcre protobuf-c host-sysrepo HOST_SYSREPO_DEPENDENCIES = host-libev host-libavl host-libyang host-pcre host-protobuf-c SYSREPO_CONF_OPTS = \ - -DIS_DEVELOPER_CONFIGURATION=OFF \ - -DGEN_PYTHON2_TESTS=OFF \ - -DENABLE_TESTS=OFF \ - -DGEN_CPP_BINDINGS=OFF \ - -DGEN_LANGUAGE_BINDINGS=OFF \ - -DGEN_PYTHON_BINDINGS=OFF \ - -DBUILD_CPP_EXAMPLES=OFF \ - -DCALL_SYSREPOCTL_BIN=$(HOST_DIR)/bin/sysrepoctl \ - -DCALL_SYSREPOCFG_BIN=$(HOST_DIR)/bin/sysrepocfg \ + -DCMAKE_BUILD_TYPE=Release \ -DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_SYSREPO_EXAMPLES),ON,OFF) \ - $(if $(BR2_INIT_SYSTEMD),-DWITH_SYSTEMD=ON) \ - $(if $(BR2_INIT_SYSTEMD),-DSYSTEMD_UNIT_DIR=/usr/lib/systemd/system) - -# On ARM, this is needed to prevent unaligned memory access with an optimized -# build .. https://github.com/sysrepo/sysrepo/issues/947 -SYSREPO_CONF_OPTS += -DUSE_SR_MEM_MGMT=OFF ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) SYSREPO_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic endif define SYSREPO_INSTALL_INIT_SYSV - $(INSTALL) -m 755 -D package/sysrepo/S50sysrepod \ - $(TARGET_DIR)/etc/init.d/S50sysrepod $(INSTALL) -m 755 -D package/sysrepo/S51sysrepo-plugind \ $(TARGET_DIR)/etc/init.d/S51sysrepo-plugind endef HOST_SYSREPO_CONF_OPTS = \ - -DGEN_PYTHON2_TESTS=OFF \ - -DENABLE_TESTS=OFF \ - -DGEN_CPP_BINDINGS=OFF \ - -DGEN_LANGUAGE_BINDINGS=OFF \ - -DGEN_PYTHON_BINDINGS=OFF \ - -DCALL_TARGET_BINS_DIRECTLY=OFF \ + -DCMAKE_BUILD_TYPE=Release \ -DBUILD_EXAMPLES=OFF \ - -DBUILD_CPP_EXAMPLES=OFF \ - -DREPOSITORY_LOC=$(HOST_DIR)/etc/sysrepo \ - -DSUBSCRIPTIONS_SOCKET_DIR=$(HOST_DIR)/var/run/sysrepo-subscriptions + -DREPO_PATH=$(TARGET_DIR)/etc/sysrepo $(eval $(cmake-package)) $(eval $(host-cmake-package))
Signature · 1 line
2.20.1
PATCH v2 3/3 package/sysrepo: bump to version 1.3.21
Hello,
Quoted 6 lines · On Fri, 20 Dec 2019 14:53:45 +0100 Heiko Thiery <[email protected]> wrote:
From: Heiko Thiery <[email protected]>
This Sysrepo is a complete rewrite of the older versions.
Thus several changes are made in the package to support this new version.
Quoted 7 lines
- several cmake config options dropped
- no systemd service scripts availble in upstream version
- no sysrepod daemon available
- drop patches that are no longer needed
- add new patchSigned-off-by Heiko Thiery <[email protected]>
Thanks for the patch. It indeed does simplify quite a few things.
package/sysrepo/sysrepo.mk SYSREPO_DEPENDENCIES = libev libavl libyang pcre protobuf-c host-sysrepo · line 16
Quoted 11 lines
SYSREPO_CONF_OPTS= \package/sysrepo/sysrepo.mk +1
-9- -DIS_DEVELOPER_CONFIGURATION=OFF \ - -DGEN_PYTHON2_TESTS=OFF \ - -DENABLE_TESTS=OFF \ - -DGEN_CPP_BINDINGS=OFF \ - -DGEN_LANGUAGE_BINDINGS=OFF \ - -DGEN_PYTHON_BINDINGS=OFF \ - -DBUILD_CPP_EXAMPLES=OFF \ - -DCALL_SYSREPOCTL_BIN=$(HOST_DIR)/bin/sysrepoctl \ - -DCALL_SYSREPOCFG_BIN=$(HOST_DIR)/bin/sysrepocfg \ + -DCMAKE_BUILD_TYPE=Release \
Any reason for passing this ? The cmake-package infrastructure already passes it:
-e 's#@@CMAKE_BUILD_TYPE@@#$(if $(BR2_ENABLE_DEBUG),Debug,Release)#'
so it's already in the $(HOST_DIR)/share/buildroot/toolchainfile.cmake CMake toolchain file.
Have you encountered a specific issue that makes it needed ?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 3/3 package/sysrepo: bump to version 1.3.21
Hi,
Am Sa., 21. Dez. 2019 um 23:00 Uhr schrieb Thomas Petazzoni <[email protected]>:
Quoted 37 lines
Hello,
Quoted 6 lines · On Fri, 20 Dec 2019 14:53:45 +0100 Heiko Thiery <[email protected]> wrote:
From: Heiko Thiery <[email protected]>
This Sysrepo is a complete rewrite of the older versions.
Thus several changes are made in the package to support this new version.
Quoted 7 lines
- several cmake config options dropped
- no systemd service scripts availble in upstream version
- no sysrepod daemon available
- drop patches that are no longer needed
- add new patchSigned-off-by Heiko Thiery <[email protected]>Thanks for the patch. It indeed does simplify quite a few things.
package/sysrepo/sysrepo.mk SYSREPO_DEPENDENCIES = libev libavl libyang pcre protobuf-c host-sysrepo · line 16
Quoted 11 lines
SYSREPO_CONF_OPTS= \package/sysrepo/sysrepo.mk +1
-9- -DIS_DEVELOPER_CONFIGURATION=OFF \ - -DGEN_PYTHON2_TESTS=OFF \ - -DENABLE_TESTS=OFF \ - -DGEN_CPP_BINDINGS=OFF \ - -DGEN_LANGUAGE_BINDINGS=OFF \ - -DGEN_PYTHON_BINDINGS=OFF \ - -DBUILD_CPP_EXAMPLES=OFF \ - -DCALL_SYSREPOCTL_BIN=$(HOST_DIR)/bin/sysrepoctl \ - -DCALL_SYSREPOCFG_BIN=$(HOST_DIR)/bin/sysrepocfg \ + -DCMAKE_BUILD_TYPE=Release \Any reason for passing this ? The cmake-package infrastructure already passes it:
Quoted 6 lines
-e 's#@@CMAKE_BUILD_TYPE@@#$(if $(BR2_ENABLE_DEBUG),Debug,Release)#'
so it's already in the $(HOST_DIR)/share/buildroot/toolchainfile.cmake CMake toolchain file.
Have you encountered a specific issue that makes it needed ?
Is this only done for the target build? I can remember that I saw the host build was done as debug without changing the CMAKE_BUILD_TYPE.
Quoted 7 lines
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
PATCH v2 3/3 package/sysrepo: bump to version 1.3.21
Hi,
Am Sa., 21. Dez. 2019 um 23:22 Uhr schrieb Heiko Thiery <[email protected]>:
Quoted 44 lines
Hi,
Am Sa., 21. Dez. 2019 um 23:00 Uhr schrieb Thomas Petazzoni <[email protected]>:
Quoted 39 lines
Hello,
Quoted 6 lines · On Fri, 20 Dec 2019 14:53:45 +0100 Heiko Thiery <[email protected]> wrote:
From: Heiko Thiery <[email protected]>
This Sysrepo is a complete rewrite of the older versions.
Thus several changes are made in the package to support this new version.
Quoted 7 lines
- several cmake config options dropped
- no systemd service scripts availble in upstream version
- no sysrepod daemon available
- drop patches that are no longer needed
- add new patchSigned-off-by Heiko Thiery <[email protected]>Thanks for the patch. It indeed does simplify quite a few things.
package/sysrepo/sysrepo.mk SYSREPO_DEPENDENCIES = libev libavl libyang pcre protobuf-c host-sysrepo · line 16
Quoted 11 lines
SYSREPO_CONF_OPTS= \package/sysrepo/sysrepo.mk +1
-9- -DIS_DEVELOPER_CONFIGURATION=OFF \ - -DGEN_PYTHON2_TESTS=OFF \ - -DENABLE_TESTS=OFF \ - -DGEN_CPP_BINDINGS=OFF \ - -DGEN_LANGUAGE_BINDINGS=OFF \ - -DGEN_PYTHON_BINDINGS=OFF \ - -DBUILD_CPP_EXAMPLES=OFF \ - -DCALL_SYSREPOCTL_BIN=$(HOST_DIR)/bin/sysrepoctl \ - -DCALL_SYSREPOCFG_BIN=$(HOST_DIR)/bin/sysrepocfg \ + -DCMAKE_BUILD_TYPE=Release \Any reason for passing this ? The cmake-package infrastructure already passes it:
-e 's#@@CMAKE_BUILD_TYPE@@#$(if $(BR2_ENABLE_DEBUG),Debug,Release)#'
Quoted 7 lines
Quoted 4 lines
so it's already in the $(HOST_DIR)/share/buildroot/toolchainfile.cmake CMake toolchain file.
Have you encountered a specific issue that makes it needed ?
Is this only done for the target build? I can remember that I saw the host build was done as debug without changing the
CMAKE_BUILD_TYPE.
Just rechecked it. Without setting the CMAKE_BUILD_TYPE in the package config the target is build as "Release" and the host is build as "Debug" as the default in the sysrepo cmake file.
Is that an expected behavior? Or should the host package also be build as "Release"?
--
Heiko