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

fix: Missing GLIBC dynamic dependency makes ovs binary unavailable #3752

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

ty-dc
Copy link
Collaborator

@ty-dc ty-dc commented Jul 23, 2024

Thanks for contributing!

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #3741

Special notes for your reviewer:

@ty-dc
Copy link
Collaborator Author

ty-dc commented Jul 23, 2024

@@ -47,7 +47,7 @@ RUN git checkout ${RDMA_VERSION} && make TARGET_ARCH=${TARGETARCH} \
TARGET_OS=${TARGETOS} build

WORKDIR /src/ovs-cni
RUN mkdir -p build && GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -tags no_openssl -mod vendor -o build/ovs ./cmd/plugin
RUN mkdir -p build && GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -ldflags -v -ldflags="-s -w" -tags no_openssl -mod vendor -o build/ovs ./cmd/plugin

WORKDIR /src/ib-sriov-cni
RUN git checkout ${IB_SRIOV_VERSION} && go mod vendor && mkdir -p build && GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -tags no_openssl -mod vendor -o build/ib-sriov ./cmd/ib-sriov-cni
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guarrentee other binary for ldflags issue

Signed-off-by: tao.yang <[email protected]>
@ty-dc ty-dc temporarily deployed to release-base-images July 24, 2024 01:48 — with GitHub Actions Inactive
@weizhoublue weizhoublue merged commit f144e2f into main Jul 24, 2024
51 of 55 checks passed
@weizhoublue weizhoublue deleted the fix/ovs-build branch July 24, 2024 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants