You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-Mojo-IOLoop-ReadWriteP.../0001-Match-on-armv7l-as-wel...

31 lines
1.3 KiB

From 153ab13dc9b99c1386b4d79d67582ccf2c21db8d Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Thu, 24 Jun 2021 14:41:04 -0700
Subject: [PATCH] Match on 'armv7l' as well as 'arm' for prctl detection
...as this is what the uname call gives on Fedora's 32-bit ARM
builders, at least. Not matching it ultimately leads to the
os-autoinst test suite failing on 32-bit ARM package builds.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
---
lib/Mojo/IOLoop/ReadWriteProcess/Session.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Mojo/IOLoop/ReadWriteProcess/Session.pm b/lib/Mojo/IOLoop/ReadWriteProcess/Session.pm
index 05ac53d..7de168d 100644
--- a/lib/Mojo/IOLoop/ReadWriteProcess/Session.pm
+++ b/lib/Mojo/IOLoop/ReadWriteProcess/Session.pm
@@ -155,7 +155,7 @@ sub _get_prctl_syscall {
: ($machine eq "ppc" || $machine eq "ppc64le") ? 171
: $machine eq "ia64" ? 1170
: $machine eq "alpha" ? 348
- : $machine eq "arm" ? 0x900000 + 172
+ : ($machine eq "arm" || $machine eq "armv7l") ? 0x900000 + 172
: $machine eq "avr32" ? 148
: $machine eq "mips" ? 4000 + 192
: $machine eq "mips64" ? 5000 + 153
--
2.32.0