Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add depends to p4rt debian package #4

Merged
merged 2 commits into from
Mar 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions p4rt_app/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,25 @@ pkg_tar(
visibility = ["//visibility:private"],
)

# Here's how to generate the list of Debian packages that contain the shared
# libraries that the p4rt binary depends on. It's probably better to manually
# manage the "depends" list in p4rt_deb, but this can help in debugging when
# a dependency (or transitive dependency) changes.
#
# ldd bazel-out/k8-fastbuild/bin/p4rt_app/p4rt | \
# sed "s/^[[:space:]]*\([^ ]*\.so[^ ]*\).*$/\1/" | \
# xargs -n1 -I{} bash -c "dpkg -S {} 2>/dev/null || true" | \
# cut -d: -f1 | \
# sort -u
#
pkg_deb(
name = "p4rt_deb",
architecture = "amd64",
data = ":p4rt_binaries",
depends = [
"libswsscommon",
"libgmpxx4ldbl",
],
description = "P4RT service",
maintainer = p4rt_maintainer,
package = "sonic-p4rt",
Expand All @@ -82,6 +97,9 @@ pkg_deb(
name = "p4rt_dbg_deb",
architecture = "amd64",
data = ":p4rt_debug",
depends = [
"sonic-p4rt",
],
description = "P4RT service debug symbols",
maintainer = p4rt_maintainer,
package = "sonic-p4rt-dbgsym",
Expand Down