mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
sysrepo: Update to 0.7.8
Makefile cleanups for consistency between packages. Placed libsysrepo in Libraries instead of Utilities. Removed InstallDev as it is implied by CMAKE_INSTALL. Added .patch at the end of patch files. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
23
net/sysrepo/patches/004-disable-sysrepod-autostart.patch
Normal file
23
net/sysrepo/patches/004-disable-sysrepod-autostart.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
--- a/src/clientlib/client_library.c
|
||||
+++ b/src/clientlib/client_library.c
|
||||
@@ -396,13 +396,13 @@ sr_connect(const char *app_name, const sr_conn_options_t opts, sr_conn_ctx_t **c
|
||||
if (opts & SR_CONN_DAEMON_REQUIRED) {
|
||||
if ((opts & SR_CONN_DAEMON_START) && (0 == getuid())) {
|
||||
/* sysrepo daemon start requested and process is running under root privileges */
|
||||
- SR_LOG_DBG_MSG("Sysrepo daemon not detected, starting it.");
|
||||
- ret = system("sysrepod");
|
||||
- if (0 == ret) {
|
||||
- SR_LOG_INF_MSG("Sysrepo daemon has been started.");
|
||||
- } else {
|
||||
- SR_LOG_WRN("Unable to start sysrepo daemon, error code=%d.", ret);
|
||||
- }
|
||||
+ //SR_LOG_DBG_MSG("Sysrepo daemon not detected, starting it.");
|
||||
+ //ret = system("sysrepod");
|
||||
+ //if (0 == ret) {
|
||||
+ // SR_LOG_INF_MSG("Sysrepo daemon has been started.");
|
||||
+ //} else {
|
||||
+ // SR_LOG_WRN("Unable to start sysrepo daemon, error code=%d.", ret);
|
||||
+ //}
|
||||
/* retry to connect again in any case */
|
||||
rc = cl_socket_connect(connection, SR_DAEMON_SOCKET);
|
||||
CHECK_RC_LOG_GOTO(rc, cleanup, "Unable to connect to sysrepod: %s.", sr_strerror(rc));
|
||||
Reference in New Issue
Block a user