public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hugo] f45: 🔀 Merge branch 'rawhide' into f45
@ 2026-11-06 16:20 Justin Wheeler
  0 siblings, 0 replies; 5+ messages in thread
From: Justin Wheeler @ 2026-11-06 16:20 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/hugo
            Branch : f45
            Commit : dc8affbaa40dc208022642c5c0879d3c8a269ca6
            Author : Justin Wheeler <jwheel@fedoraproject.org>
            Date   : 2026-11-06T11:14:16-05:00
            Stats  : +281/-4 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/hugo/c/dc8affbaa40dc208022642c5c0879d3c8a269ca6?branch=f45

            Log:
            🔀 Merge branch 'rawhide' into f45

Keep `f45` on the shared `rawhide` history instead of letting branches
diverge further. The merge pulls in three commits: 0a4a00e drops the
redundant `GOTOOLCHAIN=local` export from `hugo.spec`, since Koji builds
have no network access and the Go toolchain cannot fetch another
release; 1d2e3cc documents the package in an expanded `README.md` and a
new `AGENTS.md`; and cbc872e extends `.gitignore` to cover source RPMs,
Mock results, and the 0.165.0 archives.

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

---
diff --git a/.gitignore b/.gitignore
index ab05012..b275675 100644
--- a/.gitignore
+++ b/.gitignore
@@ -58,9 +58,13 @@
 /hugo-0.160.1-vendor.tar.bz2
 /hugo-0.162.1-vendor.tar.bz2
 /hugo-0.162.1.tar.gz
+/hugo-0.165.0.tar.gz
+/hugo-0.165.0-vendor.tar.bz2
 /hugo-0.167.0-vendor.tar.bz2
 /hugo-0.167.0.tar.gz
 /hugo-0.168.0.tar.gz
 /hugo-0.168.0-vendor.tar.bz2
 /hugo-0.169.0.tar.gz
 /hugo-0.169.0-vendor.tar.bz2
+/results_hugo/
+/*.src.rpm

diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 0000000..5a70fb7
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,177 @@
+# AGENTS.md — Hugo RPM packaging notes
+
+This file is for agents and contributors working on the **Fedora `hugo` package** in this dist-git repository.
+It is not upstream Hugo documentation; upstream's own `AGENTS.md` is shipped in the binary RPM under `%doc`.
+
+## Package shape
+
+- Source: <https://github.com/gohugoio/hugo>
+- Built as **Hugo Extended** (`GO_BUILDTAGS="extended"`).
+- **Not** built with `withdeploy`.
+- `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.
+  All Go dependencies come from the generated vendor archive.
+
+## Go toolchain requirements
+
+Check `go.mod` (or the README) before bumping.
+The declared minimum is a build requirement only; Hugo does not need Go at runtime.
+
+| Hugo versions | Declared minimum Go |
+|---|---|
+| 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 |
+
+At the time of the 0.169.0 update:
+
+- rawhide and F45 had Go 1.27.3 / 1.27.1 and were eligible.
+- F44 and F43 had Go 1.26.10 and were **not** eligible.
+
+`GOTOOLCHAIN=local` is set in `%build` so the toolchain cannot download a different Go release during the build.
+
+## Updating the package
+
+1. Bump `Version:` in `hugo.spec`.
+2. Fetch the release archive:
+   ```bash
+   spectool -g hugo.spec
+   ```
+3. Regenerate the vendor archive (network access is allowed for source preparation, never during the RPM build):
+   ```bash
+   go_vendor_archive create --config go-vendor-tools.toml hugo.spec
+   ```
+   Edit `go-vendor-tools.toml` only if dependencies or license detection actually change.
+4. Verify the cumulative license expression:
+   ```bash
+   go_vendor_license --config go-vendor-tools.toml --path hugo.spec \
+       report --autofill=auto --verify-spec
+   ```
+   `askalono-cli` must be present (install `go-vendor-tools+askalono` or `askalono-cli` in the Mock chroot).
+   Do not hand-edit the `License:` tag without this check.
+5. Update `sources` and `.gitignore` for the new archives.
+6. Build an SRPM, then build and test in Mock (see below).
+
+Do not commit downloaded archives; they belong in lookaside.
+
+## LibSass: bundled, deliberately
+
+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:
+
+```
+Source3:        libsass-3.6.6.tar.gz
+```
+
+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
+```
+
+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.
+
+## ppc64le patch
+
+`0001-unix-linux-revert-ppc64x-syscall-assembly-wrapper.patch` works around `golang.org/x/sys` syscall trampoline crashes with external PIE linking on ppc64le.
+
+- 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.
+- This is Fedora-specific; do not assume upstream will take it.
+
+## Tests
+
+`%check` runs `%gocheck2` with a small exclusion list.
+Two test directories are skipped deliberately:
+
+- `internal/warpc` — fails on ppc64le.
+- `resources/images` — times out on riscv.
+
+Do not broaden these exclusions just to make a build pass.
+The remaining `-s Test...` skips cover tests that need network access or external services.
+
+## Known outstanding compliance issue: embedded WASM
+
+Hugo embeds five prebuilt WebAssembly programs in production code:
+
+```
+internal/warpc/wasm/avif.wasm
+internal/warpc/wasm/greet.wasm
+internal/warpc/wasm/quickjs.wasm
+internal/warpc/wasm/renderkatex.wasm
+internal/warpc/wasm/webp.wasm
+```
+
+They are executed by wazero at runtime and are shipped as-is.
+Rebuilding them from source is substantial:
+
+- `quickjs.wasm`, `greet.wasm`, `renderkatex.wasm`: Javy 9.1.0, esbuild, KaTeX 0.18.4.
+  **Javy is not packaged in Fedora.**
+- `webp.wasm`: WASI SDK 34, meson, ninja, libwebp sources.
+- `avif.wasm`: WASI SDK 34, libavif 1.4.2, aom 3.15.2, dav1d 1.5.4, libyuv, cmake.
+  **WASI SDK is not packaged in Fedora** (wasi-libc 34 is).
+
+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.
+
+## Validation workflow
+
+Use `fedpkg` and Mock, not the host package manager.
+
+```bash
+fedpkg srpm
+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.
+- 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
+```
+
+Scratch builds are for validation only and are **not** eligible for Bodhi.
+
+## Bodhi and release flow
+
+- A production build (`fedpkg build`) in rawhide normally causes Bodhi to create the update automatically once the build is tagged.
+- Verify instead of duplicating:
+  ```bash
+  bodhi updates query --builds hugo-<version>-<release>.fcXX
+  ```
+- 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 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.
+
+## Repository hygiene
+
+- Keep changes minimal; this package is maintained conservatively.
+- Do not commit or push without explicit approval.
+- Do not run production builds, lookaside uploads, or Bodhi actions without explicit approval.
+- Preserve local uncommitted work you did not create.

diff --git a/README.md b/README.md
index 20a6f8b..2686dd7 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,101 @@
-# hugo
+# Hugo for Fedora and EPEL
 
-The hugo package
\ No newline at end of file
+Welcome! 👋
+This is the Fedora dist-git repository for [Hugo](https://gohugo.io), the world's fastest framework for building websites.
+It holds the RPM spec, source metadata, patches, and vendor tooling needed to build Hugo for Fedora and EPEL.
+The upstream project lives at <https://github.com/gohugoio/hugo>; this repository is only about packaging it for Fedora.
+
+
+## What is Hugo?
+
+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.
+
+
+## What this repository contains
+
+| File | Purpose |
+|---|---|
+| `hugo.spec` | The RPM spec file. |
+| `sources` | SHA512 checksums for the upstream and vendor archives. |
+| `go-vendor-tools.toml` | Configuration for regenerating the vendor archive and checking licenses. |
+| `0001-unix-linux-revert-ppc64x-syscall-assembly-wrapper.patch` | ppc64le linking workaround, applied only on that architecture. |
+| `AGENTS.md` | Deeper packaging notes for agents and contributors. |
+
+Downloaded source archives are kept in Fedora's lookaside cache, not in git.
+
+
+## How the package works
+
+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 and sets `GOTOOLCHAIN=local` so the toolchain cannot download a different Go release mid-build.
+The resulting binary is `/usr/bin/hugo`, built with the `extended` tag and without `withdeploy`.
+The test suite runs in `%check` with a small, documented exclusion list.
+
+
+## Branches and releases
+
+| Branch | Purpose |
+|---|---|
+| `rawhide` | Development branch for the next Fedora release. |
+| `f43`, `f44`, `f45` | Current Fedora stable branches. |
+| `epel10` | EPEL 10. |
+
+The `Version:` field in `hugo.spec` is the source of truth for what each branch ships.
+Fedora's Go toolchain can lag behind upstream's minimum, so check `go.mod` before bumping; `AGENTS.md` has a version table.
+
+
+## Building and testing locally
+
+Use `fedpkg` so that the Mock configuration matches Fedora's buildroots:
+
+```bash
+fedpkg srpm
+fedpkg mockbuild
+```
+
+For a Koji scratch build across all architectures:
+
+```bash
+fedpkg scratch-build
+```
+
+
+## How updates reach users
+
+`fedpkg build` sends the package to Koji.
+A successful build is tagged into the candidate tag, and Bodhi creates an update from there.
+On stable branches the update moves through `updates-testing` to stable after karma or time; rawhide updates go straight to stable.
+Security updates can be marked as such in Bodhi so they follow the accelerated flow.
+
+
+## Package maintainers
+
+The Fedora `hugo` package is maintained by:
+
+| FAS account | Name | Role |
+|---|---|---|
+| [`athoscr`](https://src.fedoraproject.org/user/athoscr) | Athos Ribeiro | Owner |
+| [`mikep`](https://src.fedoraproject.org/user/mikep) | W. Michael Petullo | Admin |
+| [`neil`](https://src.fedoraproject.org/user/neil) | Neil Hanlon | Admin |
+| [`jflory7`](https://src.fedoraproject.org/user/jflory7) | Justin Wheeler | Committer |
+
+The [`go-sig`](https://fedoraproject.org/wiki/SIGs/Go) group has admin access, and [`epel-packagers-sig`](https://fedoraproject.org/wiki/SIGs/EPEL) has commit access for EPEL.
+
+
+## Getting help and contributing
+
+Bug reports and feature requests for the package go to [Bugzilla](https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=hugo) under the `hugo` component.
+Packaging questions can go to the [Fedora Go SIG](https://fedoraproject.org/wiki/SIGs/Go) or the [epel-devel mailing list](https://lists.fedoraproject.org/archives/list/epel-devel@lists.fedoraproject.org/).
+Pull requests against this repository are welcome; please keep changes focused and explain the reasoning.
+
+
+## Learn more
+
+- [Hugo documentation](https://gohugo.io/documentation/)
+- [Hugo releases](https://github.com/gohugoio/hugo/releases)
+- [Fedora Packaging Guidelines](https://docs.fedoraproject.org/en-US/packaging-guidelines/)
+- [`AGENTS.md`](AGENTS.md) in this repository

diff --git a/hugo.spec b/hugo.spec
index 7296d5a..f896fed 100644
--- a/hugo.spec
+++ b/hugo.spec
@@ -71,8 +71,6 @@ tar xvf %SOURCE3 -C vendor/github.com/bep/golibsass/libsass_src --strip-componen
 # https://bugzilla.redhat.com/show_bug.cgi?id=2428281
 %global __golang_extldflags -Wl,-z,undefs -Wl,-z,notext
 
-# Never let the toolchain fetch another Go release at build time.
-export GOTOOLCHAIN=local
 %global gomodulesmode GO111MODULE=on
 # Build extended version of Hugo.
 export GO_BUILDTAGS="extended"

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [rpms/hugo] f45: 🔀 Merge branch 'rawhide' into f45
@ 2026-11-15 10:16 Justin Wheeler
  0 siblings, 0 replies; 5+ messages in thread
From: Justin Wheeler @ 2026-11-15 10:16 UTC (permalink / raw)
  To: git-commits

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [rpms/hugo] f45: 🔀 Merge branch 'rawhide' into f45
@ 2026-11-07 14:52 Justin Wheeler
  0 siblings, 0 replies; 5+ messages in thread
From: Justin Wheeler @ 2026-11-07 14:52 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/hugo
            Branch : f45
            Commit : 9ef82a3959eec2c46ae2755995cd83d2338a28d7
            Author : Justin Wheeler <jwheel@fedoraproject.org>
            Date   : 2026-11-07T09:51:25-05:00
            Stats  : +2/-2 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/hugo/c/9ef82a3959eec2c46ae2755995cd83d2338a28d7?branch=f45

            Log:
            🔀 Merge branch 'rawhide' into f45

Bring the docs updates from `rawhide` down.

---
diff --git a/AGENTS.md b/AGENTS.md
index 5a70fb7..875b08b 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -29,7 +29,7 @@ At the time of the 0.169.0 update:
 - rawhide and F45 had Go 1.27.3 / 1.27.1 and were eligible.
 - F44 and F43 had Go 1.26.10 and were **not** eligible.
 
-`GOTOOLCHAIN=local` is set in `%build` so the toolchain cannot download a different Go release during the build.
+Koji builds have no network access, so the Go toolchain cannot download an alternative release during a build.
 
 ## Updating the package
 

diff --git a/README.md b/README.md
index 2686dd7..f10a258 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,7 @@ 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 and sets `GOTOOLCHAIN=local` so the toolchain cannot download a different Go release mid-build.
+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 test suite runs in `%check` with a small, documented exclusion list.
 

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [rpms/hugo] f45: 🔀 Merge branch 'rawhide' into f45
@ 2026-11-06  3:41 Justin Wheeler
  0 siblings, 0 replies; 5+ messages in thread
From: Justin Wheeler @ 2026-11-06  3:41 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/hugo
            Branch : f45
            Commit : 17a3f6ab08984a535f63f327a5fc4cf9028ddfcb
            Author : Justin Wheeler <jwheel@fedoraproject.org>
            Date   : 2026-11-05T22:39:47-05:00
            Stats  : +10/-4 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/hugo/c/17a3f6ab08984a535f63f327a5fc4cf9028ddfcb?branch=f45

            Log:
            🔀 Merge branch 'rawhide' into f45

Merge `rawhide` at 97089dd into `f45` to bring the 0.169.0 update
across.

A fast-forward is impossible because `f45` carries branch-specific
commits for the 0.167.0 and 0.168.0 updates, the RISC-V fix, and the
earlier rawhide merge, so this merge commit is used instead of a
fast-forward.

No conflicts occur: the `f45` tree matches the rawhide parent commit
exactly, and the merge result differs only by the version bump, source
hashes, Go 1.27.0 requirement, `GOTOOLCHAIN=local`, and the `AGENTS.md`
and `SECURITY.md` documentation change.

Bundled LibSass, `libsass-3.6.6.tar.gz`, and the ppc64le patch are
carried over unchanged, and both 0.169.0 tarballs already exist in
lookaside.

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

---
diff --git a/.gitignore b/.gitignore
index af1b338..ab05012 100644
--- a/.gitignore
+++ b/.gitignore
@@ -62,3 +62,5 @@
 /hugo-0.167.0.tar.gz
 /hugo-0.168.0.tar.gz
 /hugo-0.168.0-vendor.tar.bz2
+/hugo-0.169.0.tar.gz
+/hugo-0.169.0-vendor.tar.bz2

diff --git a/hugo.spec b/hugo.spec
index 23e4acb..7296d5a 100644
--- a/hugo.spec
+++ b/hugo.spec
@@ -19,7 +19,7 @@
 
 # https://github.com/gohugoio/hugo
 %global goipath         github.com/gohugoio/hugo
-Version:                0.168.0
+Version:                0.169.0
 
 %gometa -L -f
 
@@ -43,6 +43,8 @@ Patch0:         0001-unix-linux-revert-ppc64x-syscall-assembly-wrapper.patch
 
 BuildRequires:  go-vendor-tools
 BuildRequires:  gcc-c++
+# Hugo 0.166.0 and later declare "go 1.27.0" in go.mod.
+BuildRequires:  golang >= 1.27.0
 
 %description
 The world’s fastest framework for building websites.
@@ -69,6 +71,8 @@ tar xvf %SOURCE3 -C vendor/github.com/bep/golibsass/libsass_src --strip-componen
 # https://bugzilla.redhat.com/show_bug.cgi?id=2428281
 %global __golang_extldflags -Wl,-z,undefs -Wl,-z,notext
 
+# Never let the toolchain fetch another Go release at build time.
+export GOTOOLCHAIN=local
 %global gomodulesmode GO111MODULE=on
 # Build extended version of Hugo.
 export GO_BUILDTAGS="extended"
@@ -102,7 +106,7 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
 %endif
 
 %files -f %{go_vendor_license_filelist}
-%doc docs AGENTS.md CLAUDE.md CONTRIBUTING.md README.md SECURITY.md
+%doc docs AGENTS.md CONTRIBUTING.md README.md SECURITY.md
 %{_bindir}/hugo
 
 

diff --git a/sources b/sources
index e6a415c..e2b713f 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-SHA512 (hugo-0.168.0.tar.gz) = d7b7a52e730f03b3f740e621a5814643d3d8979a45d806d2a9d2748684ad4899366799e668c3118d0e8431332ab190bcabb0656c50d93575c68044736f35f62e
-SHA512 (hugo-0.168.0-vendor.tar.bz2) = c20dc8f34e14a234a339937e612322895533286bc9ce811bbb957ec7fe95398182e9bbda864884f0e4899430c060e190bb8216e113eb8ac03b9713c1c2c43bcd
+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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [rpms/hugo] f45: Merge branch 'rawhide' into f45
@ 2026-10-15  4:25 Justin Wheeler
  0 siblings, 0 replies; 5+ messages in thread
From: Justin Wheeler @ 2026-10-15  4:25 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/hugo
Branch : f45
Commit : ac98468fdba6c9db885095a3b63a5cc3fb634a7c
Author : Justin Wheeler <jwheel@fedoraproject.org>
Date   : 2026-10-15T00:25:12-04:00
Stats  : +99/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/hugo/c/ac98468fdba6c9db885095a3b63a5cc3fb634a7c?branch=f45

Log:
Merge branch 'rawhide' into f45

---
diff --git a/0001-unix-linux-revert-ppc64x-syscall-assembly-wrapper.patch b/0001-unix-linux-revert-ppc64x-syscall-assembly-wrapper.patch
new file mode 100644
index 0000000..103599a
--- /dev/null
+++ b/0001-unix-linux-revert-ppc64x-syscall-assembly-wrapper.patch
@@ -0,0 +1,91 @@
+Restore Go syscall wrappers for ppc64x PIE builds
+
+The assembly trampolines introduced by x/sys commit
+b6b8557e8e2974925aec7a136ba0e323eedc5f43 cause a crash during
+fatih/color initialization on Fedora ppc64le with external PIE linking.
+Restore the Go wrappers and their build constraints, but mark their
+uintptr arguments as escaping so pointers passed through these wrappers
+remain live (the issue the assembly change was intended to address).
+
+--- a/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s
++++ b/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s
+@@ -13,16 +13,6 @@
+ // Just jump to package syscall's implementation for all these functions.
+ // The runtime may know about them.
+ 
+-TEXT ·Syscall(SB),NOSPLIT,$0-56
+-	MOVD	$syscall·Syscall(SB), R31
+-	MOVD	R31, CTR
+-	JMP	(CTR)
+-
+-TEXT ·Syscall6(SB),NOSPLIT,$0-80
+-	MOVD	$syscall·Syscall6(SB), R31
+-	MOVD	R31, CTR
+-	JMP	(CTR)
+-
+ TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
+ 	BL	runtime·entersyscall(SB)
+ 	MOVD	a1+8(FP), R3
+@@ -38,16 +28,6 @@
+ 	BL	runtime·exitsyscall(SB)
+ 	RET
+ 
+-TEXT ·RawSyscall(SB),NOSPLIT,$0-56
+-	MOVD	$syscall·RawSyscall(SB), R31
+-	MOVD	R31, CTR
+-	JMP	(CTR)
+-
+-TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
+-	MOVD	$syscall·RawSyscall6(SB), R31
+-	MOVD	R31, CTR
+-	JMP	(CTR)
+-
+ TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
+ 	MOVD	a1+8(FP), R3
+ 	MOVD	a2+16(FP), R4
+--- a/vendor/golang.org/x/sys/unix/syscall_unix_gc.go
++++ b/vendor/golang.org/x/sys/unix/syscall_unix_gc.go
+@@ -2,7 +2,7 @@
+ // Use of this source code is governed by a BSD-style
+ // license that can be found in the LICENSE file.
+ 
+-//go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && gc
++//go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc
+ 
+ package unix
+ 
+--- /dev/null
++++ b/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go
+@@ -0,0 +1,32 @@
++// Copyright 2018 The Go Authors. All rights reserved.
++// Use of this source code is governed by a BSD-style
++// license that can be found in the LICENSE file.
++
++//go:build linux && (ppc64le || ppc64) && gc
++
++package unix
++
++import "syscall"
++
++// Keep pointers converted to uintptr alive across the Go wrappers.
++// See https://go.dev/issue/81981.
++
++//go:uintptrescapes
++func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
++	return syscall.Syscall(trap, a1, a2, a3)
++}
++
++//go:uintptrescapes
++func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
++	return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6)
++}
++
++//go:uintptrescapes
++func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
++	return syscall.RawSyscall(trap, a1, a2, a3)
++}
++
++//go:uintptrescapes
++func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
++	return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6)
++}

diff --git a/hugo.spec b/hugo.spec
index 7fcbf87..23e4acb 100644
--- a/hugo.spec
+++ b/hugo.spec
@@ -38,6 +38,9 @@ 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++
 
@@ -45,9 +48,13 @@ BuildRequires:  gcc-c++
 The world’s fastest framework for building websites.
 
 %prep
-%goprep -p1
+%goprep
 tar -xf %{S:1}
 
+%ifarch ppc64le
+%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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-15 10:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 16:20 [rpms/hugo] f45: 🔀 Merge branch 'rawhide' into f45 Justin Wheeler
  -- strict thread matches above, loose matches on Subject: below --
2026-11-15 10:16 Justin Wheeler
2026-11-07 14:52 Justin Wheeler
2026-11-06  3:41 Justin Wheeler
2026-10-15  4:25 [rpms/hugo] f45: " Justin Wheeler

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