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: 🔀 Merge branch 'rawhide' into f45
Date: Sun, 15 Nov 2026 10:16:02 GMT	[thread overview]
Message-ID: <179473776240.1.17730779645955979957.rpms-hugo-ecf1ad448b78@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/hugo
Branch : f45
Commit : ecf1ad448b78a94d5dd4123d8235c75a76613d8a
Author : Justin Wheeler <jwheel@fedoraproject.org>
Date   : 2026-11-15T05:15:20-05:00
Stats  : +83/-69 in 7 file(s)
URL    : https://src.fedoraproject.org/rpms/hugo/c/ecf1ad448b78a94d5dd4123d8235c75a76613d8a?branch=f45

Log:
🔀 Merge branch 'rawhide' into f45

---
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/AGENTS.md b/AGENTS.md
index 875b08b..8c223ad 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -6,8 +6,9 @@ It is not upstream Hugo documentation; upstream's own `AGENTS.md` is shipped in 
 ## Package shape
 
 - Source: <https://github.com/gohugoio/hugo>
-- Built as **Hugo Extended** (`GO_BUILDTAGS="extended"`).
+- Built as the standard Hugo binary; the Extended edition and the `extended` build tag were removed in 0.170.0.
 - **Not** built with `withdeploy`.
+- Sass and SCSS transformations require an external Dart Sass executable; see “Dart Sass, not LibSass” below.
 - `Release: %autorelease` and `%changelog` + `%autochangelog` are used.
   Do not hand-edit the changelog.
 - The binary is not split into library subpackages, and no Go dependency libraries are packaged separately.
@@ -22,12 +23,15 @@ The declared minimum is a build requirement only; Hugo does not need Go at runti
 |---|---|
 | 0.162.1 | 1.25.0 |
 | 0.163.0–0.165.0 | 1.26.0 |
-| 0.166.0 and later (through 0.169.0) | 1.27.0 |
+| 0.166.0 and later (through 0.170.0) | 1.27.0 |
 
-At the time of the 0.169.0 update:
+At the time of the 0.170.0 update:
 
-- rawhide and F45 had Go 1.27.3 / 1.27.1 and were eligible.
+- rawhide had Go 1.27.3 and was eligible.
+- F45 had Go 1.27.1 and was eligible.
 - F44 and F43 had Go 1.26.10 and were **not** eligible.
+- EPEL 10 was eligible through its `golang` module stream.
+- EPEL 9 waited for RHEL 9.9, which brings `golang-1.27.3`.
 
 Koji builds have no network access, so the Go toolchain cannot download an alternative release during a build.
 
@@ -55,32 +59,30 @@ Koji builds have no network access, so the Go toolchain cannot download an alter
 
 Do not commit downloaded archives; they belong in lookaside.
 
-## LibSass: bundled, deliberately
+## Dart Sass, not LibSass
 
-Hugo Extended's LibSass support comes from `github.com/bep/golibsass`, which embeds a copy of LibSass as C++ sources.
-`go mod vendor` does **not** copy `libsass_src`, so the spec keeps:
+Hugo 0.170.0 removed LibSass, `github.com/bep/golibsass`, and the `extended` build tag.
+There is no bundled C or C++ code left in the build, and `%prep` only extracts the upstream source plus the vendor archive.
 
-```
-Source3:        libsass-3.6.6.tar.gz
-```
+Sass and SCSS transformations now call an external Dart Sass 1.63.0 or newer executable.
+Hugo looks for `dart-sass`, `sass`, or `dart-sass-embedded` in `PATH`, and `DART_SASS_BINARY` overrides the search:
 
-and extracts it in `%prep`:
-
-```spec
-mkdir vendor/github.com/bep/golibsass/libsass_src
-tar xvf %SOURCE3 -C vendor/github.com/bep/golibsass/libsass_src --strip-components=1
+```go
+DartSassBinaryName = os.Getenv("DART_SASS_BINARY")
 ```
 
 Notes:
 
-- `libsass-3.6.6.tar.gz` is already in lookaside and is unchanged across releases; its SHA512 must match the `sources` entry.
-- `3.6.6` is the final upstream release (December 2023), and the `sass/libsass` repository is archived.
-- golibsass also has a `dev` build tag that links against a **system** LibSass (`-DUSE_LIBSASS_SRC -lsass`, requiring `libsass-devel`).
-  That produces a strong `libsass.so.1()(64bit)` runtime dependency.
-  It was evaluated and intentionally **not** adopted for 0.169.0: this is not our package upstream and the conservative choice is to keep the existing bundled arrangement.
-- LibSass itself is deprecated upstream.
-  Re-evaluate when Hugo drops it.
-- Do not add `libsass-devel` to `BuildRequires` unless the whole build configuration is switched to the `dev` tag deliberately.
+- `github.com/bep/godartsass/v2` is a Go client that starts the external executable; it is **not** a Sass implementation.
+  Do not add `godartsass` as a separate source archive, because it arrives through the vendor archive like any other Go module.
+- LibSass and `sassc` speak a different protocol and cannot satisfy `godartsass`.
+- No Dart Sass package exists in Fedora, and Fedora's weak-dependency policy requires weak dependencies to be satisfiable from the official repositories.
+  Do not add `Recommends: dart-sass` until such a package exists.
+- Packaging Dart Sass from source is not currently feasible: it is written in Dart, Fedora has no Dart SDK, and shipping the prebuilt executable is prohibited.
+- Document the `DART_SASS_BINARY` workaround in `README.md` instead of pretending Sass works out of the box.
+- `DART_SASS_BINARY` with an absolute path is rejected by `security.exec.allow` unless the path is whitelisted.
+  Prefer a bare `sass` or `dart-sass` in `PATH`, which matches the default allow pattern.
+- Without Dart Sass, non-Sass site generation still works.
 
 ## ppc64le patch
 
@@ -89,7 +91,9 @@ Notes:
 - Declared unconditionally, applied only under `%ifarch ppc64le`.
 - `%prep` must use plain `%goprep` (no `-p1`), so the patch is applied **after** the vendor archive is extracted.
 - Preserve `//go:uintptrescapes` in the replaced wrappers.
+- The 0.170.0 update regenerated the patch for `golang.org/x/sys` v0.50.0, whose trampolines now use `R12` instead of `R31`.
 - This is Fedora-specific; do not assume upstream will take it.
+- Re-check the patch against the vendored `x/sys` on every Hugo bump, because the assembly context changes without notice.
 
 ## Tests
 
@@ -125,7 +129,7 @@ Rebuilding them from source is substantial:
 
 Several upstream build recipes also clone dependencies from the network, which is not allowed during RPM build phases.
 Until these payloads are rebuilt from packaged sources, the package cannot claim full compliance with Fedora's "no pre-built binaries" policy.
-Do not disable Extended features or replace the files with placeholders to make the issue disappear.
+Do not disable affected features or replace the files with placeholders to make the issue disappear.
 
 ## Validation workflow
 
@@ -138,18 +142,21 @@ fedpkg mockbuild -r fedora-rawhide-x86_64
 
 Runtime smoke checks (inside a disposable Mock chroot):
 
-- `hugo version` must report `v0.169.0+extended` and must not contain `withdeploy`.
-- Render a minimal site.
-- Render an SCSS asset with `css.Sass (dict "transpiler" "libsass")`; this exercises the bundled LibSass.
+- `hugo version` must report `v0.170.0` and must contain neither `+extended` nor `withdeploy`.
+- Render a minimal site that does not use Sass.
+- With a Dart Sass 1.63.0 or newer executable available, render an SCSS asset with the default transpiler and with `css.Sass (dict "transpiler" "dartsass")`.
+- `css.Sass (dict "transpiler" "libsass")` must fail, because LibSass support is gone.
 - Confirm `AGENTS.md` and `SECURITY.md` are installed as documentation.
 
 Koji scratch builds from the committed branch state:
 
 ```bash
 fedpkg scratch-build --arches x86_64
+fedpkg scratch-build --arches ppc64le
 fedpkg scratch-build
 ```
 
+Use an architecture-limited scratch build first when testing a targeted fix such as the ppc64le patch.
 Scratch builds are for validation only and are **not** eligible for Bodhi.
 
 ## Bodhi and release flow
@@ -162,12 +169,13 @@ Scratch builds are for validation only and are **not** eligible for Bodhi.
 - If automatic creation is missed, follow Bodhi's documented recovery procedure (re-tag in the candidate tag); do not create a manual rawhide update.
 - Stable branches need a normal `fedpkg update` run once a real production NVR exists.
 
-## Upcoming upstream changes
+## Hugo 0.170.0 changes
+
+Hugo 0.170.0 removed the `extended` build tag and LibSass, leaving Dart Sass as the only Sass transpiler.
+`hugo.IsExtended` always returns false, and `withdeploy` remains the only optional build tag.
+The spec was updated accordingly: no `GO_BUILDTAGS`, no LibSass source archive, and `gcc` instead of `gcc-c++` because only external linking needs a compiler.
 
-Hugo 0.170.0 is reported to remove the `extended` build tag and LibSass support, leaving Dart Sass only, with `hugo.IsExtended` always false and only `withdeploy` remaining.
-That release was **not available** when this note was written.
-Before the next bump, verify against the actual tag's code and `go.mod`; don't trust changelogs or documentation that may still say "extended".
-If confirmed, the spec will need a different build tag set, the LibSass source and extraction removed, and the Sass tests and dependency story revisited.
+The embedded WASM payloads are unchanged by this release and remain the outstanding compliance issue described above.
 
 ## Repository hygiene
 

diff --git a/README.md b/README.md
index f10a258..052d3d8 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,8 @@ The upstream project lives at <https://github.com/gohugoio/hugo>; this repositor
 
 Hugo is a static site generator written in Go.
 It turns Markdown, templates, and assets into a complete website in milliseconds.
-The Fedora package builds the **Extended** edition, which enables the `extended` build tag and adds SCSS/SASS support through bundled LibSass.
+The Fedora package builds the standard edition.
+Hugo 0.170.0 removed the former Extended edition and its bundled LibSass, so Sass and SCSS transformations now require an external Dart Sass executable; see [Sass support](#sass-support).
 
 
 ## What this repository contains
@@ -30,12 +31,36 @@ Downloaded source archives are kept in Fedora's lookaside cache, not in git.
 
 Hugo is written in Go and vendors all of its dependencies.
 `go-vendor-tools` generates a separate vendor archive from the upstream module graph, so the RPM build never needs network access.
-The spec also unpacks a copy of LibSass 3.6.6 into `vendor/github.com/bep/golibsass/libsass_src`, because `go mod vendor` does not include the C++ sources that the Extended edition needs.
 The build requires Go 1.27.0 or newer.
-The resulting binary is `/usr/bin/hugo`, built with the `extended` tag and without `withdeploy`.
+The resulting binary is `/usr/bin/hugo`, built without the optional `withdeploy` tag.
 The test suite runs in `%check` with a small, documented exclusion list.
 
 
+## Sass support
+
+Hugo 0.170.0 removed LibSass and the `extended` build tag.
+Sass and SCSS transformations now shell out to [Dart Sass](https://sass-lang.com/dart-sass) 1.63.0 or newer.
+Hugo looks for `dart-sass`, `sass`, or `dart-sass-embedded` in `PATH`, and `DART_SASS_BINARY` overrides the search.
+
+No Dart Sass package exists in Fedora as of this writing.
+Fedora's weak-dependency policy requires weak dependencies to be satisfiable from the official repositories, so `hugo` cannot declare one yet.
+Install Dart Sass from the upstream release page or from npm (`npm install --global sass`), then make it discoverable.
+The simplest option is to put a `sass` or `dart-sass` executable in `PATH`:
+
+```bash
+export PATH="$HOME/.local/bin:$PATH"
+```
+
+`DART_SASS_BINARY` can point at an absolute path, but Hugo's security policy only allows executables that match `security.exec.allow`, so the path must be whitelisted too:
+
+```toml
+[security.exec]
+allow = ['^(dart-)?sass$', '^/path/to/sass$']
+```
+
+Without Dart Sass, Hugo still builds sites; only Sass transformations such as `css.Sass` fail.
+
+
 ## Branches and releases
 
 | Branch | Purpose |

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:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-15 10:16 Justin Wheeler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-11-07 14:52 [rpms/hugo] f45: 🔀 Merge branch 'rawhide' into f45 Justin Wheeler
2026-11-06 16:20 Justin Wheeler
2026-11-06  3:41 Justin Wheeler
2026-10-15  4:25 [rpms/hugo] f45: " Justin Wheeler

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=179473776240.1.17730779645955979957.rpms-hugo-ecf1ad448b78@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