public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hugo] epel8: Modify to remove dependency on golang-gocloud
@ 2026-11-06 5:43 W. Michael Petullo
0 siblings, 0 replies; only message in thread
From: W. Michael Petullo @ 2026-11-06 5:43 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/hugo
Branch : epel8
Commit : 25756976d787a8af79b7a19a505e5ace3c75b5da
Author : W. Michael Petullo <mike@flyn.org>
Date : 2024-02-07T10:30:02-06:00
Stats : +21/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/hugo/c/25756976d787a8af79b7a19a505e5ace3c75b5da?branch=epel8
Log:
Modify to remove dependency on golang-gocloud
Signed-off-by: W. Michael Petullo <mike@flyn.org>
---
diff --git a/hugo.spec b/hugo.spec
index ec255c4..6cf7949 100644
--- a/hugo.spec
+++ b/hugo.spec
@@ -91,11 +91,28 @@ sed -i '/TestPageWithLastmodFromGitInfo/a t.Skip()' hugolib/page_test.go
rm hugolib/hugo_modules_test.go
%endif
+# Remove deployment features, as they rely on too many wild dependencies.
+# I cannot at this time find a path forward for golang-gocloud. See, for
+# example,
+#
+# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/YOVE3SJYZK7SC3CAHZ5CGUWMMWC67AFO/
+# https://bugzilla.redhat.com/show_bug.cgi?id=2262897
+# ... and so on.
+#
+# See also use of nodeploy in build and check sections below.
+rm -rf deploy
+# I would like to avoid the use of sed here. See:
+# https://github.com/gohugoio/hugo/issues/12009
+sed -i '/"github.com\/gohugoio\/hugo\/deploy"/d' config/allconfig/allconfig.go # Remove import.
+sed -i 's/Deployment deploy.DeployConfig/Deployment bool/g' config/allconfig/allconfig.go # Replace use with bool.
+sed -i '/"github.com\/gohugoio\/hugo\/deploy"/d' config/allconfig/alldecoders.go # Remove import.
+sed -i 's/p.c.Deployment, err =/\/\/ p.c.Deployment, err =/g' config/allconfig/alldecoders.go # Comment out use.
+
%generate_buildrequires
%go_generate_buildrequires
%build
-BUILDTAGS=extended LDFLAGS="${LDFLAGS} -X %{goipath}/common/hugo.buildDate=$(date --iso=seconds --date=@$SOURCE_DATE_EPOCH) -X %{goipath}/common/hugo.vendorInfo=Fedora:%{version}-%{release}" %gobuild -o %{gobuilddir}/bin/hugo %{goipath}
+BUILDTAGS="extended nodeploy" LDFLAGS="${LDFLAGS} -X %{goipath}/common/hugo.buildDate=$(date --iso=seconds --date=@$SOURCE_DATE_EPOCH) -X %{goipath}/common/hugo.vendorInfo=Fedora:%{version}-%{release}" %gobuild -o %{gobuilddir}/bin/hugo %{goipath}
%{gobuilddir}/bin/hugo completion bash >hugo-completion
%{gobuilddir}/bin/hugo gen man
@@ -109,6 +126,9 @@ install -Dp man/* -t %{buildroot}%{_mandir}/man1
%if %{with check}
%check
+
+%global gotestflags -tags nodeploy
+
# .: Extensive test that uses network.
# common/herrors: Seems to fail due to colorization.
# common/text: Seems to fail due to colorization.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-06 5:43 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:43 [rpms/hugo] epel8: Modify to remove dependency on golang-gocloud 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