Accepting request 1136139 from openSUSE:Factory:RISCV

- extldflags-no-static.patch: Don't pass -extldflags -static by default

OBS-URL: https://build.opensuse.org/request/show/1136139
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-promu?expand=0&rev=36
This commit is contained in:
Witek Bedyk 2024-01-15 09:21:47 +00:00 committed by Git OBS Bridge
parent 40e3eeb060
commit 6f2b1a941e
3 changed files with 21 additions and 1 deletions

View File

@ -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"

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Dec 14 11:51:49 UTC 2023 - Andreas Schwab <schwab@suse.de>
- extldflags-no-static.patch: Don't pass -extldflags -static by default
-------------------------------------------------------------------
Tue Aug 8 11:53:00 UTC 2023 - Witek Bedyk <witold.bedyk@suse.com>

View File

@ -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}