diff --git a/extldflags-no-static.patch b/extldflags-no-static.patch new file mode 100644 index 0000000..a469a7b --- /dev/null +++ b/extldflags-no-static.patch @@ -0,0 +1,13 @@ +Index: promu-0.15.0/cmd/promu.go +=================================================================== +--- promu-0.15.0.orig/cmd/promu.go ++++ promu-0.15.0/cmd/promu.go +@@ -73,7 +73,7 @@ func NewConfig() *Config { + config := &Config{} + config.Build.Binaries = []Binary{{Name: projInfo.Name, Path: "."}} + config.Build.Prefix = "." +- config.Build.Static = true ++ config.Build.Static = false + config.Crossbuild.Platforms = defaultPlatforms + config.Tarball.Prefix = "." + config.Go.Version = "1.12" diff --git a/golang-github-prometheus-promu.changes b/golang-github-prometheus-promu.changes index ca05f7e..84b6196 100644 --- a/golang-github-prometheus-promu.changes +++ b/golang-github-prometheus-promu.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 14 11:51:49 UTC 2023 - Andreas Schwab + +- extldflags-no-static.patch: Don't pass -extldflags -static by default + ------------------------------------------------------------------- Tue Aug 8 11:53:00 UTC 2023 - Witek Bedyk diff --git a/golang-github-prometheus-promu.spec b/golang-github-prometheus-promu.spec index 5656e26..157637c 100644 --- a/golang-github-prometheus-promu.spec +++ b/golang-github-prometheus-promu.spec @@ -1,7 +1,7 @@ # # spec file for package golang-github-prometheus-promu # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,8 @@ Source1: vendor.tar.gz # PATCH-FIX-UPSTREAM Fix setting reproducible user and host during the build # https://github.com/prometheus/promu/pull/267 Patch1: 0001-do_not_discover_user_host_for_reproducible_builds.patch +# PATCH-FIX-OPENSUSE Do not pass -static to external linker by default +Patch2: extldflags-no-static.patch BuildRequires: golang-packaging ExcludeArch: s390 %{go_provides}