Skip to content

Commit

Permalink
Patch calico-felix libpcap soname for Openstack
Browse files Browse the repository at this point in the history
This changeset patches calico-felix binary libpcap soname for Debian
and its derived OSes. We switched to RHEL/UBI based go-build system
which links to a different libpcap soname. The actual libpcap ships with
Debian is at 1.x but the soname is still at 0.8. calico-felix binary is
patched during packaging to the older soname. This change also bumps
compat version to v10 that is recommended in [1] for new packages.

[1] https://www.debian.org/doc/manuals/maint-guide/dother.en.html#compat
  • Loading branch information
hjiawei committed Nov 23, 2023
1 parent 408246a commit 982888e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion felix/debian/compat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8
10
4 changes: 4 additions & 0 deletions hack/release/packaging/utils/create-update-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ function do_felix {
# RPM golang build dependencies that is exactly equivalent to our
# containerized builds.
make bin/calico-felix
# Felix is built with RHEL/UBI and links against libpcap.so.1. We need this patchelf
# until Debian changes the soname from .0.8 to .1.
# FIXME remove the following patchelf command once Debian dependency is updated.
patchelf --replace-needed libpcap.so.1 libpcap.so.0.8 bin/calico-felix
# Remove all the files that were added by that build, except for the
# bin/calico-felix binary.
rm -f bin/calico-felix-amd64
Expand Down
2 changes: 1 addition & 1 deletion networking-calico/debian/compat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9
10

0 comments on commit 982888e

Please sign in to comment.