public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: W. Michael Petullo <mike@flyn.org>
To: git-commits@fedoraproject.org
Subject: [rpms/hugo] epel9: Replace import patches with use of sed
Date: Fri, 06 Nov 2026 05:41:47 GMT [thread overview]
Message-ID: <179394370763.1.8631433827705045498.rpms-hugo-6422c0afe07b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/hugo
Branch : epel9
Commit : 6422c0afe07bc02f44dad009fd322a617f6ab860
Author : W. Michael Petullo <mike@flyn.org>
Date : 2023-08-16T23:50:11-05:00
Stats : +7/-107 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/hugo/c/6422c0afe07bc02f44dad009fd322a617f6ab860?branch=epel9
Log:
Replace import patches with use of sed
Signed-off-by: W. Michael Petullo <mike@flyn.org>
---
diff --git a/0020-clbanning-mxj.patch b/0020-clbanning-mxj.patch
deleted file mode 100644
index af27b77..0000000
--- a/0020-clbanning-mxj.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-diff -u --recursive hugo-0.111.3-vanilla/go.mod hugo-0.111.3/go.mod
---- hugo-0.111.3-vanilla/go.mod 2023-03-12 06:40:50.000000000 -0500
-+++ hugo-0.111.3/go.mod 2023-05-14 13:56:23.960785402 -0500
-@@ -16,7 +16,7 @@
- github.com/bep/lazycache v0.2.0
- github.com/bep/overlayfs v0.6.0
- github.com/bep/tmc v0.5.1
-- github.com/clbanning/mxj/v2 v2.5.7
-+ github.com/clbanning/mxj v2.5.7
- github.com/cli/safeexec v1.0.0
- github.com/disintegration/gift v1.2.1
- github.com/dustin/go-humanize v1.0.0
-diff -u --recursive hugo-0.111.3-vanilla/go.sum hugo-0.111.3/go.sum
---- hugo-0.111.3-vanilla/go.sum 2023-03-12 06:40:50.000000000 -0500
-+++ hugo-0.111.3/go.sum 2023-05-14 13:56:38.784639997 -0500
-@@ -195,8 +195,8 @@
- github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
- github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
- github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
--github.com/clbanning/mxj/v2 v2.5.7 h1:7q5lvUpaPF/WOkqgIDiwjBJaznaLCCBd78pi8ZyAnE0=
--github.com/clbanning/mxj/v2 v2.5.7/go.mod h1:hNiWqW14h+kc+MdF9C6/YoRfjEJoR3ou6tn/Qo+ve2s=
-+github.com/clbanning/mxj v2.5.7 h1:7q5lvUpaPF/WOkqgIDiwjBJaznaLCCBd78pi8ZyAnE0=
-+github.com/clbanning/mxj v2.5.7/go.mod h1:hNiWqW14h+kc+MdF9C6/YoRfjEJoR3ou6tn/Qo+ve2s=
- github.com/cli/safeexec v1.0.0 h1:0VngyaIyqACHdcMNWfo6+KdUYnqEr2Sg+bSP1pdF+dI=
- github.com/cli/safeexec v1.0.0/go.mod h1:Z/D4tTN8Vs5gXYHDCbaM1S/anmEDnJb1iW0+EJ5zx3Q=
- github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
-diff -u --recursive hugo-0.111.3-vanilla/parser/frontmatter.go hugo-0.111.3/parser/frontmatter.go
---- hugo-0.111.3-vanilla/parser/frontmatter.go 2023-03-12 06:40:50.000000000 -0500
-+++ hugo-0.111.3/parser/frontmatter.go 2023-05-14 13:56:53.511495544 -0500
-@@ -24,7 +24,7 @@
-
- yaml "gopkg.in/yaml.v2"
-
-- xml "github.com/clbanning/mxj/v2"
-+ xml "github.com/clbanning/mxj"
- )
-
- const (
-diff -u --recursive hugo-0.111.3-vanilla/parser/metadecoders/decoder.go hugo-0.111.3/parser/metadecoders/decoder.go
---- hugo-0.111.3-vanilla/parser/metadecoders/decoder.go 2023-03-12 06:40:50.000000000 -0500
-+++ hugo-0.111.3/parser/metadecoders/decoder.go 2023-05-14 13:57:05.633376639 -0500
-@@ -24,7 +24,7 @@
- "github.com/gohugoio/hugo/common/herrors"
- "github.com/niklasfasching/go-org/org"
-
-- xml "github.com/clbanning/mxj/v2"
-+ xml "github.com/clbanning/mxj"
- toml "github.com/pelletier/go-toml/v2"
- "github.com/spf13/afero"
- "github.com/spf13/cast"
diff --git a/0030-nicksnyder-go-i18n.patch b/0030-nicksnyder-go-i18n.patch
deleted file mode 100644
index 0b6f20d..0000000
--- a/0030-nicksnyder-go-i18n.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-diff -u --recursive hugo-0.111.3-vanilla/go.mod hugo-0.111.3/go.mod
---- hugo-0.111.3-vanilla/go.mod 2023-03-12 06:40:50.000000000 -0500
-+++ hugo-0.111.3/go.mod 2023-05-14 13:58:42.855422989 -0500
-@@ -28,7 +28,7 @@
- github.com/ghodss/yaml v1.0.0
- github.com/gobuffalo/flect v0.3.0
- github.com/gobwas/glob v0.2.3
-- github.com/gohugoio/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013
-+ github.com/nicksnyder/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013
- github.com/gohugoio/locales v0.14.0
- github.com/gohugoio/localescompressed v1.0.1
- github.com/gohugoio/testmodBuilder/mods v0.0.0-20190520184928-c56af20f2e95
-diff -u --recursive hugo-0.111.3-vanilla/go.sum hugo-0.111.3/go.sum
---- hugo-0.111.3-vanilla/go.sum 2023-03-12 06:40:50.000000000 -0500
-+++ hugo-0.111.3/go.sum 2023-05-14 13:59:02.688228448 -0500
-@@ -282,8 +282,8 @@
- github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
- github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=
- github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
--github.com/gohugoio/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013 h1:Nj29Qbkt0bZ/bJl8eccfxQp3NlU/0IW1v9eyYtQ53XQ=
--github.com/gohugoio/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013/go.mod h1:3Ltoo9Banwq0gOtcOwxuHG6omk+AwsQPADyw2vQYOJQ=
-+github.com/nicksnyder/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013 h1:Nj29Qbkt0bZ/bJl8eccfxQp3NlU/0IW1v9eyYtQ53XQ=
-+github.com/nicksnyder/go-i18n/v2 v2.1.3-0.20210430103248-4c28c89f8013/go.mod h1:3Ltoo9Banwq0gOtcOwxuHG6omk+AwsQPADyw2vQYOJQ=
- github.com/gohugoio/locales v0.14.0 h1:Q0gpsZwfv7ATHMbcTNepFd59H7GoykzWJIxi113XGDc=
- github.com/gohugoio/locales v0.14.0/go.mod h1:ip8cCAv/cnmVLzzXtiTpPwgJ4xhKZranqNqtoIu0b/4=
- github.com/gohugoio/localescompressed v1.0.1 h1:KTYMi8fCWYLswFyJAeOtuk/EkXR/KPTHHNN9OS+RTxo=
-diff -u --recursive hugo-0.111.3-vanilla/langs/i18n/i18n.go hugo-0.111.3/langs/i18n/i18n.go
---- hugo-0.111.3-vanilla/langs/i18n/i18n.go 2023-03-12 06:40:50.000000000 -0500
-+++ hugo-0.111.3/langs/i18n/i18n.go 2023-05-14 13:59:22.567033455 -0500
-@@ -27,7 +27,7 @@
- "github.com/gohugoio/hugo/helpers"
- "github.com/gohugoio/hugo/resources/page"
-
-- "github.com/gohugoio/go-i18n/v2/i18n"
-+ "github.com/nicksnyder/go-i18n/v2/i18n"
- )
-
- type translateFunc func(ctx context.Context, translationID string, templateData any) string
-diff -u --recursive hugo-0.111.3-vanilla/langs/i18n/translationProvider.go hugo-0.111.3/langs/i18n/translationProvider.go
---- hugo-0.111.3-vanilla/langs/i18n/translationProvider.go 2023-03-12 06:40:50.000000000 -0500
-+++ hugo-0.111.3/langs/i18n/translationProvider.go 2023-05-14 13:59:39.406868272 -0500
-@@ -24,7 +24,7 @@
- "golang.org/x/text/language"
- yaml "gopkg.in/yaml.v2"
-
-- "github.com/gohugoio/go-i18n/v2/i18n"
-+ "github.com/nicksnyder/go-i18n/v2/i18n"
- "github.com/gohugoio/hugo/helpers"
- toml "github.com/pelletier/go-toml/v2"
-
diff --git a/hugo.spec b/hugo.spec
index 5856afc..63d09ea 100644
--- a/hugo.spec
+++ b/hugo.spec
@@ -42,13 +42,6 @@ Source0: %{gosource}
# Skip tests that uses the network.
# Based on https://sources.debian.org/data/main/h/hugo/0.58.3-1/debian/patches/0005-skip-modules-TestClient.patch
Patch0001: 0010-skip-modules-TestClient.patch
-# Use clbanning-mxj, not clbanning-mxj-v2
-# See https://github.com/gohugoio/hugo/issues/9860
-Patch0002: 0020-clbanning-mxj.patch
-# Use nicksnyder-go-i18n, not gohugoio/go-i18n/
-# See https://github.com/gohugoio/hugo/issues/9860
-# and https://github.com/nicksnyder/go-i18n/pull/253
-Patch0003: 0030-nicksnyder-go-i18n.patch
BuildRequires: golang(github.com/bep/golibsass/libsass) >= 0.7.0
@@ -69,6 +62,13 @@ Recommends: golang-bin
%prep
%goprep
+# See https://github.com/gohugoio/hugo/issues/9860
+sed -i 's|github.com/clbanning/mxj/v2|github.com/clbanning/mxj|' $(find . -iname '*.go' -type f)
+
+# See https://github.com/gohugoio/hugo/issues/9860
+# and https://github.com/nicksnyder/go-i18n/pull/253
+sed -i 's|github.com/gohugoio/go-i18n/v2|github.com/nicksnyder/go-i18n/v2|' $(find . -iname '*.go' -type f)
+
%autopatch -p1
# Replace blackfriday import path to avoid conflict with v2
reply other threads:[~2026-11-06 5:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179394370763.1.8631433827705045498.rpms-hugo-6422c0afe07b@fedoraproject.org \
--to=mike@flyn.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox