From d11385cd0754753bc8a4305c52efc1018c325fb5 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 5 Oct 2021 15:34:53 -0700 Subject: [PATCH] - Add -buildmode pie to composer-cli-tests LDFLAGS Related: rhbz#2010519 --- weldr-client.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/weldr-client.spec b/weldr-client.spec index df02df7..1893f91 100644 --- a/weldr-client.spec +++ b/weldr-client.spec @@ -7,7 +7,7 @@ Name: weldr-client Version: 35.3 -Release: 1%{?dist} +Release: 2%{?dist} # Upstream license specification: Apache-2.0 License: ASL 2.0 Summary: Command line utility to control osbuild-composer @@ -83,7 +83,7 @@ export BUILDTAGS="integration" # On Fedora, also turn off go modules and set the path to the one into which # the golang-* packages install source code. %if 0%{?rhel} -export LDFLAGS="${LDFLAGS:-} -B 0x$(od -N 20 -An -tx1 -w100 /dev/urandom | tr -d ' ')" +export LDFLAGS="${LDFLAGS:-} -buildmode pie -B 0x$(od -N 20 -An -tx1 -w100 /dev/urandom | tr -d ' ')" go test -c -tags=integration -ldflags="${LDFLAGS}" -o composer-cli-tests %{goipath}/weldr %else make GOBUILDFLAGS="%{gobuildflags}" integration @@ -131,6 +131,10 @@ composer-cli package. %changelog +* Tue Oct 05 2021 Brian C. Lane - 35.3-2 +- Add -buildmode pie to composer-cli-tests LDFLAGS + Related: rhbz#2010519 + * Mon Oct 04 2021 Brian C. Lane - 35.3-1 - New release: 35.3 (bcl) Resolves: rhbz#2010519