mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +04:00
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>
16 lines
263 B
Bash
Executable File
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
|