You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1.9 KiB

Index: src/github.com/open-policy-agent/opa/Makefile
--- src/github.com/open-policy-agent/opa/Makefile.orig 2021-09-02 17:20:55.000000000 +0200
+++ src/github.com/open-policy-agent/opa/Makefile 2021-09-02 17:28:21.915058000 +0200
@@ -25,7 +25,7 @@
GOLANGCI_LINT_VERSION := v1.40.1
-DOCKER_RUNNING := $(shell docker ps >/dev/null 2>&1 && echo 1 || echo 0)
+DOCKER_RUNNING := 0
# We use root because the windows build, invoked through the ci-go-build-windows
# target, installs the gcc mingw32 cross-compiler.
@@ -39,7 +39,7 @@
DOCKER_FLAGS := --rm
endif
-DOCKER := docker
+DOCKER := true
BIN := opa_$(GOOS)_$(GOARCH)
@@ -103,7 +103,7 @@
.PHONY: go-build
go-build: generate
- $(GO) build $(GO_TAGS) -o $(BIN) -ldflags $(LDFLAGS)
+ $(GO) build $(GO_TAGS) -v -o $(BIN) -ldflags $(LDFLAGS)
.PHONY: go-test
go-test: generate
Index: src/github.com/open-policy-agent/opa/vendor/github.com/bytecodealliance/wasmtime-go/ffi.go
--- src/github.com/open-policy-agent/opa/vendor/github.com/bytecodealliance/wasmtime-go/ffi.go.orig 2021-09-02 17:28:21.915259000 +0200
+++ src/github.com/open-policy-agent/opa/vendor/github.com/bytecodealliance/wasmtime-go/ffi.go 2021-09-02 19:31:42.889872000 +0200
@@ -1,11 +1,14 @@
package wasmtime
// #cgo CFLAGS:-I${SRCDIR}/build/include
-// #cgo !windows LDFLAGS:-lwasmtime -lm -ldl -pthread
+// #cgo linux LDFLAGS:-lwasmtime -lm -ldl
+// #cgo freebsd LDFLAGS:-lwasmtime -lutil -lm
+// #cgo darwin LDFLAGS:-lwasmtime -lm
// #cgo windows CFLAGS:-DWASM_API_EXTERN= -DWASI_API_EXTERN=
// #cgo windows LDFLAGS:-lwasmtime -luserenv -lole32 -lntdll -lws2_32 -lkernel32 -lbcrypt
// #cgo linux,amd64 LDFLAGS:-L${SRCDIR}/build/linux-x86_64
// #cgo linux,arm64 LDFLAGS:-L${SRCDIR}/build/linux-aarch64
+// #cgo freebsd,amd64 LDFLAGS:-L${SRCDIR}/build/freebsd-x86_64
// #cgo darwin,amd64 LDFLAGS:-L${SRCDIR}/build/macos-x86_64
// #cgo windows,amd64 LDFLAGS:-L${SRCDIR}/build/windows-x86_64
// #include <wasm.h>