The package rpms/golang-github-prometheus-procfs.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/golang-github-prometheus-procfs.git/....
Change: +%ifarch i686
Thanks.
Full change: ============
commit 3e1b4f954bb39b13a4f776fdf6a3997d406917f6 Author: Mikel Olasagasti Uranga mikel@olasagasti.info Date: Sun Dec 3 19:42:33 2023 +0100
Skip i686 test - Closes rhbz#2110790
diff --git a/golang-github-prometheus-procfs.spec b/golang-github-prometheus-procfs.spec index c3a52a0..e33da6e 100644 --- a/golang-github-prometheus-procfs.spec +++ b/golang-github-prometheus-procfs.spec @@ -43,8 +43,12 @@ Source: %{gosource} %check # Tests require that fixtures are extracted ./ttar -x -C testdata -f ./testdata/fixtures.ttar +%ifarch i686 +rm proc_stat_test.go +%else %gocheck %endif +%endif
%gopkgfiles
commit 0cf25327abb882dd624e23789c2d122e06b44f6a Author: Mikel Olasagasti Uranga mikel@olasagasti.info Date: Thu Nov 9 18:17:25 2023 +0100
Update to 0.12.0 - Closes rhbz#2110790
diff --git a/.gitignore b/.gitignore index ed158ad..25206e1 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /procfs-fbe360a68cc652b7d44167e8ec79e2ee70261569.tar.gz /procfs-0.9.0.tar.gz /procfs-0.8.0.tar.gz +/procfs-0.12.0.tar.gz diff --git a/0001-Convert-w-verb-in-t.Errorf-function-to-v.patch b/0001-Convert-w-verb-in-t.Errorf-function-to-v.patch deleted file mode 100644 index e5608a3..0000000 --- a/0001-Convert-w-verb-in-t.Errorf-function-to-v.patch +++ /dev/null @@ -1,54 +0,0 @@ -From 2fd3523f76ff8cb9f43c03fe04e210de6718fb34 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= zebob.m@gmail.com -Date: Fri, 14 Jan 2022 01:13:27 +0100 -Subject: [PATCH] Convert %w verb in t.Errorf function to %v - -Go 1.18 introduced a change where only fmt.Errorf function accepts the %w verb. -Other Errorf function like t.Errorf do not accept it anymore. - -See https://github.com/golang/go/issues/47641 - -Fix: #430 ---- - mountstats_test.go | 4 ++-- - swaps_test.go | 2 +- - 2 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/mountstats_test.go b/mountstats_test.go -index 09e26b9..9fccf84 100644 ---- a/mountstats_test.go -+++ b/mountstats_test.go -@@ -393,7 +393,7 @@ func TestMountStats(t *testing.T) { - t.Error("expected an error, but none occurred") - } - if !tt.invalid && err != nil { -- t.Errorf("unexpected error: %w", err) -+ t.Errorf("unexpected error: %v", err) - } - - if want, have := tt.mounts, mounts; !reflect.DeepEqual(want, have) { -@@ -434,7 +434,7 @@ func TestMountStatsExtendedOperationStats(t *testing.T) { - r := strings.NewReader(extendedOpsExampleMountstats) - _, err := parseMountStats(r) - if err != nil { -- t.Errorf("failed to parse mount stats with extended per-op statistics: %w", err) -+ t.Errorf("failed to parse mount stats with extended per-op statistics: %v", err) - } - } - -diff --git a/swaps_test.go b/swaps_test.go -index 1190da7..70db6ab 100644 ---- a/swaps_test.go -+++ b/swaps_test.go -@@ -102,7 +102,7 @@ func TestParseSwapString(t *testing.T) { - t.Error("unexpected success") - } - if !tt.invalid && err != nil { -- t.Errorf("unexpected error: %w", err) -+ t.Errorf("unexpected error: %v", err) - } - - if !reflect.DeepEqual(tt.swap, swap) { --- -2.33.1 - diff --git a/glide.lock b/glide.lock deleted file mode 100644 index b20214b..0000000 --- a/glide.lock +++ /dev/null @@ -1,4 +0,0 @@ -hash: f09d2659f996db8cbe8253fb3a92aaf0c999c9a759b03d2277d6efac9fb04093 -imports: [] -updated: '2018-06-26T11:49:59.713150+00:00' - diff --git a/glide.yaml b/glide.yaml deleted file mode 100644 index 064ba1d..0000000 --- a/glide.yaml +++ /dev/null @@ -1,3 +0,0 @@ -import: [] -package: github.com/prometheus/procfs - diff --git a/golang-github-prometheus-procfs.spec b/golang-github-prometheus-procfs.spec index e024f30..c3a52a0 100644 --- a/golang-github-prometheus-procfs.spec +++ b/golang-github-prometheus-procfs.spec @@ -1,13 +1,14 @@ -# Generated by go2rpm 1.5.0 -# disable tests (missing required fixtures?) -%bcond_with check +# Generated by go2rpm 1.10.0 +%bcond_without check +%global debug_package %{nil}
# https://github.com/prometheus/procfs %global goipath github.com/prometheus/procfs -Version: 0.8.0 +Version: 0.12.0
%gometa
+ %global common_description %{expand: Procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc.} @@ -16,41 +17,32 @@ the pseudo-filesystem proc.} %global godocs CODE_OF_CONDUCT.md CONTRIBUTING.md MAINTAINERS.md\\ README.md SECURITY.md
-%global gosupfiles glide.lock glide.yaml - Name: %{goname} Release: %autorelease Summary: Retrieve system, kernel and process metrics from proc
-# Upstream license specification: Apache-2.0 -License: ASL 2.0 +License: Apache-2.0 URL: %{gourl} -Source0: %{gosource} -Source1: glide.yaml -Source2: glide.lock +Source: %{gosource}
-BuildRequires: golang(golang.org/x/sync/errgroup) -BuildRequires: golang(golang.org/x/sys/unix) - -%if %{with check} -# Tests -BuildRequires: golang(github.com/google/go-cmp/cmp) -%endif - -%description -%{common_description} +%description %{common_description}
%gopkg
%prep %goprep -cp %{S:1} %{S:2} . +%autopatch -p1 + +%generate_buildrequires +%go_generate_buildrequires
%install %gopkginstall
%if %{with check} %check +# Tests require that fixtures are extracted +./ttar -x -C testdata -f ./testdata/fixtures.ttar %gocheck %endif
diff --git a/sources b/sources index 5119e6d..0fb6d5b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (procfs-0.8.0.tar.gz) = 2ac5240f4f5b1fde3c87d984250dedcb7864becdd7830086237eeda4f36686f6e24f68cf1535c5b72b0f07584899c6d13016818c706556c01c2d8dfd6deecb2e +SHA512 (procfs-0.12.0.tar.gz) = 0e3e365223a058fc0d51e3894c507c71cf091f5ecabb439201a100fe84f37e01baef4d839aa535d5821b180d4f9e703498a699dadb4f63c0ab3322fb895f75e7
arch-excludes@lists.fedoraproject.org