public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hugo] epel9: Backport s390x check exception
@ 2026-11-06 5:42 W. Michael Petullo
0 siblings, 0 replies; only message in thread
From: W. Michael Petullo @ 2026-11-06 5:42 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/hugo
Branch : epel9
Commit : 7b987b86917a49bd2fb3fc83a2ff7c3ebeff5626
Author : W. Michael Petullo <mike@flyn.org>
Date : 2025-01-23T08:20:57-06:00
Stats : +39/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/hugo/c/7b987b86917a49bd2fb3fc83a2ff7c3ebeff5626?branch=epel9
Log:
Backport s390x check exception
Hugo commit 51bb2fed addressed https://github.com/gohugoio/hugo/issues/13204
and allowed me to restore the tpl/tplimpl check on all architectures.
Signed-off-by: W. Michael Petullo <mike@flyn.org>
---
diff --git a/0001-tpl-tplimpl-Skip-TestTemplateFuncsExamples-on-s390x.patch b/0001-tpl-tplimpl-Skip-TestTemplateFuncsExamples-on-s390x.patch
new file mode 100644
index 0000000..775af96
--- /dev/null
+++ b/0001-tpl-tplimpl-Skip-TestTemplateFuncsExamples-on-s390x.patch
@@ -0,0 +1,36 @@
+From 51bb2fedabca89fe4814102ed0bf985a03b6ec50 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?=
+ <bjorn.erik.pedersen@gmail.com>
+Date: Thu, 23 Jan 2025 10:18:43 +0100
+Subject: [PATCH] tpl/tplimpl: Skip TestTemplateFuncsExamples on s390x
+
+Closes #13204
+---
+ tpl/tplimpl/template_funcs_test.go | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/tpl/tplimpl/template_funcs_test.go b/tpl/tplimpl/template_funcs_test.go
+index f1ab3d659..2c3cc541a 100644
+--- a/tpl/tplimpl/template_funcs_test.go
++++ b/tpl/tplimpl/template_funcs_test.go
+@@ -15,6 +15,7 @@ package tplimpl_test
+
+ import (
+ "fmt"
++ "runtime"
+ "strings"
+ "testing"
+
+@@ -24,6 +25,9 @@ import (
+ )
+
+ func TestTemplateFuncsExamples(t *testing.T) {
++ if runtime.GOARCH == "s390x" {
++ t.Skip("Skip on s390x, see https://github.com/gohugoio/hugo/issues/13204")
++ }
+ t.Parallel()
+
+ files := `
+--
+2.48.1
+
diff --git a/hugo.spec b/hugo.spec
index 0acace8..288967c 100644
--- a/hugo.spec
+++ b/hugo.spec
@@ -45,6 +45,9 @@ Patch0001: 0010-skip-modules-TestClient.patch
# Fix build on Go 1.24.
# Submitted upstream as https://github.com/gohugoio/hugo/pull/13285
Patch0002: 0020-remove-non-const-fmt-string.patch
+# Backport s390x exception, allowing return of tpl-tplimpl check.
+# See also https://github.com/gohugoio/hugo/issues/13204
+Patch0003: 0001-tpl-tplimpl-Skip-TestTemplateFuncsExamples-on-s390x.patch
BuildRequires: golang(github.com/bep/golibsass/libsass) >= 0.7.0
BuildRequires: golang-github-gohugoio-hugo-goldmark-extensions-devel
@@ -117,7 +120,6 @@ install -Dp man/* -t %{buildroot}%{_mandir}/man1
# langs/i18n: fails with current Rawhide
# resources/resource_factories/bundler: uses networking
# resources/resource_factories/create: uses networking
-# tpl/tplimpl: https://github.com/gohugoio/hugo/issues/13204
%gocheck \
-d . \
-d cache/dynacache \
@@ -127,7 +129,6 @@ install -Dp man/* -t %{buildroot}%{_mandir}/man1
-d langs/i18n \
-d resources/resource_factories/bundler \
-d resources/resource_factories/create \
- -d tpl/tplimpl \
%endif
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-06 5:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 5:42 [rpms/hugo] epel9: Backport s390x check exception W. Michael Petullo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox