[packages/lttng-ust] - added x32 fix

qboosh qboosh at pld-linux.org
Tue May 12 22:15:31 CEST 2026


commit 7d84893d430a1c8cb96cba344f4d1f9da22210a9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue May 12 22:15:26 2026 +0200

    - added x32 fix

 lttng-ust-x32.patch | 11 +++++++++++
 lttng-ust.spec      |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/lttng-ust.spec b/lttng-ust.spec
index bd3583e..320fc76 100644
--- a/lttng-ust.spec
+++ b/lttng-ust.spec
@@ -17,6 +17,7 @@ Group:		Libraries
 Source0:	https://lttng.org/files/lttng-ust/%{name}-%{version}.tar.bz2
 # Source0-md5:	47ff5ce72d6ea65fb4afe23004b9d990
 Patch0:		%{name}-link.patch
+Patch1:		%{name}-x32.patch
 URL:		https://lttng.org/
 BuildRequires:	autoconf >= 2.69
 BuildRequires:	automake >= 1:1.12
@@ -117,6 +118,7 @@ Agent Pythona do biblioteki LTTng Userspace Tracer.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' tools/lttng-gen-tp
 
diff --git a/lttng-ust-x32.patch b/lttng-ust-x32.patch
new file mode 100644
index 0000000..4598c5b
--- /dev/null
+++ b/lttng-ust-x32.patch
@@ -0,0 +1,11 @@
+--- lttng-ust-2.15.0/src/common/utils.h.orig	2026-02-13 19:56:46.000000000 +0100
++++ lttng-ust-2.15.0/src/common/utils.h	2026-05-12 22:08:16.099346269 +0200
+@@ -39,7 +39,7 @@ unsigned int lttng_ust_fls_u32(uint32_t
+ static inline
+ unsigned int lttng_ust_fls_u64(uint64_t x)
+ {
+-	long r;
++	int64_t r;
+ 
+ 	__asm__ ("bsrq %1,%0\n\t"
+ 	    "jnz 1f\n\t"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lttng-ust.git/commitdiff/7d84893d430a1c8cb96cba344f4d1f9da22210a9



More information about the pld-cvs-commit mailing list