commit:     8e01b6d92642b831beab864edaa9ca31ff49fdb7
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  5 03:57:22 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec  5 03:57:22 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e01b6d9

dev-util/rr: fix tests w/ clang 16

Tests are restricted right now but I've seen the patch so I may
as well throw it in, especially given upstream releases are
infrequent.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/rr/files/rr-5.6.0-tests-clang16.patch | 19 +++++++++++++++++++
 dev-util/rr/rr-5.6.0-r1.ebuild                 |  1 +
 2 files changed, 20 insertions(+)

diff --git a/dev-util/rr/files/rr-5.6.0-tests-clang16.patch 
b/dev-util/rr/files/rr-5.6.0-tests-clang16.patch
new file mode 100644
index 000000000000..8262b10817d4
--- /dev/null
+++ b/dev-util/rr/files/rr-5.6.0-tests-clang16.patch
@@ -0,0 +1,19 @@
+https://github.com/rr-debugger/rr/commit/548fab2071054cb7e906c53930b6fab19316dd61
+
+From 548fab2071054cb7e906c53930b6fab19316dd61 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <[email protected]>
+Date: Sat, 3 Dec 2022 12:44:48 +0100
+Subject: [PATCH] test: Include <sys/mount.h> in util.h
+
+The mount_ns_exec test needs it to call the mount function.
+--- a/src/test/util.h
++++ b/src/test/util.h
+@@ -80,6 +80,7 @@
+ #include <sys/ioctl.h>
+ #include <sys/ipc.h>
+ #include <sys/mman.h>
++#include <sys/mount.h>
+ #include <sys/msg.h>
+ #include <sys/prctl.h>
+ #include <sys/ptrace.h>
+

diff --git a/dev-util/rr/rr-5.6.0-r1.ebuild b/dev-util/rr/rr-5.6.0-r1.ebuild
index 096ff7b1f8c8..3092495a06e7 100644
--- a/dev-util/rr/rr-5.6.0-r1.ebuild
+++ b/dev-util/rr/rr-5.6.0-r1.ebuild
@@ -45,6 +45,7 @@ RESTRICT="test" # toolchain and kernel version dependent
 
 PATCHES=(
        "${FILESDIR}"/${P}-linux-headers-6.0.patch
+       "${FILESDIR}"/${P}-tests-clang16.patch
 )
 
 pkg_setup() {

Reply via email to