mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-libs/uid_wrapper: fix tests on x32
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
32
sys-libs/uid_wrapper/files/uid_wrapper-1.3.2-tests-x32.patch
Normal file
32
sys-libs/uid_wrapper/files/uid_wrapper-1.3.2-tests-x32.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
https://git.samba.org/?p=uid_wrapper.git;a=commit;h=ea8abbaaeb793438824c44bb2a5ea490054232ad
|
||||
|
||||
From ea8abbaaeb793438824c44bb2a5ea490054232ad Mon Sep 17 00:00:00 2001
|
||||
From: Helge Deller <deller@gmx.de>
|
||||
Date: Fri, 8 Nov 2024 08:36:17 +0100
|
||||
Subject: [PATCH] Fix x32 syscall
|
||||
|
||||
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1086769
|
||||
|
||||
Signed-off-by: Simon Josefsson <simon@josefsson.org>
|
||||
Reviewed-by: Andreas Schneider <asn@samba.org>
|
||||
---
|
||||
tests/uwrap_fake_socket_wrapper.h | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/uwrap_fake_socket_wrapper.h b/tests/uwrap_fake_socket_wrapper.h
|
||||
index 63e423a..f86e543 100644
|
||||
--- a/tests/uwrap_fake_socket_wrapper.h
|
||||
+++ b/tests/uwrap_fake_socket_wrapper.h
|
||||
@@ -1,7 +1,9 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
/* simulate socket_wrapper hooks */
|
||||
-#define __FAKE_SOCKET_WRAPPER_SYSCALL_NO 123456789
|
||||
+/* Use fake number higher than x32 architecture syscalls which
|
||||
+ * start at __X32_SYSCALL_BIT (0x40000000) */
|
||||
+#define __FAKE_SOCKET_WRAPPER_SYSCALL_NO 0x4f000000
|
||||
#define __FAKE_SOCKET_WRAPPER_SYSCALL_RC 987654321
|
||||
bool socket_wrapper_syscall_valid(long int sysno);
|
||||
long int socket_wrapper_syscall_va(long int sysno, va_list va);
|
||||
--
|
||||
2.34.1
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -20,6 +20,10 @@ RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="test? ( dev-util/cmocka )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-tests-x32.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DUNIT_TESTING=$(usex test)
|
||||
|
||||
Reference in New Issue
Block a user