Package Details: libyang 3.4.2-1

Git Clone URL: https://aur.archlinux.org/libyang.git (read-only, click to copy)
Package Base: libyang
Description: A YANG data modelling language parser and toolkit written (and providing API) in C
Upstream URL: https://github.com/CESNET/libyang
Licenses: BSD
Conflicts: libyang-devel-git, libyang-git
Submitter: leonshaw
Maintainer: k0ste
Last Packager: k0ste
Votes: 6
Popularity: 0.005693
First Submitted: 2018-03-29 02:33 (UTC)
Last Updated: 2024-09-15 09:00 (UTC)

Latest Comments

« First ‹ Previous 1 2

ivoronin commented on 2020-02-09 15:53 (UTC)

@k0ste you should add pkg-config to build-deps

lieter commented on 2020-02-06 08:11 (UTC)

Here's the diff to build 1.0.130:

diff --git .SRCINFO .SRCINFO
index c8db810..a7bd2c6 100644
--- .SRCINFO
+++ .SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = libyang
        pkgdesc = A YANG data modelling language parser and toolkit written (and providing API) in C.
-       pkgver = 1.0.109
-       pkgrel = 2
+       pkgver = 1.0.130
+       pkgrel = 1
        url = https://github.com/CESNET/libyang
        arch = x86_64
        license = BSD
@@ -10,8 +10,8 @@ pkgbase = libyang
        depends = pcre
        conflicts = libyang-git
        conflicts = libyang-devel-git
-       source = https://github.com/CESNET/libyang/archive/v1.0.109.tar.gz
-       sha256sums = 1686a381a8cce775102e60c8eb93f7ba64c6d4ae10591fc05d9f969a07815f60
+       source = https://github.com/CESNET/libyang/archive/v1.0.130.tar.gz
+       sha256sums = c9703079f10fbf7154882562322b4b01764bc7735345da555ca51201b02e536c

 pkgname = libyang

diff --git PKGBUILD PKGBUILD
index eafbaf7..bf54fc6 100644
--- PKGBUILD
+++ PKGBUILD
@@ -2,8 +2,8 @@
 # Contributor: Konstantin Shalygin <k0ste@k0ste.ru>

 pkgname='libyang'
-pkgver='1.0.109'
-pkgrel='2'
+pkgver='1.0.130'
+pkgrel='1'
 pkgdesc='A YANG data modelling language parser and toolkit written (and providing API) in C.'
 url="https://github.com/CESNET/${pkgname}"
 arch=('x86_64')
@@ -13,7 +13,7 @@ makedepends=('cmake')
 checkdepends=('cmocka')
 conflicts=('libyang-git' 'libyang-devel-git')
 source=("${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('1686a381a8cce775102e60c8eb93f7ba64c6d4ae10591fc05d9f969a07815f60')
+sha256sums=('c9703079f10fbf7154882562322b4b01764bc7735345da555ca51201b02e536c')

 prepare() {
   cd "${srcdir}/${pkgname}-${pkgver}"

k0ste commented on 2020-01-23 08:52 (UTC)

@lieter, done.

lieter commented on 2020-01-23 08:47 (UTC)

Hi,

I've added the C++ language bindings to the package with this patch:

diff --git PKGBUILD PKGBUILD
index ab104b8..eafbaf7 100644
--- PKGBUILD
+++ PKGBUILD
@@ -3,7 +3,7 @@

 pkgname='libyang'
 pkgver='1.0.109'
-pkgrel='1'
+pkgrel='2'
 pkgdesc='A YANG data modelling language parser and toolkit written (and providing API) in C.'
 url="https://github.com/CESNET/${pkgname}"
 arch=('x86_64')
@@ -27,7 +27,10 @@ build() {
     -DCMAKE_INSTALL_LIBDIR=lib \
     -DCMAKE_BUILD_TYPE=Release \
     -DENABLE_LYD_PRIV=ON \
-    -DENABLE_BUILD_TESTS=ON
+    -DENABLE_BUILD_TESTS=ON \
+    -DGEN_LANGUAGE_BINDINGS=ON \
+    -DGEN_PYTHON_BINDINGS=OFF \
+    -DGEN_CPP_BINDINGS=ON
   make
 }

Would you be so kind to pull them in?

impatt commented on 2019-11-18 12:34 (UTC)

Hmm, I did not know about base-devel. My mistake.

cfra commented on 2019-11-18 12:13 (UTC)

Whether pkgconf is included in makedepends doesn't make any difference for me when building the package, the resulting .pc file is included either way.

It might not be included in your case because you don't have pkgconf installed.

However it should be installed by the base-devel group which is requirement for building packages from AUR.

I don't think I should include a package from base-devel in my makedepends.

Please let me know if and why you disagree.

impatt commented on 2019-11-18 10:31 (UTC)

Could you add the 'pkgconf' dependency to makedepends? Without this dependency, the libyang.pc file is not added to the package. This leads to problems compiling projects related to the libyang library. Thank you.