Github messages for voidlinux
 help / color / mirror / Atom feed
From: MIvanchev <MIvanchev@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] audit: update to 3.1.4
Date: Sun, 16 Jun 2024 09:50:02 +0200	[thread overview]
Message-ID: <20240616075002.317B92BB75@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-50666@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 383 bytes --]

There is an updated pull request by MIvanchev against master on the void-packages repository

https://github.com/MIvanchev/void-packages audit
https://github.com/void-linux/void-packages/pull/50666

audit: update to 3.1.4
#### Testing the changes
- I tested the changes in this PR: **NO**


A patch file from https://github.com/void-linux/void-packages/pull/50666.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-audit-50666.patch --]
[-- Type: text/x-diff, Size: 3892 bytes --]

From 461847aa9bd98f74e24be411c1210e0c82916d1c Mon Sep 17 00:00:00 2001
From: Mihail Ivanchev <contact@ivanchev.net>
Date: Sun, 2 Jun 2024 22:28:22 +0200
Subject: [PATCH] audit: update to 3.1.4

---
 srcpkgs/audit/files/musl.patch | 43 ++++++++++++++++++++++++++++++++++
 srcpkgs/audit/template         | 13 +++++++---
 2 files changed, 53 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/audit/files/musl.patch

diff --git a/srcpkgs/audit/files/musl.patch b/srcpkgs/audit/files/musl.patch
new file mode 100644
index 00000000000000..4a6c77d7e5bdf1
--- /dev/null
+++ b/srcpkgs/audit/files/musl.patch
@@ -0,0 +1,43 @@
+diff --git a/audisp/plugins/remote/queue.c b/audisp/plugins/remote/queue.c
+index bd9f9bd5..16aabb61 100644
+--- a/audisp/plugins/remote/queue.c
++++ b/audisp/plugins/remote/queue.c
+@@ -49,10 +49,8 @@ struct queue
+ };
+ 
+ /* Local Declarations */
+-static int full_pread(int fd, void *buf, size_t size, off_t offset)
+-	__attr_access ((__write_only__, 2, 3));
+-static int full_pwrite(int fd, const void *buf, size_t size, off_t offset)
+-	__attr_access ((__read_only__, 2, 3));
++static int full_pread(int fd, void *buf, size_t size, off_t offset);
++static int full_pwrite(int fd, const void *buf, size_t size, off_t offset);
+ 
+ /* Compile-time expression verification */
+ #define verify(E) do {				\
+diff --git a/audisp/plugins/remote/queue.h b/audisp/plugins/remote/queue.h
+index 2c70e839..05a2eafc 100644
+--- a/audisp/plugins/remote/queue.h
++++ b/audisp/plugins/remote/queue.h
+@@ -54,7 +54,7 @@ void q_close(struct queue *q);
+  * On error, return NULL and set errno. */
+ struct queue *q_open(int q_flags, const char *path, size_t num_entries,
+ 		     size_t entry_size)
+-	__attribute_malloc__ __attr_dealloc (q_close, 1) __wur;
++	__attribute__((__malloc__)) __attr_dealloc (q_close, 1) __wur;
+ 
+ /* Add DATA to tail of Q. Return 0 on success, -1 on error and set errno. */
+ int q_append(struct queue *q, const char *data);
+diff --git a/auparse/auparse.h b/auparse/auparse.h
+index 6c48967a..c5cdb66d 100644
+--- a/auparse/auparse.h
++++ b/auparse/auparse.h
+@@ -55,7 +55,7 @@ typedef void (*auparse_callback_ptr)(auparse_state_t *au,
+ void auparse_destroy(auparse_state_t *au);
+ void auparse_destroy_ext(auparse_state_t *au, auparse_destroy_what_t what);
+ auparse_state_t *auparse_init(ausource_t source, const void *b)
+-	__attribute_malloc__ __attr_dealloc (auparse_destroy, 1);
++	__attribute__((__malloc__)) __attr_dealloc (auparse_destroy, 1);
+ int auparse_new_buffer(auparse_state_t *au, const char *data, size_t data_len)
+ 	__attr_access ((__read_only__, 2, 3));
+ int auparse_feed(auparse_state_t *au, const char *data, size_t data_len)
diff --git a/srcpkgs/audit/template b/srcpkgs/audit/template
index 63913bc07c31b6..56f94480fbd23d 100644
--- a/srcpkgs/audit/template
+++ b/srcpkgs/audit/template
@@ -1,7 +1,7 @@
 # Template file for 'audit'
 pkgname=audit
-version=3.0.3
-revision=6
+version=3.1.4
+revision=1
 build_style=gnu-configure
 configure_args="--libdir=/usr/lib --enable-shared=audit --enable-gssapi-krb5
  --with-apparmor --with-libcap-ng --with-python3"
@@ -15,13 +15,20 @@ license="GPL-2.0-or-later, LGPL-2.0-or-later"
 homepage="https://people.redhat.com/sgrubb/audit"
 changelog="https://raw.githubusercontent.com/linux-audit/audit-userspace/master/ChangeLog"
 distfiles="${homepage}/${pkgname}-${version}.tar.gz"
-checksum=23777e1dc9a80a2ee06a4d442a6a0a9bcbf1ae7ee4b5738a220ff619738cc904
+checksum=220a78cf35e6a7c57f42fcfc42b759692641c7e8e0e39c9844fbc0aa51783631
 
 case "$XBPS_TARGET_MACHINE" in
 	*-musl) configure_args+=" --disable-zos-remote" ;;
 	*) ;;
 esac
 
+post_patch() {
+	case "$XBPS_TARGET_MACHINE" in
+		*-musl) patch -Np1 -i "${FILESDIR}/musl.patch" ;;
+		*) ;;
+	esac
+}
+
 post_install() {
 	vinstall rules/10-base-config.rules 644 etc/audit/rules.d
 	vmkdir usr/share/examples/audit/rules.d

  parent reply	other threads:[~2024-06-16  7:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-02 20:28 [PR PATCH] " MIvanchev
2024-06-02 20:33 ` MIvanchev
2024-06-15 20:07 ` piekay
2024-06-15 21:13 ` piekay
2024-06-16  7:47 ` [PR PATCH] [Updated] " MIvanchev
2024-06-16  7:50 ` MIvanchev [this message]
2024-06-16  7:54 ` MIvanchev
2024-06-16  8:02 ` MIvanchev
2024-06-17 17:18 ` piekay
2024-06-17 20:03 ` [PR PATCH] [Updated] " MIvanchev
2024-06-17 20:04 ` MIvanchev
2024-06-17 20:17 ` [PR PATCH] [Updated] " MIvanchev
2024-06-18 16:47 ` [PR REVIEW] " classabbyamp
2024-06-19  7:01 ` [PR PATCH] [Updated] " MIvanchev
2024-06-19  7:26 ` MIvanchev
2024-06-21 23:50 ` [PR PATCH] [Merged]: " classabbyamp

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=20240616075002.317B92BB75@inbox.vuxu.org \
    --to=mivanchev@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).