updates gozstd dep with ppc64le lib

This commit is contained in:
f41gh7 2024-05-14 14:19:20 +02:00
parent 6a6e34ab8e
commit 116b1d47e4
No known key found for this signature in database
GPG key ID: 4558311CF775EC72
6 changed files with 18 additions and 1 deletions

2
go.mod
View file

@ -135,3 +135,5 @@ require (
k8s.io/klog/v2 v2.120.1 // indirect
k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 // indirect
)
replace github.com/valyala/gozstd => github.com/f41gh7/gozstd v1.12.1-0.20240514104918-c42dd7d06806

2
go.sum
View file

@ -181,6 +181,8 @@ github.com/envoyproxy/go-control-plane v0.12.0/go.mod h1:ZBTaoJ23lqITozF0M6G4/Ir
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A=
github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew=
github.com/f41gh7/gozstd v1.12.1-0.20240514104918-c42dd7d06806 h1:I/RYwTp+yGGduvuktDO6tBf2et+XgmTszXBDUxNMfVQ=
github.com/f41gh7/gozstd v1.12.1-0.20240514104918-c42dd7d06806/go.mod h1:y5Ew47GLlP37EkTB+B4s7r6A5rdaeB7ftbl9zoYiIPQ=
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb h1:IT4JYU7k4ikYg1SCxNI1/Tieq/NFvh6dzLdgi7eu0tM=
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb/go.mod h1:bH6Xx7IW64qjjJq8M2u4dxNaBiDfKK+z/3eGDpXEQhc=
github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM=

View file

@ -21,6 +21,8 @@ else ifeq ($(GOOS_GOARCH),linux_arm)
TARGET=arm-linux-gnueabi GOARCH=arm GOOS=linux $(MAKE) package-arch
else ifeq ($(GOOS_GOARCH),linux_arm64)
TARGET=aarch64-linux GOARCH=arm64 GOOS=linux $(MAKE) package-arch
else ifeq ($(GOOS_GOARCH),linux_ppc64le)
TARGET=x86_64-linux GOARCH=ppc64le GOOS=linux $(MAKE) package-arch
else ifeq ($(GOOS_GOARCH),linux_musl_amd64)
TARGET=x86_64-linux-musl GOARCH=amd64 GOOS=linux_musl $(MAKE) package-arch
else ifeq ($(GOOS_GOARCH),linux_musl_arm64)
@ -60,6 +62,7 @@ release:
GOOS=linux GOARCH=amd64 $(MAKE) libzstd.a
GOOS=linux GOARCH=arm64 $(MAKE) libzstd.a
GOOS=linux GOARCH=arm $(MAKE) libzstd.a
GOOS=linux GOARCH=ppc64le $(MAKE) libzstd.a
GOOS=linux_musl GOARCH=amd64 $(MAKE) libzstd.a
GOOS=linux_musl GOARCH=arm64 $(MAKE) libzstd.a
GOOS=darwin GOARCH=arm64 $(MAKE) libzstd.a

Binary file not shown.

View file

@ -0,0 +1,9 @@
//go:build !musl
// +build !musl
package gozstd
/*
#cgo LDFLAGS: ${SRCDIR}/libzstd_linux_ppc64le.a
*/
import "C"

3
vendor/modules.txt vendored
View file

@ -571,7 +571,7 @@ github.com/valyala/fastrand
# github.com/valyala/fasttemplate v1.2.2
## explicit; go 1.12
github.com/valyala/fasttemplate
# github.com/valyala/gozstd v1.20.1
# github.com/valyala/gozstd v1.20.1 => github.com/f41gh7/gozstd v1.12.1-0.20240514104918-c42dd7d06806
## explicit; go 1.12
github.com/valyala/gozstd
# github.com/valyala/histogram v1.2.0
@ -885,3 +885,4 @@ k8s.io/klog/v2/internal/sloghandler
# k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0
## explicit; go 1.18
k8s.io/utils/clock
# github.com/valyala/gozstd => github.com/f41gh7/gozstd v1.12.1-0.20240514104918-c42dd7d06806