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: Thu, 15 Oct 2026 04:25:48 GMT	[thread overview]
Message-ID: <179203834808.1.8152895322647428167.rpms-hugo-ac98468fdba6@fedoraproject.org> (raw)

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

             reply	other threads:[~2026-10-15  4:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-15  4:25 Justin Wheeler [this message]
2026-11-06  3:41 [rpms/hugo] f45: 🔀 Merge branch 'rawhide' into f45 Justin Wheeler
2026-11-06 16:20 Justin Wheeler
2026-11-07 14:52 Justin Wheeler
2026-11-15 10:16 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=179203834808.1.8152895322647428167.rpms-hugo-ac98468fdba6@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