[fribidi/f18] Resolves: rhbz#884000 signed warning (thanks mfabian)

Caolán McNamara caolanm at fedoraproject.org
Mon Dec 10 11:42:36 UTC 2012


commit 93c4e8f6b966dffe83c64822fe6e6014d0022455
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Dec 10 11:41:38 2012 +0000

    Resolves: rhbz#884000 signed warning (thanks mfabian)

 fribidi.spec        |    7 ++++++-
 signedwarning.patch |   11 +++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/fribidi.spec b/fribidi.spec
index 9243e14..842b471 100644
--- a/fribidi.spec
+++ b/fribidi.spec
@@ -1,11 +1,12 @@
 Summary: Library implementing the Unicode Bidirectional Algorithm
 Name: fribidi
 Version: 0.19.4
-Release: 1%{?dist}
+Release: 2%{?dist}
 URL: http://fribidi.org
 Source: http://fribidi.org/download/%{name}-%{version}.tar.bz2
 License: LGPLv2+ and UCD
 Group: System Environment/Libraries
+Patch0: signedwarning.patch
 
 %description
 A library to handle bidirectional scripts (for example Hebrew, Arabic),
@@ -23,6 +24,7 @@ FriBidi.
 
 %prep
 %setup -q
+%patch0 -p1 -b .signedwarnings
 
 %build
 %if 0%{?el5}
@@ -61,6 +63,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
 %{_mandir}/man3/%{name}_*.gz
 
 %changelog
+* Mon Dec 10 2012 Caolán McNamara <caolanm at redhat.com> - 0.19.4-2
+- Resolves: rhbz#884000 signed warning (thanks mfabian)
+
 * Tue Nov 27 2012 Caolán McNamara <caolanm at redhat.com> - 0.19.4-1
 - Resolves: rhbz#880490 bump to latest version
 
diff --git a/signedwarning.patch b/signedwarning.patch
new file mode 100644
index 0000000..06ae0ef
--- /dev/null
+++ b/signedwarning.patch
@@ -0,0 +1,11 @@
+--- fribidi-0.19.4/bin/fribidi-main.c	2012-08-25 20:56:20.000000000 +0200
++++ fribidi-0.19.4/bin/fribidi-main.c	2012-12-06 16:10:38.936894816 +0100
+@@ -519,7 +519,7 @@ 
+ 				  idx++;
+ 				}
+ #endif /* !FRIBIDI_MAIN_USE_ICONV_H */
+-			    if (wid < 0 && idx > st + 1)
++			    if (wid < 0 && idx - st > 1)
+ 			      idx--;
+ 			    inlen = idx - st;
+ 


More information about the scm-commits mailing list