From 910b50f85615338505bb98f5922eb87cfdad7d3a Mon Sep 17 00:00:00 2001 From: John Dorman <427295+boostchicken@users.noreply.github.com> Date: Mon, 6 Mar 2023 23:01:14 -0800 Subject: [PATCH] Update podman.Makefile.UDM-SE.patch --- .../build/podman.Makefile.UDM-SE.patch | 41 +++++++++++-------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/podman-update/build/podman.Makefile.UDM-SE.patch b/podman-update/build/podman.Makefile.UDM-SE.patch index 86daef3..70f6042 100644 --- a/podman-update/build/podman.Makefile.UDM-SE.patch +++ b/podman-update/build/podman.Makefile.UDM-SE.patch @@ -1,19 +1,21 @@ diff --git a/Makefile b/Makefile -index 15d6d9fb6..8b44da6ae 100644 ---- a/Makefile -+++ b/Makefile -@@ -65,7 +65,7 @@ SOURCES = $(shell find . -path './.*' -prune -o \( -name '*.go' -a ! -name '*_te - - BUILDFLAGS := -mod=vendor $(BUILDFLAGS) - +--- Makefile ++++ Makefile +@@ -75,9 +75,9 @@ + # newer than our target (bin/podman{,-remote}), a rebuild is + # triggered. + SOURCES = $(shell find . -path './.*' -prune -o \( \( -name '*.go' -o -name '*.c' \) -a ! -name '*_test.go' \) -print) + -BUILDTAGS_CROSS ?= containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_overlay -+BUILDTAGS_CROSS ?= containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper seccomp $(shell hack/systemd_tag.sh) ++BUILDTAGS_CROSS ?= containers_image_openpgp exclude_graphdriver_btrfs btrfs_noversion exclude_graphdriver_devicemapper seccomp apparmor systemd libdm_no_deferred_remove CONTAINER_RUNTIME := $(shell command -v podman 2> /dev/null || echo docker) OCI_RUNTIME ?= "" - -@@ -143,16 +143,7 @@ export PATH := $(PATH):$(GOBIN) - GOMD2MAN ?= $(shell command -v go-md2man || echo '$(GOBIN)/go-md2man') - + + # The 'sort' below is crucial: without it, 'make docs' behaves differently +@@ -141,20 +141,9 @@ + + GOMD2MAN ?= $(shell command -v go-md2man || echo './test/tools/build/go-md2man') + CROSS_BUILD_TARGETS := \ - bin/podman.cross.linux.amd64 \ - bin/podman.cross.linux.ppc64le \ @@ -24,16 +26,21 @@ index 15d6d9fb6..8b44da6ae 100644 - bin/podman.cross.linux.mips \ - bin/podman.cross.linux.mipsle \ - bin/podman.cross.linux.mips64 \ -- bin/podman.cross.linux.mips64le - +- bin/podman.cross.linux.mips64le \ +- bin/podman.cross.freebsd.amd64 \ +- bin/podman.cross.freebsd.arm64 + # Dereference variable $(1), return value if non-empty, otherwise raise an error. err_if_empty = $(if $(strip $($(1))),$(strip $($(1))),$(error Required variable $(1) value is undefined, whitespace, or empty)) -@@ -370,7 +361,7 @@ bin/podman.cross.%: .gopathok + +@@ -419,9 +408,9 @@ + bin/podman.cross.%: TARGET="$*"; \ GOOS="$${TARGET%%.*}"; \ GOARCH="$${TARGET##*.}"; \ - CGO_ENABLED=0 \ -+ CGO_ENABLED=1 \ ++ CGO_ENABLED1 \ $(GO) build \ $(BUILDFLAGS) \ - -gcflags '$(GCFLAGS)' \ + $(GO_LDFLAGS) '$(LDFLAGS_PODMAN)' \ + -tags '$(BUILDTAGS_CROSS)' \