[packages/libreport] - added ILP32 (fixes tests running with sizeof(int)==sizeof(long), like ILP32 case) - release 2

qboosh qboosh at pld-linux.org
Sat Jun 27 17:14:40 CEST 2015


commit 7c62ca87f74c4416dcae5c2f29077a609643331c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 27 17:16:17 2015 +0200

    - added ILP32 (fixes tests running with sizeof(int)==sizeof(long), like ILP32 case)
    - release 2

 libreport-ILP32.patch | 34 ++++++++++++++++++++++++++++++++++
 libreport.spec        |  4 +++-
 2 files changed, 37 insertions(+), 1 deletion(-)
---
diff --git a/libreport.spec b/libreport.spec
index b6bbd19..89b832c 100644
--- a/libreport.spec
+++ b/libreport.spec
@@ -7,12 +7,13 @@ Summary:	Generic library for reporting various problems
 Summary(pl.UTF-8):	Ogólna biblioteka do zgłaszania różnych problemów
 Name:		libreport
 Version:	2.6.0
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Libraries
 Source0:	https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
 # Source0-md5:	764ef9745518391abe8349f979d6ce1d
 Patch0:		format-security.patch
+Patch1:		%{name}-ILP32.patch
 URL:		https://fedorahosted.org/abrt/
 BuildRequires:	asciidoc
 %{?with_tests:BuildRequires:	augeas}
@@ -353,6 +354,7 @@ zgłaszania błędów w systemach RHEL.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/libreport-ILP32.patch b/libreport-ILP32.patch
new file mode 100644
index 0000000..fdaa73b
--- /dev/null
+++ b/libreport-ILP32.patch
@@ -0,0 +1,34 @@
+--- libreport-2.6.0/tests/xfuncs.at.orig	2015-06-08 17:13:44.000000000 +0200
++++ libreport-2.6.0/tests/xfuncs.at	2015-06-27 17:10:28.975037433 +0200
+@@ -88,7 +88,7 @@
+ 
+         char buf[sizeof(unsigned long) * 3 + 1];
+ 
+-        snprintf(buf, sizeof(buf), "%lu", 1LU + UINT_MAX);
++        snprintf(buf, sizeof(buf), "%llu", 1LLU + UINT_MAX);
+         assert(try_atou(buf, &uint_value) != 0 || !"Above UINT_MAX");
+         assert(uint_value == 12345);
+ 
+@@ -115,11 +115,11 @@
+ 
+         char buf[sizeof(long) * 3 + 1];
+ 
+-        snprintf(buf, sizeof(buf), "%ld", 1L + INT_MAX);
++        snprintf(buf, sizeof(buf), "%lld", 1LL + INT_MAX);
+         assert(try_atoi(buf, &int_value) != 0 || !"Parse INT_MAX+1");
+         assert(int_value == 12345 || !"Above INT_MAX");
+ 
+-        snprintf(buf, sizeof(buf), "%ld", -1L + INT_MIN);
++        snprintf(buf, sizeof(buf), "%lld", -1LL + INT_MIN);
+         assert(try_atoi(buf, &int_value) != 0 || !"Parse INT_MIN-1");
+         assert(int_value == 12345 || !"Belove INT_MIN");
+ 
+@@ -144,7 +144,7 @@
+ 
+         char buf[sizeof(long) * 3 + 1];
+ 
+-        snprintf(buf, sizeof(buf), "%ld", 1L + INT_MAX);
++        snprintf(buf, sizeof(buf), "%lld", 1LL + INT_MAX);
+         assert(try_atoi_positive(buf, &positive_value) != 0);
+         assert(positive_value == 12345 || !"Above INT_MAX");
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libreport.git/commitdiff/7c62ca87f74c4416dcae5c2f29077a609643331c



More information about the pld-cvs-commit mailing list