From e1114f03ce4cb1b54528a390afd72cedf02fbe3f Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Mon, 31 Jul 2023 14:55:52 -0400 Subject: [PATCH] do not redefine gobuild for eln Signed-off-by: Lokesh Mandvekar --- rpm/podman.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm/podman.spec b/rpm/podman.spec index ba000f1767..fc8c14e6eb 100644 --- a/rpm/podman.spec +++ b/rpm/podman.spec @@ -12,7 +12,7 @@ # until that's fixed. # c9s bz: https://bugzilla.redhat.com/show_bug.cgi?id=2227328 # c8s bz: https://bugzilla.redhat.com/show_bug.cgi?id=2227331 -%if %{defined rhel} +%if %{defined rhel} && !%{defined eln} %define gobuild(o:) go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl ${BUILDTAGS:-}" -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**}; # python3 dep conditional for rhel8 %if %{?rhel} == 8