Package Details: sysrepo 2.2.170-1

Git Clone URL: https://aur.archlinux.org/sysrepo.git (read-only, click to copy)
Package Base: sysrepo
Description: YANG-based configuration and operational state data store for Unix/Linux applications
Upstream URL: http://www.sysrepo.org/
Licenses: BSD-3-Clause
Submitter: kyechou
Maintainer: None
Last Packager: TrialnError
Votes: 3
Popularity: 0.002680
First Submitted: 2019-04-15 05:54 (UTC)
Last Updated: 2024-06-05 21:24 (UTC)

Latest Comments

kyechou commented on 2019-05-17 17:09 (UTC)

Thanks @lieter. I just updated.

lieter commented on 2019-05-17 15:22 (UTC)

if you want to build python 3 bindings instead of the python 2 bindings, use this patch:

diff --git a/003-build-python-3-bindings.patch b/003-build-python-3-bindings.patch
new file mode 100644
index 0000000..377e026
--- /dev/null
+++ b/003-build-python-3-bindings.patch
@@ -0,0 +1,16 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b50df76..a14e409 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -20,9 +20,9 @@
+ set(GEN_CPP_BINDINGS 1 CACHE BOOL "Enable C++ bindings.")
+ set(BUILD_CPP_EXAMPLES 1 CACHE BOOL "Build C++ examples.")
+ set(GEN_JAVA_BINDINGS 0 CACHE BOOL "Enable Java bindings.")
+-set(GEN_PYTHON_VERSION "2" CACHE STRING "Python version")
++set(GEN_PYTHON_VERSION "3" CACHE STRING "Python version")
+ set(GEN_LUA_VERSION "5.1" CACHE STRING "Lua version")
+-set(GEN_PYTHON2_TESTS 1 CACHE BOOL "Enable Python2 tests.")
++set(GEN_PYTHON2_TESTS 0 CACHE BOOL "Enable Python2 tests.")
+ 
+ # set default build type if not specified by user
+ if(NOT CMAKE_BUILD_TYPE)
diff --git a/PKGBUILD b/PKGBUILD
index 93456bd..ba251e3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=sysrepo
 pkgver=0.7.7
-pkgrel=2
+pkgrel=3
 pkgdesc='YANG-based configuration and operational state data store for Unix/Linux applications'
 depends=('libyang' 'protobuf-c' 'libev' 'libredblack' 'libssh')
 optdepends=('netopeer2: for remote management via NETCONF')
@@ -15,11 +15,13 @@ conflicts=('sysrepo')
 source=("https://github.com/sysrepo/sysrepo/archive/v$pkgver.tar.gz"
         '000-disable-lua-bindings.patch'
         '001-fix-default-permissions.patch'
-        '002-disable-uid-check.patch')
+        '002-disable-uid-check.patch'
+        '003-build-python-3-bindings.patch')
 sha256sums=('2bf8cb4d810d19231eba1e549f58f3a0ce068d170a5e7b212b927396098560e4'
             '6b8b4e6fb9b9ca1818720b01ebdcd291a7db8436a0a1f953ae360e6e1f6dbecd'
             '3ee0b97d0bc157f62a76eca67d6d4d72e804c800accf633198c517b56148a6f1'
-            'e831980732a96a26d3056077ff12f3c9fad687a0f490e0345f4961f196c29ac9')
+            'e831980732a96a26d3056077ff12f3c9fad687a0f490e0345f4961f196c29ac9'
+            '61e27aeb19a7ac8f7d1b37bbe688f4d82174c0c8321be9cd9aaae9a626b488d6')

 prepare() {
     mkdir -p "$srcdir/$pkgname-$pkgver/build-pkgtool"
@@ -27,6 +29,7 @@ prepare() {
     cd "$srcdir/$pkgname-$pkgver"
     patch -p1 < "$srcdir/000-disable-lua-bindings.patch"
     patch -p1 < "$srcdir/001-fix-default-permissions.patch"
+    patch -p1 < "$srcdir/003-build-python-3-bindings.patch"
     sed -i -e 's,/var/run/,/run/,' \
         "$srcdir/$pkgname-$pkgver/deploy/systemd/"*.service
 }