]> git.pld-linux.org Git - packages/sudo.git/commitdiff
- rel 2, fix x32 build auto/th/sudo-1.9.11p1-2
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 11 Jun 2022 19:40:03 +0000 (21:40 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 11 Jun 2022 19:40:03 +0000 (21:40 +0200)
sudo.spec
x32.patch [new file with mode: 0644]

index ed4ad2775ce1900b2191b64f0d4e4ca1b3125fac..907c0cf92a981d8ad2d315f1b7c8f44f62011a0d 100644 (file)
--- a/sudo.spec
+++ b/sudo.spec
@@ -30,7 +30,7 @@ Summary(uk.UTF-8):    Дозволяє вказаним користувачам в
 Name:          sudo
 # please see docs/UPGRADE.md for important changes each time updating sudo
 Version:       1.9.11p1
-Release:       1
+Release:       2
 Epoch:         1
 License:       BSD
 Group:         Applications/System
@@ -41,6 +41,7 @@ Source2:      %{name}-i.pamd
 Patch0:                %{name}-env.patch
 Patch1:                config.patch
 Patch2:                %{name}-sh.patch
+Patch3:                x32.patch
 URL:           http://www.sudo.ws/sudo/
 %{?with_audit:BuildRequires:   audit-libs-devel}
 BuildRequires: autoconf >= 2.53
@@ -195,6 +196,7 @@ cp -p acinclude.m4 acinclude.m4.orig
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 ! [ -f m4/ax_sys_weak_alias.m4 ] # provide own copy only until it is there
 cp %{_aclocaldir}/ax_sys_weak_alias.m4 m4
diff --git a/x32.patch b/x32.patch
new file mode 100644 (file)
index 0000000..cc2b1fc
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,21 @@
+--- sudo-1.9.11p1/src/exec_ptrace.c~   2022-06-06 16:42:01.000000000 +0200
++++ sudo-1.9.11p1/src/exec_ptrace.c    2022-06-11 21:36:12.498210857 +0200
+@@ -1035,14 +1035,16 @@
+       switch (syscallno) {
+ # ifdef X32_execve
+       case X32_execve:
+-# endif
++# else
+       case __NR_execve:
++# endif
+           /* Handled below. */
+           break;
+ # ifdef X32_execveat
+       case X32_execveat:
+-# endif
++# else
+       case __NR_execveat:
++# endif
+           /* We don't currently check execveat(2). */
+           debug_return_bool(true);
+           break;
This page took 0.338261 seconds and 4 git commands to generate.