[packages/ptyxis] - added x32 fix

qboosh qboosh at pld-linux.org
Thu Oct 3 21:52:02 CEST 2024


commit 70e3664256b00a84d03e0dfd6cc5ae6f108d85c6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Oct 3 21:47:59 2024 +0200

    - added x32 fix

 ptyxis-x32.patch | 11 +++++++++++
 ptyxis.spec      |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/ptyxis.spec b/ptyxis.spec
index ab76cef..66cf4b7 100644
--- a/ptyxis.spec
+++ b/ptyxis.spec
@@ -8,6 +8,7 @@ License:	GPL v3+
 Group:		X11/Applications
 Source0:	https://download.gnome.org/sources/ptyxis/47/%{name}-%{version}.tar.xz
 # Source0-md5:	13b3d2160c35c36b7168285f061e090a
+Patch0:		%{name}-x32.patch
 URL:		https://gitlab.gnome.org/chergert/ptyxis
 BuildRequires:	glib2-devel >= 1:2.80
 BuildRequires:	gtk4-devel >= 4.14
@@ -42,6 +43,7 @@ systemów operacyjnych będących kontenerami.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %meson build
diff --git a/ptyxis-x32.patch b/ptyxis-x32.patch
new file mode 100644
index 0000000..fc1e51c
--- /dev/null
+++ b/ptyxis-x32.patch
@@ -0,0 +1,11 @@
+--- ptyxis-47.1/agent/meson.build.orig	2024-09-24 21:17:50.000000000 +0200
++++ ptyxis-47.1/agent/meson.build	2024-10-03 21:32:05.011603938 +0200
+@@ -43,7 +43,7 @@ ptyxis_agent_c_args = [
+ ]
+ 
+ libc_compat = true
+-if target_machine.cpu_family() == 'x86_64'
++if target_machine.cpu_family() == 'x86_64' and not (cc.get_define('__ILP32__') == '1')
+   ptyxis_agent_c_args += ['-include', 'x86_64/force_link_glibc_2.17.h']
+ else
+   libc_compat = false
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ptyxis.git/commitdiff/70e3664256b00a84d03e0dfd6cc5ae6f108d85c6



More information about the pld-cvs-commit mailing list