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] epel8: Modify to remove dependency on golang-gocloud
Date: Fri, 06 Nov 2026 05:43:30 GMT	[thread overview]
Message-ID: <179394381073.1.5714052851886043765.rpms-hugo-25756976d787@fedoraproject.org> (raw)

            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.

                 reply	other threads:[~2026-11-06  5:43 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=179394381073.1.5714052851886043765.rpms-hugo-25756976d787@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