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/, sys-process/audit/files/
Date: Sun, 23 Jun 2024 22:46:53 +0000 (UTC)	[thread overview]
Message-ID: <1719182774.acf4c3b19d2e93a66020970627da22e813747e2a.sam@gentoo> (raw)

commit:     acf4c3b19d2e93a66020970627da22e813747e2a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 23 22:46:14 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 23 22:46:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acf4c3b1

sys-process/audit: fix musl build

Closes: https://bugs.gentoo.org/934006
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-process/audit/audit-3.1.3.ebuild               |  2 +-
 .../audit/files/audit-3.1.3-musl-malloc.patch      | 28 ++++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/sys-process/audit/audit-3.1.3.ebuild b/sys-process/audit/audit-3.1.3.ebuild
index a7941a5d6676..e185e4615aae 100644
--- a/sys-process/audit/audit-3.1.3.ebuild
+++ b/sys-process/audit/audit-3.1.3.ebuild
@@ -46,7 +46,7 @@ BDEPEND="
 CONFIG_CHECK="~AUDIT"
 
 PATCHES=(
-	"${FILESDIR}"/${PN}-3.0.8-musl-malloc.patch
+	"${FILESDIR}"/${PN}-3.1.3-musl-malloc.patch
 )
 
 QA_CONFIG_IMPL_DECL_SKIP=(

diff --git a/sys-process/audit/files/audit-3.1.3-musl-malloc.patch b/sys-process/audit/files/audit-3.1.3-musl-malloc.patch
new file mode 100644
index 000000000000..01c440f3eb83
--- /dev/null
+++ b/sys-process/audit/files/audit-3.1.3-musl-malloc.patch
@@ -0,0 +1,28 @@
+https://bugs.gentoo.org/934006
+https://github.com/linux-audit/audit-userspace/commit/1dd6123e810ce255692a693a5d52a0c34cf432d0
+
+From 1dd6123e810ce255692a693a5d52a0c34cf432d0 Mon Sep 17 00:00:00 2001
+From: Steve Grubb <ausearch.1@gmail.com>
+Date: Mon, 1 Apr 2024 12:10:33 -0400
+Subject: [PATCH] Add empty macro to fix muscl c builds
+
+--- a/common/common.h
++++ b/common/common.h
+@@ -1,5 +1,5 @@
+-/* audit-fgets.h -- a replacement for glibc's fgets
+- * Copyright 2018,2022 Red Hat Inc.
++/* common.h -- common utility functions used throughout
++ * Copyright 2018-24 Red Hat Inc.
+  * All Rights Reserved.
+  *
+  * This library is free software; you can redistribute it and/or
+@@ -29,6 +29,9 @@
+ #ifndef __attr_access
+ #  define __attr_access(x)
+ #endif
++#ifndef __attribute_malloc__
++#  define __attribute_malloc__
++#endif
+ #ifndef __attr_dealloc
+ #  define __attr_dealloc(dealloc, argno)
+ #endif


             reply	other threads:[~2024-06-23 22:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-23 22:46 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-22  4:36 [gentoo-commits] repo/gentoo:master commit in: sys-process/audit/, sys-process/audit/files/ Jason Zaman
2021-09-07 16:22 Andreas Sturmlechner
2021-05-09  8:35 Lars Wendler
2021-01-01 22:57 Michał Górny
2018-12-13 17:16 Thomas Deutschmann
2017-01-15 11:20 Pacho Ramos

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=1719182774.acf4c3b19d2e93a66020970627da22e813747e2a.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