]> git.pld-linux.org Git - packages/lttng-tools.git/commitdiff
- fix building on x32 auto/th/lttng-tools-2.6.0-2
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 30 Jul 2015 17:50:07 +0000 (19:50 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 30 Jul 2015 17:50:07 +0000 (19:50 +0200)
- rel 2

lttng-tools.spec
x32.patch [new file with mode: 0644]

index 0b0fe49598fcdb059fd7a6299b1c106679251bb1..636173e59d8d99ad679783a420a32a99ab2378ce 100644 (file)
@@ -2,12 +2,13 @@ Summary:      LTTng Trace Control
 Summary(pl.UTF-8):     Sterowanie śledzeniem LTTng
 Name:          lttng-tools
 Version:       2.6.0
-Release:       1
+Release:       2
 License:       LGPL v2.1+ (library), GPL v2 (tools)
 Group:         Libraries
 Source0:       http://lttng.org/files/lttng-tools/%{name}-%{version}.tar.bz2
 # Source0-md5: 0478f60395f9564b4a19f45ce7b7f3df
 Patch0:                %{name}-python.patch
+Patch1:                x32.patch
 URL:           http://lttng.org/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake >= 1:1.10
@@ -79,6 +80,7 @@ Wiązanie Pythona do LTTng.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -91,7 +93,11 @@ Wiązanie Pythona do LTTng.
        --disable-silent-rules \
        --enable-python-bindings \
        --with-babeltrace-bin=/usr/bin/babeltrace \
-%ifnarch alpha ia64
+%ifnarch x32
+       --with-consumerd32-bin=/usr/libx32/lttng/libexec/lttng-consumerd \
+       --with-consumerd32-libdir=/usr/libx32 \
+%endif
+%ifnarch alpha ia64 x32
        --with-consumerd32-bin=/usr/lib/lttng/libexec/lttng-consumerd \
        --with-consumerd32-libdir=/usr/lib \
 %endif
diff --git a/x32.patch b/x32.patch
new file mode 100644 (file)
index 0000000..064a233
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,11 @@
+--- lttng-tools-2.6.0/src/bin/lttng/utils.c~   2015-01-26 18:17:15.000000000 +0100
++++ lttng-tools-2.6.0/src/bin/lttng/utils.c    2015-07-30 19:45:25.632045712 +0200
+@@ -130,7 +130,7 @@
+ #define HAS_FLS_U32
+ #endif
+-#if defined(__x86_64)
++#if defined(__x86_64) && !defined(__ILP32__)
+ static inline
+ unsigned int fls_u64(uint64_t x)
+ {
This page took 0.050527 seconds and 4 git commands to generate.