forked from pool/golang-github-prometheus-promu
Accepting request 1138781 from server:monitoring
OBS-URL: https://build.opensuse.org/request/show/1138781 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-github-prometheus-promu?expand=0&rev=17
This commit is contained in:
commit
bd4e784afe
13
extldflags-no-static.patch
Normal file
13
extldflags-no-static.patch
Normal 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"
|
@ -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>
|
Tue Aug 8 11:53:00 UTC 2023 - Witek Bedyk <witold.bedyk@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package golang-github-prometheus-promu
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
# PATCH-FIX-UPSTREAM Fix setting reproducible user and host during the build
|
||||||
# https://github.com/prometheus/promu/pull/267
|
# https://github.com/prometheus/promu/pull/267
|
||||||
Patch1: 0001-do_not_discover_user_host_for_reproducible_builds.patch
|
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
|
BuildRequires: golang-packaging
|
||||||
ExcludeArch: s390
|
ExcludeArch: s390
|
||||||
%{go_provides}
|
%{go_provides}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user