public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Justin Wheeler <jwheel@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/hugo] f45: ⬆️ spec: Update to Hugo 0.170.0 and drop LibSass
Date: Sun, 15 Nov 2026 10:15:59 GMT [thread overview]
Message-ID: <179473775991.1.11545445481767236307.rpms-hugo-919df6c36c0a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/hugo
Branch : f45
Commit : 919df6c36c0aecef2af98036422d76870cfc67eb
Author : Justin Wheeler <jwheel@fedoraproject.org>
Date : 2026-11-13T15:20:41-05:00
Stats : +15/-34 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/hugo/c/919df6c36c0aecef2af98036422d76870cfc67eb?branch=f45
Log:
⬆️ spec: Update to Hugo 0.170.0 and drop LibSass
Hugo 0.170.0 removes the Extended edition, the `extended` build tag, and
LibSass, so the spec no longer unpacks `libsass-3.6.6.tar.gz` into the
`golibsass` tree or requires `gcc-c++`. Sass transformations now run
through an external Dart Sass 1.63.0 or newer executable, and no Fedora
package provides one yet, so the spec documents the limitation rather
than declaring a weak dependency that Fedora policy requires to be
satisfiable from official repositories.
The source archive is now the genuine GitHub tag archive instead of the
release binary archive, and the vendor archive was regenerated for the
new module graph. Two obsolete `oasdiff` license overrides were dropped
because those modules are no longer vendored, and the ppc64le syscall
workaround was regenerated for `golang.org/x/sys` v0.50.0, whose
assembly trampolines now use `R12`.
`gcc` replaces `gcc-c++` because the Go macros link externally but no
C++ sources remain. The install step copies the built `hugo` binary
explicitly instead of a wildcard.
Assisted-by: DeepSeek V4.1 Flash (200K context window)
Signed-off-by: Justin Wheeler <jwheel@fedoraproject.org>
---
diff --git a/.gitignore b/.gitignore
index b275675..341ce82 100644
--- a/.gitignore
+++ b/.gitignore
@@ -68,3 +68,5 @@
/hugo-0.169.0-vendor.tar.bz2
/results_hugo/
/*.src.rpm
+/hugo-0.170.0.tar.gz
+/hugo-0.170.0-vendor.tar.bz2
diff --git a/0001-unix-linux-revert-ppc64x-syscall-assembly-wrapper.patch b/0001-unix-linux-revert-ppc64x-syscall-assembly-wrapper.patch
index 103599a..fae5946 100644
--- a/0001-unix-linux-revert-ppc64x-syscall-assembly-wrapper.patch
+++ b/0001-unix-linux-revert-ppc64x-syscall-assembly-wrapper.patch
@@ -14,13 +14,13 @@ remain live (the issue the assembly change was intended to address).
// The runtime may know about them.
-TEXT ·Syscall(SB),NOSPLIT,$0-56
-- MOVD $syscall·Syscall(SB), R31
-- MOVD R31, CTR
+- MOVD $syscall·Syscall(SB), R12
+- MOVD R12, CTR
- JMP (CTR)
-
-TEXT ·Syscall6(SB),NOSPLIT,$0-80
-- MOVD $syscall·Syscall6(SB), R31
-- MOVD R31, CTR
+- MOVD $syscall·Syscall6(SB), R12
+- MOVD R12, CTR
- JMP (CTR)
-
TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
@@ -31,13 +31,13 @@ remain live (the issue the assembly change was intended to address).
RET
-TEXT ·RawSyscall(SB),NOSPLIT,$0-56
-- MOVD $syscall·RawSyscall(SB), R31
-- MOVD R31, CTR
+- MOVD $syscall·RawSyscall(SB), R12
+- MOVD R12, CTR
- JMP (CTR)
-
-TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
-- MOVD $syscall·RawSyscall6(SB), R31
-- MOVD R31, CTR
+- MOVD $syscall·RawSyscall6(SB), R12
+- MOVD R12, CTR
- JMP (CTR)
-
TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
diff --git a/go-vendor-tools.toml b/go-vendor-tools.toml
index be11a9f..2fb0824 100644
--- a/go-vendor-tools.toml
+++ b/go-vendor-tools.toml
@@ -17,16 +17,6 @@ sha256sum = "13654b052f885cb3fa47d7343e13975d9c8a64c3bcd84993c35d5eb01f22b23f"
expression = "MIT AND OFL-1.1"
[[licensing.licenses]]
-path = "vendor/github.com/oasdiff/yaml/LICENSE"
-sha256sum = "24653fd8a39354396da1a265d68316399edc39b1df48c5866d55f9f06484fa9a"
-expression = "BSD-3-Clause AND MIT"
-
-[[licensing.licenses]]
-path = "vendor/github.com/oasdiff/yaml3/LICENSE"
-sha256sum = "d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b"
-expression = "Apache-2.0 AND MIT"
-
-[[licensing.licenses]]
path = "vendor/go.yaml.in/yaml/v3/LICENSE"
sha256sum = "d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b"
expression = "Apache-2.0 AND MIT"
diff --git a/hugo.spec b/hugo.spec
index f896fed..9ed9082 100644
--- a/hugo.spec
+++ b/hugo.spec
@@ -14,16 +14,14 @@
# hugo-VERSION.tar.gz
# hugo-VERSION-vendor.tar.bz2
# go-vendor-tools.toml
-# libsass-3.6.6.tar.gz
# 5. Review gocheck. Are more or fewer -d arguments needed?
# https://github.com/gohugoio/hugo
%global goipath github.com/gohugoio/hugo
-Version: 0.169.0
+Version: 0.170.0
%gometa -L -f
-
Name: hugo
Release: %autorelease
Summary: The world’s fastest framework for building websites
@@ -35,14 +33,12 @@ Source0: %{gosource}
# Generated by go-vendor-tools
Source1: %{archivename}-vendor.tar.bz2
Source2: go-vendor-tools.toml
-# Needed for vendor/golibsass; go-vendor-tools does not grab C code from Go repositories:
-Source3: libsass-3.6.6.tar.gz
# Avoid x/sys syscall trampoline crashes with external PIE linking on ppc64le.
Patch0: 0001-unix-linux-revert-ppc64x-syscall-assembly-wrapper.patch
BuildRequires: go-vendor-tools
-BuildRequires: gcc-c++
+BuildRequires: gcc
# Hugo 0.166.0 and later declare "go 1.27.0" in go.mod.
BuildRequires: golang >= 1.27.0
@@ -57,10 +53,6 @@ tar -xf %{S:1}
%patch -P 0 -p1
%endif
-# Needed for vendor/golibsass; go-vendor-tools does not grab C code from Go repositories:
-mkdir vendor/github.com/bep/golibsass/libsass_src
-tar xvf %SOURCE3 -C vendor/github.com/bep/golibsass/libsass_src --strip-components=1
-
%generate_buildrequires
%go_vendor_license_buildrequires -c %{S:2}
@@ -72,8 +64,6 @@ tar xvf %SOURCE3 -C vendor/github.com/bep/golibsass/libsass_src --strip-componen
%global __golang_extldflags -Wl,-z,undefs -Wl,-z,notext
%global gomodulesmode GO111MODULE=on
-# Build extended version of Hugo.
-export GO_BUILDTAGS="extended"
export GO_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}
@@ -82,7 +72,7 @@ export GO_LDFLAGS="${LDFLAGS} -X %{goipath}/common/hugo.buildDate=$(date --iso=s
%install
%go_vendor_license_install -c %{S:2}
install -m 0755 -vd %{buildroot}%{_bindir}
-install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
+install -m 0755 -vp %{gobuilddir}/bin/hugo %{buildroot}%{_bindir}/
%check
%go_vendor_license_check -c %{S:2}
diff --git a/sources b/sources
index e2b713f..992f1ba 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,2 @@
-SHA512 (hugo-0.169.0.tar.gz) = 3caad2777b929d4afef694dbf2bca32ad897c623c9775da5f907a413ce942043727652ac2fe2cdec70c001888590be8e9cb144e34beaecda934ab40356b88c75
-SHA512 (hugo-0.169.0-vendor.tar.bz2) = 4416ccfb825c66a7e63cd795408adddcb445b2436e95089d47d55d6b5ddd731e309656f4a3f5e0a809263117fea15d83faae6d039063d1c3fc1632c37197c99d
-SHA512 (libsass-3.6.6.tar.gz) = 659828c854af391c10a16954425fbeeb5fa036189dea45555cd8046338f7469eb7f8d84134030ce644921514b8f397ef6070b56dfb116ea7ce94328d64576518
+SHA512 (hugo-0.170.0.tar.gz) = 3dcbedbdef8141a803f5fccdefa52bb16b3d373916c06fa578f9c0e2944e86c0c3f742a93577b48d899a278341935e7b2af740c455c27ffd12126cb56fa79c8b
+SHA512 (hugo-0.170.0-vendor.tar.bz2) = cfa423050d08c2dd3193e8ba9b27dcbc9ca0a575521a07b0d30177746a02ddc85dab4ee8af7b7a913314070c0d29fbe4478839b5fcd29613e30a337e2afba9df
reply other threads:[~2026-11-15 10:15 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=179473775991.1.11545445481767236307.rpms-hugo-919df6c36c0a@fedoraproject.org \
--to=jwheel@fedoraproject.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