From eff9ade04a6b291bca7ae83bdc2dc20ae061690d Mon Sep 17 00:00:00 2001 From: Sachin Holla <51310506+sachinholla@users.noreply.github.com> Date: Mon, 11 Jan 2021 22:03:06 +0530 Subject: [PATCH] [sonic-mgmt-framework]: Resolve libyang dependency for mgmt builds (#214) Second version of libyang (v1.0.184) has been introduced recently. Changed PR build scripts of sonic-mgmt-common, sonic-mgmt-framework and sonic-telemetry repos to explicitly pick old libyang 1.0.73. --- scripts/common/sonic-mgmt-common-build/build.sh | 2 +- scripts/common/sonic-mgmt-framework-build/build.sh | 2 +- scripts/common/sonic-telemetry-build/build.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/common/sonic-mgmt-common-build/build.sh b/scripts/common/sonic-mgmt-common-build/build.sh index 6f5ac35bae03..e20fb32df194 100755 --- a/scripts/common/sonic-mgmt-common-build/build.sh +++ b/scripts/common/sonic-mgmt-common-build/build.sh @@ -14,7 +14,7 @@ sudo sed -ri 's/redis-server.sock/redis.sock/' /etc/redis/redis.conf sudo service redis-server start # LIBYANG -sudo dpkg -i buildimage/target/debs/${DISTRO}/libyang*.deb +sudo dpkg -i buildimage/target/debs/${DISTRO}/libyang*1.0.73*.deb pushd sonic-mgmt-common diff --git a/scripts/common/sonic-mgmt-framework-build/build.sh b/scripts/common/sonic-mgmt-framework-build/build.sh index 5cc66bfb49a2..1cf39560bd38 100755 --- a/scripts/common/sonic-mgmt-framework-build/build.sh +++ b/scripts/common/sonic-mgmt-framework-build/build.sh @@ -12,7 +12,7 @@ sudo sed -ri 's/redis-server.sock/redis.sock/' /etc/redis/redis.conf sudo service redis-server start # LIBYANG -sudo dpkg -i buildimage/target/debs/${DISTRO}/libyang*.deb +sudo dpkg -i buildimage/target/debs/${DISTRO}/libyang*1.0.73*.deb # Install from "requirement" files in sonic-mgmt-framework/tools/test directory. pushd sonic-mgmt-framework/tools/test diff --git a/scripts/common/sonic-telemetry-build/build.sh b/scripts/common/sonic-telemetry-build/build.sh index 762cb8957c29..69ddc21863af 100755 --- a/scripts/common/sonic-telemetry-build/build.sh +++ b/scripts/common/sonic-telemetry-build/build.sh @@ -11,7 +11,7 @@ sudo sed -ri 's/redis-server.sock/redis.sock/' /etc/redis/redis.conf sudo service redis-server start # Install libyang -sudo dpkg -i buildimage/target/debs/buster/libyang*.deb +sudo dpkg -i buildimage/target/debs/buster/libyang*1.0.73*.deb # Build sonic-mgmt-common first