public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hugo] rawhide: 📝 docs: Update packaging notes for Hugo 0.170.0
@ 2026-11-13 20:23 Justin Wheeler
  0 siblings, 0 replies; only message in thread
From: Justin Wheeler @ 2026-11-13 20:23 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/hugo
            Branch : rawhide
            Commit : b875c99f862e7fabfa3e4247803c5eab98e37b8e
            Author : Justin Wheeler <jwheel@fedoraproject.org>
            Date   : 2026-11-13T15:22:54-05:00
            Stats  : +58/-35 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/hugo/c/b875c99f862e7fabfa3e4247803c5eab98e37b8e?branch=rawhide

            Log:
            📝 docs: Update packaging notes for Hugo 0.170.0

The README still described the Extended edition and bundled LibSass, and
`AGENTS.md` still told contributors to extract `libsass-3.6.6.tar.gz`
and to expect a `v0.169.0+extended` version string. Those instructions
no longer match the spec.

Document that Sass requires an external Dart Sass executable, explain
how Hugo discovers it, and record why no weak dependency can be declared
while no Fedora package exists. Refresh the Go version table, the
validation checks, and the ppc64le patch notes for `x/sys` v0.50.0.

Assisted-by: DeepSeek V4.1 Flash (200K context window)
Signed-off-by: Justin Wheeler <jwheel@fedoraproject.org>

---
diff --git a/AGENTS.md b/AGENTS.md
index 875b08b..6ea8546 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,28 @@ 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.
+- Without Dart Sass, non-Sass site generation still works.
 
 ## ppc64le patch
 
@@ -89,7 +89,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 +127,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 +140,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 +167,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..bcb8f6f 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,28 @@ 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, for example:
+
+```bash
+export DART_SASS_BINARY=/path/to/sass
+```
+
+Without Dart Sass, Hugo still builds sites; only Sass transformations such as `css.Sass` fail.
+
+
 ## Branches and releases
 
 | Branch | Purpose |

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-13 20:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 20:23 [rpms/hugo] rawhide: 📝 docs: Update packaging notes for Hugo 0.170.0 Justin Wheeler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox