forked from Mirror/frr
build: require libyang 2.1.128
Update building docs to reflect this as well. Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
4d29c17407
commit
db3ac9d4f3
|
@ -1954,12 +1954,8 @@ dnl ---------------
|
||||||
dnl libyang
|
dnl libyang
|
||||||
dnl ---------------
|
dnl ---------------
|
||||||
PKG_CHECK_MODULES([LIBYANG], [libyang >= 2.1.128], , [
|
PKG_CHECK_MODULES([LIBYANG], [libyang >= 2.1.128], , [
|
||||||
AC_MSG_WARN([Recommended libyang version is >= 2.1.128.])
|
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.])])])
|
||||||
|
|
||||||
PKG_CHECK_MODULES([LIBYANG], [libyang >= 2.0.0], , [
|
|
||||||
AC_MSG_ERROR([libyang (>= 2.0.0) was not found on your system.])
|
|
||||||
])
|
|
||||||
ac_cflags_save="$CFLAGS"
|
ac_cflags_save="$CFLAGS"
|
||||||
CFLAGS="$CFLAGS $LIBYANG_CFLAGS"
|
CFLAGS="$CFLAGS $LIBYANG_CFLAGS"
|
||||||
AC_CHECK_MEMBER([struct lyd_node.priv], [], [
|
AC_CHECK_MEMBER([struct lyd_node.priv], [], [
|
||||||
|
|
|
@ -124,7 +124,7 @@ Install libyang and its dependencies:
|
||||||
sudo yum install pcre-devel doxygen cmake
|
sudo yum install pcre-devel doxygen cmake
|
||||||
git clone https://github.com/CESNET/libyang.git
|
git clone https://github.com/CESNET/libyang.git
|
||||||
cd libyang
|
cd libyang
|
||||||
git checkout 090926a89d59a3c4000719505d563aaf6ac60f2
|
git checkout v2.1.128
|
||||||
mkdir build ; cd build
|
mkdir build ; cd build
|
||||||
cmake -DENABLE_LYD_PRIV=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -D CMAKE_BUILD_TYPE:String="Release" ..
|
cmake -DENABLE_LYD_PRIV=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -D CMAKE_BUILD_TYPE:String="Release" ..
|
||||||
make build-rpm
|
make build-rpm
|
||||||
|
|
|
@ -13,11 +13,13 @@ Installing Dependencies
|
||||||
zypper in git autoconf automake libtool make \
|
zypper in git autoconf automake libtool make \
|
||||||
readline-devel texinfo net-snmp-devel groff pkgconfig libjson-c-devel\
|
readline-devel texinfo net-snmp-devel groff pkgconfig libjson-c-devel\
|
||||||
pam-devel python3-pytest bison flex c-ares-devel python3-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
|
libelf-devel libunwind-devel protobuf-c
|
||||||
|
|
||||||
.. include:: building-libunwind-note.rst
|
.. include:: building-libunwind-note.rst
|
||||||
|
|
||||||
|
.. include:: building-libyang.rst
|
||||||
|
|
||||||
Building & Installing FRR
|
Building & Installing FRR
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
|
|
|
@ -16,11 +16,12 @@ Installing Dependencies
|
||||||
libc-ares-dev python3-dev python3-sphinx \
|
libc-ares-dev python3-dev python3-sphinx \
|
||||||
install-info build-essential libsnmp-dev perl \
|
install-info build-essential libsnmp-dev perl \
|
||||||
libcap-dev libelf-dev libunwind-dev \
|
libcap-dev libelf-dev libunwind-dev \
|
||||||
protobuf-c-compiler libprotobuf-c-dev \
|
protobuf-c-compiler libprotobuf-c-dev
|
||||||
libyang2 libyang2-dev
|
|
||||||
|
|
||||||
.. include:: building-libunwind-note.rst
|
.. include:: building-libunwind-note.rst
|
||||||
|
|
||||||
|
.. include:: building-libyang.rst
|
||||||
|
|
||||||
GRPC
|
GRPC
|
||||||
^^^^
|
^^^^
|
||||||
If GRPC is enabled using ``--enable-grpc`` the following packages should be
|
If GRPC is enabled using ``--enable-grpc`` the following packages should be
|
||||||
|
|
Loading…
Reference in a new issue