From f6b105cd80f88fe43a09fd26cf672925264b36cb Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 7 Jul 2025 07:15:31 +0000 Subject: [PATCH] sys-process/audit: Sync with Gentoo It's from Gentoo commit d1f53d5bae5657db01f6aac127f352e21ccf14eb. --- .../sys-process/audit/audit-4.0.2-r1.ebuild | 6 +++++- .../audit/files/audit-4.0.1-musl-basename.patch | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 sdk_container/src/third_party/portage-stable/sys-process/audit/files/audit-4.0.1-musl-basename.patch diff --git a/sdk_container/src/third_party/portage-stable/sys-process/audit/audit-4.0.2-r1.ebuild b/sdk_container/src/third_party/portage-stable/sys-process/audit/audit-4.0.2-r1.ebuild index ccaff3704f..e962706150 100644 --- a/sdk_container/src/third_party/portage-stable/sys-process/audit/audit-4.0.2-r1.ebuild +++ b/sdk_container/src/third_party/portage-stable/sys-process/audit/audit-4.0.2-r1.ebuild @@ -17,7 +17,7 @@ SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz" LICENSE="GPL-2+ LGPL-2.1+" SLOT="0" -KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86" IUSE="gssapi io-uring ldap python static-libs test" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" @@ -51,6 +51,10 @@ QA_CONFIG_IMPL_DECL_SKIP=( strndupa ) +PATCHES=( + "${FILESDIR}/${PN}-4.0.1-musl-basename.patch" +) + src_prepare() { # audisp-remote moved in multilib_src_install_all sed -i \ diff --git a/sdk_container/src/third_party/portage-stable/sys-process/audit/files/audit-4.0.1-musl-basename.patch b/sdk_container/src/third_party/portage-stable/sys-process/audit/files/audit-4.0.1-musl-basename.patch new file mode 100644 index 0000000000..08b74caf8a --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-process/audit/files/audit-4.0.1-musl-basename.patch @@ -0,0 +1,14 @@ +Since musl 1.2.5, basename(3) is strict-POSIX compliant, and +needs #include , instead of the GNU version included +with + +--- a/audisp/plugins/zos-remote/zos-remote-config.c ++++ b/audisp/plugins/zos-remote/zos-remote-config.c +@@ -32,6 +32,7 @@ + #include + #include + #include ++#include + #include "zos-remote-log.h" + + /* Local prototypes */