]> git.puffer.fish Git - matthieu/frr.git/commitdiff
build: require libyang 2.1.128
authorChristian Hopps <chopps@labn.net>
Sat, 6 Jan 2024 11:55:04 +0000 (06:55 -0500)
committerChristian Hopps <chopps@labn.net>
Sat, 6 Jan 2024 11:55:04 +0000 (06:55 -0500)
Update building docs to reflect this as well.

Signed-off-by: Christian Hopps <chopps@labn.net>
configure.ac
doc/developer/building-frr-for-centos6.rst
doc/developer/building-frr-for-opensuse.rst
doc/developer/building-frr-for-ubuntu2204.rst

index a3b0370ec05623c7b68616bd6b62c3de7fd881d3..1f87c9066d699c0548ff5ecd39dee55b43585ead 100644 (file)
@@ -1954,12 +1954,8 @@ dnl ---------------
 dnl libyang
 dnl ---------------
 PKG_CHECK_MODULES([LIBYANG], [libyang >= 2.1.128], , [
-  AC_MSG_WARN([Recommended libyang version is >= 2.1.128.])
-])
-
-PKG_CHECK_MODULES([LIBYANG], [libyang >= 2.0.0], , [
-  AC_MSG_ERROR([libyang (>= 2.0.0) was not found on your system.])
-])
+AC_MSG_ERROR([m4_normalize([libyang >= 2.1.128 is required, and was not found on your system.
+Pleaes consult doc/developer/building-libyang.rst for instructions on installing or building libyang.])])])
 ac_cflags_save="$CFLAGS"
 CFLAGS="$CFLAGS $LIBYANG_CFLAGS"
 AC_CHECK_MEMBER([struct lyd_node.priv], [], [
index 233d089f79571cc781232b860df196874122c95d..fb796e491e81f00c12065784ce7ac6ba24d1bdaf 100644 (file)
@@ -124,7 +124,7 @@ Install libyang and its dependencies:
    sudo yum install pcre-devel doxygen cmake
    git clone https://github.com/CESNET/libyang.git
    cd libyang
-   git checkout 090926a89d59a3c4000719505d563aaf6ac60f2
+   git checkout v2.1.128
    mkdir build ; cd build
    cmake -DENABLE_LYD_PRIV=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -D CMAKE_BUILD_TYPE:String="Release" ..
    make build-rpm
index 3ff445bcd0621e5430b950e443c8c5712b1bc2f3..6e9913de48db569db11c2b19ae1d439a3a2f400a 100644 (file)
@@ -13,11 +13,13 @@ Installing Dependencies
    zypper in  git autoconf automake libtool make   \
      readline-devel texinfo net-snmp-devel groff pkgconfig libjson-c-devel\
      pam-devel python3-pytest bison flex c-ares-devel python3-devel\
-     python3-Sphinx perl patch libcap-devel libyang-devel \
+     python3-Sphinx perl patch libcap-devel \
      libelf-devel libunwind-devel protobuf-c
 
 .. include:: building-libunwind-note.rst
 
+.. include:: building-libyang.rst
+
 Building & Installing FRR
 -------------------------
 
index 4a8de280b52f3abd455ae38b2340e761bc9f488b..3ea625716d8fe779d966a99b77b918e27ee1997c 100644 (file)
@@ -16,11 +16,12 @@ Installing Dependencies
       libc-ares-dev python3-dev python3-sphinx \
       install-info build-essential libsnmp-dev perl \
       libcap-dev libelf-dev libunwind-dev \
-      protobuf-c-compiler libprotobuf-c-dev \
-      libyang2 libyang2-dev
+      protobuf-c-compiler libprotobuf-c-dev
 
 .. include:: building-libunwind-note.rst
 
+.. include:: building-libyang.rst
+
 GRPC
 ^^^^
 If GRPC is enabled using ``--enable-grpc`` the following packages should be