Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: require libyang 2.1.128 #15101

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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], [], [
Expand Down
2 changes: 1 addition & 1 deletion doc/developer/building-frr-for-centos6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion doc/developer/building-frr-for-opensuse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------------------

Expand Down
5 changes: 3 additions & 2 deletions doc/developer/building-frr-for-ubuntu2204.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading