]> git.puffer.fish Git - matthieu/frr.git/commit
docker: build libyang2 along with FRR
authorQuentin Young <qlyoung@nvidia.com>
Sun, 29 Aug 2021 23:33:34 +0000 (19:33 -0400)
committerQuentin Young <qlyoung@nvidia.com>
Mon, 30 Aug 2021 15:38:01 +0000 (11:38 -0400)
commit661d41c183597dfaf3ed972822e3d94c48ab5784
tree7dfe8a551c4b90907be54ee38571a02d4c14df25
parent26bf593efba77bebd3c6dbfab2d9ac8542d039be
docker: build libyang2 along with FRR

Alpine images have been broken for some time because libyang2 is not
available in Alpine. This patch updates our Dockerfile to build a
libyang2 APK and install it into the image to satisfy FRR's libyang2
dependency.

Unfortunately, libyang2 erroneously includes an internal header from
glibc, making it dependent on glibc to build. FRR's official Docker
images are based on Alpine, which only offers musl libc. Until libyang2
fixes this problem, the libyang2 source that is installed in this image
is a patched version that is compatible with musl libc and not an
official version.

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
alpine/APKBUILD.in
docker/alpine/Dockerfile
docker/alpine/libyang/10-remove-non-standard-headers.patch [new file with mode: 0644]
docker/alpine/libyang/11-utest-dont-parse-dlerror.patch [new file with mode: 0644]
docker/alpine/libyang/APKBUILD [new file with mode: 0755]