From d6bfefc4cccc57534c66097bb1491e166a0b6b2a Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 19 Jun 2026 15:38:43 +0200 Subject: [PATCH 1/3] csexec-loader: fix ppc64le inline asm syntax rejected by newer binutils The `$0x7F` immediate prefix is x86 AT&T syntax, not valid PowerPC. Newer binutils on Fedora 44+ treats it as a symbol reference, causing a relocation in .text that the linker rejects for a shared object: ``` /usr/bin/ld.bfd: error: read-only segment has dynamic relocations ``` Also fix `mr %%r0, 1` (move register, expects two registers) to `li %%r0, 1` (load immediate), matching the existing `li` usage for the `execve` syscall number on the same code path. Co-Authored-By: Claude Opus 4.6 --- src/csexec-loader-ppc64le.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/csexec-loader-ppc64le.c b/src/csexec-loader-ppc64le.c index 5643c2d..0367b84 100644 --- a/src/csexec-loader-ppc64le.c +++ b/src/csexec-loader-ppc64le.c @@ -60,8 +60,8 @@ void _start(void) "mr %%r4, %1;" // exec_args "mr %%r5, %2;" // env "sc;" // ppc64 syscall insn - "li %%r3, $0x7F;" // execve() has failed, handle it as ENOENT - "mr %%r0, 1;" // exit() + "li %%r3, 0x7F;" // execve() has failed, handle it as ENOENT + "li %%r0, 1;" // exit() "sc" : : "r" (CSEXEC_BIN) // %0 , "r" (exec_args) // %1 From a667edc15743299ce70038cc72dc95e3216d369c Mon Sep 17 00:00:00 2001 From: Sam Fowler Date: Fri, 19 Jun 2026 09:08:06 +0200 Subject: [PATCH 2/3] make-srpm.sh: update cmake macros and deps for cmake4 It seems that %cmake3 macros are no long provided in rawhide, nor is there a `Provides: cmake3`. https://fedoraproject.org/wiki/Changes/CMake4.0 --- make-srpm.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/make-srpm.sh b/make-srpm.sh index d81bba5..2f282ba 100755 --- a/make-srpm.sh +++ b/make-srpm.sh @@ -79,7 +79,6 @@ fi cat > "$SPEC" << EOF # Disable in source builds on EPEL <9 %undefine __cmake_in_source_build -%undefine __cmake3_in_source_build %define csexec_archs aarch64 ppc64le s390x x86_64 @@ -93,7 +92,7 @@ URL: https://github.com/csutils/%{name} Source0: https://github.com/csutils/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz BuildRequires: asciidoc -BuildRequires: cmake3 +BuildRequires: cmake BuildRequires: gcc # csmock copies the resulting cswrap binary into mock chroot, which may contain @@ -131,16 +130,16 @@ fully automatically. %autosetup %build -%cmake3 \\ +%cmake \\ -DPATH_TO_WRAP=\"%{_libdir}/cswrap\" \\ -DSTATIC_LINKING=ON -%cmake3_build +%cmake_build %check -%ctest3 +%ctest %install -%cmake3_install +%cmake_install install -m0755 -d "%{buildroot}%{_libdir}"{,/cswrap} for i in c++ cc g++ gcc clang clang++ cppcheck smatch \\ From c8899149720ae41d805e2d03e1096c5316690aca Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 19 Jun 2026 09:08:20 +0200 Subject: [PATCH 3/3] ci: disable Coverity on the `main` branch temporarily The service has been down for quite some time now causing the CI to fail: ``` curl https://scan.coverity.com/download/other/linux64 \ % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 59 0 0 100 59 0 378 --:--:-- --:--:-- --:--:-- 378 100 1608 0 1549 100 59 7470 284 --:--:-- --:--:-- --:--:-- 7730 Error: Unable to process file command 'output' successfully. Error: Invalid format ' ' ``` --- .github/workflows/coverity.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 0d0d3ed..dc5a2f6 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -3,7 +3,9 @@ name: Coverity on: push: - branches: [main] + branches: + - coverity + # - main jobs: coverity: