public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/audit/files/, sys-process/audit/
Date: Sat, 05 Jul 2025 04:53:27 +0000 (UTC)	[thread overview]
Message-ID: <1751690829.d1f53d5bae5657db01f6aac127f352e21ccf14eb.sam@gentoo> (raw)

commit:     d1f53d5bae5657db01f6aac127f352e21ccf14eb
Author:     Cristian Othón Martínez Vera <cfuga <AT> cfuga <DOT> mx>
AuthorDate: Fri Jul  4 21:48:04 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul  5 04:47:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1f53d5b

sys-process/audit: fix musl build with POSIX basename(3) include

Since musl 1.2.5, ```basename(3)``` is strict-POSIX compliant, and
needs ```#include <libgen.h>```, instead of the GNU version included
with ```<string.h>```

Signed-off-by: Cristian Othón Martínez Vera <cfuga <AT> cfuga.mx>
Part-of: https://github.com/gentoo/gentoo/pull/42873
Closes: https://github.com/gentoo/gentoo/pull/42873
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-process/audit/audit-4.0.2-r1.ebuild                 |  4 ++++
 sys-process/audit/files/audit-4.0.1-musl-basename.patch | 14 ++++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/sys-process/audit/audit-4.0.2-r1.ebuild b/sys-process/audit/audit-4.0.2-r1.ebuild
index 874b82839ae6..e9627061502f 100644
--- a/sys-process/audit/audit-4.0.2-r1.ebuild
+++ b/sys-process/audit/audit-4.0.2-r1.ebuild
@@ -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/sys-process/audit/files/audit-4.0.1-musl-basename.patch b/sys-process/audit/files/audit-4.0.1-musl-basename.patch
new file mode 100644
index 000000000000..08b74caf8ac2
--- /dev/null
+++ b/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 <libgen.h>, instead of the GNU version included
+with <string.h>
+
+--- a/audisp/plugins/zos-remote/zos-remote-config.c
++++ b/audisp/plugins/zos-remote/zos-remote-config.c
+@@ -32,6 +32,7 @@
+ #include <ctype.h>
+ #include <unistd.h>
+ #include <stdlib.h>
++#include <libgen.h>
+ #include "zos-remote-log.h"
+ 
+ /* Local prototypes */


             reply	other threads:[~2025-07-05  4:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-05  4:53 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-01 16:56 [gentoo-commits] repo/gentoo:master commit in: sys-process/audit/files/, sys-process/audit/ Andreas K. Hüttel
2024-07-15  3:32 Sam James
2024-07-14 23:15 Jason Zaman
2022-08-16  0:19 Sam James
2022-04-07  3:37 Sam James
2021-01-01 22:57 Michał Górny
2021-01-01  2:03 Michał Górny
2015-08-18  4:30 Jason Zaman

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=1751690829.d1f53d5bae5657db01f6aac127f352e21ccf14eb.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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