projects/aports·blob master · refs

32 lines · 1.1 KiB

1From 9c4508c7ad7ff47aab001c4d7e996491c2a64d85 Mon Sep 17 00:00:00 2001
2From: Oneric <[email protected]>
3Date: Thu, 22 Jan 2026 00:00:00 +0000
4Subject: [PATCH] Don't run io_uring tests on kernels lacking support
5
6Even if the native Alpine kernel doesn't support io_uring,
7building postgres with uring support enabled may still be
8beneficial for setups where Alpine containers are used
9on a host with a non-Alpine kernel.
10---
11 src/test/modules/test_aio/t/001_aio.pl | 5 ++++-
12 1 file changed, 4 insertions(+), 1 deletion(-)
13
14diff --git a/src/test/modules/test_aio/t/001_aio.pl b/src/test/modules/test_aio/t/001_aio.pl
15index 3f0453619e8..fc64d181480 100644
16--- a/src/test/modules/test_aio/t/001_aio.pl
17+++ b/src/test/modules/test_aio/t/001_aio.pl
18@@ -125,7 +125,10 @@ sub have_io_uring
19 my $methods = $1;
20 note "supported io_method values are: $methods";
21
22- return ($methods =~ m/io_uring/) ? 1 : 0;
23+ # ensure kernel also offers io_uring syscalls
24+ my $res = system_log [qw(grep io_uring_setup /proc/kallsyms)];
25+
26+ return ($res == 0 and $methods =~ m/io_uring/) ? 1 : 0;
27 }
28
29 sub psql_like
30--
312.47.3
32