Skip to content

libyang3: install libyang3 debs instead of libyang1#189

Open
bhouse-nexthop wants to merge 1 commit into
sonic-net:masterfrom
bhouse-nexthop:bhouse.libyang3-debs
Open

libyang3: install libyang3 debs instead of libyang1#189
bhouse-nexthop wants to merge 1 commit into
sonic-net:masterfrom
bhouse-nexthop:bhouse.libyang3-debs

Conversation

@bhouse-nexthop
Copy link
Copy Markdown

@bhouse-nexthop bhouse-nexthop commented May 31, 2026

Why I did it

sonic-buildimage no longer builds the legacy libyang1 debs (libyang_1.0.73, libyang-cpp, python3-yang); it now builds only libyang3 (libyang3, python3-libyang). The prebuilt-deb references here would break once libyang1 is gone.

Part of the libyang3 migration tracked in sonic-net/sonic-buildimage#22385.

How I did it

  • Dockerfile.common.prod — install the libyang3 runtime deb from /debs via a versionless glob (libyang3_*.deb).
  • copy.sh / dependencies.conf — the sonic-build artifacts API requires an exact artifact filename (wildcard target= does not resolve), so these name the concrete libyang3_3.12.2-1 deb, consistent with every other version-pinned dependency in these files. copy.sh also moves the libyang fetch to the bookworm artifact path, since libyang3 is not built for buster.

These pinned references will need a bump when libyang3's version changes — exactly as the other pinned debs in these files already do; only the Dockerfile install uses a versionless glob.

How to verify it

libyang3_3.12.2-1_amd64.deb is published on current sonic-buildimage master (bookworm) and downloads via the artifacts API; the Docker build installs it through the /debs/libyang3_*.deb glob.

Description for the changelog

libyang3: install libyang3 instead of libyang1 (Dockerfile glob + version-pinned artifact references).

@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

sonic-buildimage no longer builds the libyang1 debs (libyang_1.0.73,
libyang-cpp, python3-yang); it now builds only libyang3.

- Dockerfile.common.prod: install the libyang3 runtime deb via a
  versionless glob (libyang3_*.deb).
- copy.sh / dependencies.conf: the sonic-build artifacts API requires an
  exact filename (wildcards are not resolved), so these name the concrete
  libyang3 deb (libyang3_3.12.2-1), consistent with every other pinned
  dependency in these files. copy.sh also moves the libyang fetch to the
  bookworm path, since libyang3 is not built for buster.

Part of sonic-net/sonic-buildimage#22385.

Signed-off-by: Brad House <bhouse@nexthop.ai>
@bhouse-nexthop bhouse-nexthop force-pushed the bhouse.libyang3-debs branch from d55bbdc to f6604b1 Compare May 31, 2026 14:26
@mssonicbld
Copy link
Copy Markdown

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants