- Fix PowerPC return code bug #531349

This commit is contained in:
Jan Görig 2010-01-11 13:54:12 +00:00
parent f5027cc600
commit 4dfc723968
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up texinfo-4.13/install-info/install-info.c.patch texinfo-4.13/install-info/install-info.c
--- texinfo-4.13/install-info/install-info.c.patch 2010-01-11 14:46:32.000000000 +0100
+++ texinfo-4.13/install-info/install-info.c 2010-01-11 14:48:47.162152695 +0100
@@ -772,7 +772,7 @@ open_possibly_compressed_file (char *fil
}
else
{ /* It's a plain file, seek back over the magic bytes. */
- if (gzseek (f, 0, SEEK_SET) < 0)
+ if (gzseek (f, 0, SEEK_SET) == -1)
pfatal_with_name (*opened_filename);
#if 0 && O_BINARY
/* Since this is a text file, and we opened it in binary mode,

View File

@ -3,7 +3,7 @@
Summary: Tools needed to create Texinfo format documentation files Summary: Tools needed to create Texinfo format documentation files
Name: texinfo Name: texinfo
Version: 4.13a Version: 4.13a
Release: 8%{?dist} Release: 9%{?dist}
License: GPLv3+ License: GPLv3+
Group: Applications/Publishing Group: Applications/Publishing
Url: http://www.gnu.org/software/texinfo/ Url: http://www.gnu.org/software/texinfo/
@ -14,6 +14,7 @@ Patch0: texinfo-4.12-zlib.patch
Patch1: texinfo-4.13a-data_types.patch Patch1: texinfo-4.13a-data_types.patch
# Patch2: is already upstream # Patch2: is already upstream
Patch2: texinfo-4.13a-mosdo-crash.patch Patch2: texinfo-4.13a-mosdo-crash.patch
Patch3: texinfo-4.13a-powerpc.patch
Requires(post): /sbin/install-info Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info Requires(preun): /sbin/install-info
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -58,6 +59,7 @@ for printing using TeX.
%patch0 -p1 -b .zlib %patch0 -p1 -b .zlib
%patch1 -p1 -b .data_types %patch1 -p1 -b .data_types
%patch2 -p1 -b .mosdo-crash %patch2 -p1 -b .mosdo-crash
%patch3 -p1 -b .powerpc
%build %build
%configure %configure
@ -157,6 +159,9 @@ fi
%{_mandir}/man1/pdftexi2dvi.1* %{_mandir}/man1/pdftexi2dvi.1*
%changelog %changelog
* Mon Jan 11 2010 Jan Gorig <jgorig@redhat.com> - 4.13a-9
- Fix PowerPC return code bug #531349
* Mon Dec 14 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 4.13a-8 * Mon Dec 14 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 4.13a-8
- Fix memory allocation bug when using old-style --section "Foo" arguments - Fix memory allocation bug when using old-style --section "Foo" arguments