Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Coverity

on:
push:
branches: [main]
branches:
- coverity
# - main

jobs:
coverity:
Expand Down
11 changes: 5 additions & 6 deletions make-srpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 \\
Expand Down
4 changes: 2 additions & 2 deletions src/csexec-loader-ppc64le.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down