mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
sysrepo: update to 1.4.2
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -335,7 +335,7 @@ install (FILES ${INTERNAL_YANGS} DESTINATION ${INTERNAL_SCHEMA_SEARCH_DIR})
|
||||
|
||||
# install NACM YANG module
|
||||
if(ENABLE_NACM)
|
||||
- INSTALL_YANG("ietf-netconf-acm" "@2018-02-14" "644")
|
||||
+# INSTALL_YANG("ietf-netconf-acm" "@2018-02-14" "644")
|
||||
endif(ENABLE_NACM)
|
||||
|
||||
# generate and install pkg-config file
|
||||
@@ -356,9 +356,9 @@ if(WITH_SYSTEMD)
|
||||
FILES_MATCHING PATTERN "*.service")
|
||||
endif()
|
||||
|
||||
-INSTALL_YANG("ietf-netconf-notifications" "" "666")
|
||||
-INSTALL_YANG("nc-notifications" "" "666")
|
||||
-INSTALL_YANG("notifications" "" "666")
|
||||
+#INSTALL_YANG("ietf-netconf-notifications" "" "666")
|
||||
+#INSTALL_YANG("nc-notifications" "" "666")
|
||||
+#INSTALL_YANG("notifications" "" "666")
|
||||
|
||||
# uninstall
|
||||
add_custom_target(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_MODULE_PATH}/uninstall.cmake")
|
||||
@@ -1,23 +0,0 @@
|
||||
--- 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));
|
||||
@@ -1,28 +0,0 @@
|
||||
--- a/src/common/sr_utils.c
|
||||
+++ b/src/common/sr_utils.c
|
||||
@@ -506,14 +506,24 @@ sr_fd_set_nonblock(int fd)
|
||||
|
||||
#if defined(SO_PEERCRED)
|
||||
|
||||
+#if defined(__GLIBC__)
|
||||
#if !defined(SCM_CREDENTIALS)
|
||||
-/* struct ucred is ifdefined behind __USE_GNU, but __USE_GNU is not defined */
|
||||
struct ucred {
|
||||
pid_t pid; /* process ID of the sending process */
|
||||
uid_t uid; /* user ID of the sending process */
|
||||
gid_t gid; /* group ID of the sending process */
|
||||
};
|
||||
#endif /* !defined(SCM_CREDENTIALS) */
|
||||
+#else
|
||||
+#if !defined(_GNU_SOURCE)
|
||||
+struct ucred {
|
||||
+ pid_t pid; /* process ID of the sending process */
|
||||
+ uid_t uid; /* user ID of the sending process */
|
||||
+ gid_t gid; /* group ID of the sending process */
|
||||
+};
|
||||
+/* struct ucred is ifdefined behind __USE_GNU, but __USE_GNU is not defined */
|
||||
+#endif /* !defined(__GNU_SOURCE) */
|
||||
+#endif /* defined(__GLIBC__) */
|
||||
|
||||
int
|
||||
sr_get_peer_eid(int fd, uid_t *uid, gid_t *gid)
|
||||
Reference in New Issue
Block a user