Files
Alexandru Ardelean f1e040104b libyang-legacy: split a v3 ABI compat package from libyang
Build a second package from the same libyang 3.13.6 tarball, so
consumers bound to the v3 ABI keep working once libyang moves to 5.x.
It ships only /usr/lib/libyang.so.3* and stages its headers, library
and .pc under /usr/lib/libyang-legacy to avoid colliding with libyang.

All in-tree consumers are switched to it here; the commits that follow
move libnetconf2, sysrepo and netopeer2 back to +libyang as their
upstream releases gain v5 support. frr stays on the legacy ABI.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-10-07 16:12:29 +03:00

16 lines
263 B
Bash
Executable File

#!/bin/sh
case "$1" in
libyang-legacy)
# Runtime-only; the unversioned symlink belongs to libyang 5.x.
[ -e /usr/lib/libyang.so.3 ] || {
echo "libyang.so.3 not found" >&2
exit 1
}
;;
*)
echo "Unsupported test target: $1" >&2
exit 1
;;
esac