Skip to content

Commit 4f1107a

Browse files
azure-pipelines: install libyang3 instead of libyang1 (#4578)
sonic-buildimage no longer builds the libyang1 debs (libyang_1.0.73, libyang-cpp, python3-yang); it now builds only libyang3. Update the CI deb install steps in azure-pipelines.yml and the dependency list in README.md to install libyang3_*.deb and python3-libyang_*.deb instead, using versionless globs. The libyang-cpp deb has no libyang3 equivalent and is dropped. Updated the deb install lists in azure-pipelines.yml (both Install Debian dependencies steps) and the dependency list in README.md, applying the following mapping: libyang_1.0.73_amd64.deb -> libyang3_*.deb libyang-cpp_1.0.73_amd64.deb -> removed (no libyang3 equivalent) python3-yang_1.0.73_amd64.deb -> python3-libyang_*.deb Versionless globs are used throughout so the CI does not need to track exact package versions. The .semgrep/no-direct-libyang.yml guard rule was left unchanged; it forbids direct import libyang (routing through sonic-yang-mgmt instead) and is not a deb reference. How to verify it In the CI Install Debian dependencies steps, the dpkg -i commands now reference libyang3_*.deb and python3-libyang_*.deb, which match the debs produced by current sonic-buildimage. No libyang1 deb references (libyang_1, libyang-cpp, python3-yang) remain in azure-pipelines.yml or README.md. Part of sonic-net/sonic-buildimage#22385. Signed-off-by: Brad House <bhouse@nexthop.ai>
1 parent 1b6d979 commit 4f1107a

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,8 @@ The sonic-utilities package depends on a number of other packages, many of which
3131
Currently, this list of dependencies is as follows:
3232

3333

34-
- libyang_1.0.73_amd64.deb
35-
- libyang-cpp_1.0.73_amd64.deb
36-
- python3-yang_1.0.73_amd64.deb
37-
- libyang3_3.*_amd64.deb
38-
- python3-libyang_3.*_amd64.deb
34+
- libyang3_*.deb
35+
- python3-libyang_*.deb
3936
- redis_dump_load-1.1-py3-none-any.whl
4037
- sonic_py_common-1.0-py3-none-any.whl
4138
- sonic_config_engine-1.0-py3-none-any.whl

azure-pipelines.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,8 @@ stages:
8181
sudo dpkg -i libnl-genl-3-200_*.deb
8282
sudo dpkg -i libnl-route-3-200_*.deb
8383
sudo dpkg -i libnl-nf-3-200_*.deb
84-
sudo dpkg -i libyang_1.0.73_amd64.deb
85-
sudo dpkg -i libyang-cpp_1.0.73_amd64.deb
86-
sudo dpkg -i python3-yang_1.0.73_amd64.deb
87-
sudo dpkg -i libyang3_3.*_amd64.deb
88-
sudo dpkg -i python3-libyang_3.*_amd64.deb
84+
sudo dpkg -i libyang3_*.deb
85+
sudo dpkg -i python3-libyang_*.deb
8986
workingDirectory: $(Pipeline.Workspace)/target/debs/bookworm/
9087
displayName: 'Install Debian dependencies'
9188
@@ -235,9 +232,8 @@ stages:
235232
sudo dpkg -i libnl-genl-3-200_*.deb
236233
sudo dpkg -i libnl-route-3-200_*.deb
237234
sudo dpkg -i libnl-nf-3-200_*.deb
238-
sudo dpkg -i libyang_1.0.73_amd64.deb
239-
sudo dpkg -i libyang-cpp_1.0.73_amd64.deb
240-
sudo dpkg -i python3-yang_1.0.73_amd64.deb
235+
sudo dpkg -i libyang3_*.deb
236+
sudo dpkg -i python3-libyang_*.deb
241237
workingDirectory: $(Pipeline.Workspace)/target/debs/bookworm/
242238
displayName: 'Install Debian dependencies'
243239

0 commit comments

Comments
 (0)