From 4dfc72396893b7f5c57ad78200ea57423d4ab658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20G=C3=B6rig?= Date: Mon, 11 Jan 2010 13:54:12 +0000 Subject: [PATCH] - Fix PowerPC return code bug #531349 --- texinfo-4.13a-powerpc.patch | 12 ++++++++++++ texinfo.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 texinfo-4.13a-powerpc.patch diff --git a/texinfo-4.13a-powerpc.patch b/texinfo-4.13a-powerpc.patch new file mode 100644 index 0000000..b6c046e --- /dev/null +++ b/texinfo-4.13a-powerpc.patch @@ -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, diff --git a/texinfo.spec b/texinfo.spec index 8347e00..e1bc5a6 100644 --- a/texinfo.spec +++ b/texinfo.spec @@ -3,7 +3,7 @@ Summary: Tools needed to create Texinfo format documentation files Name: texinfo Version: 4.13a -Release: 8%{?dist} +Release: 9%{?dist} License: GPLv3+ Group: Applications/Publishing Url: http://www.gnu.org/software/texinfo/ @@ -14,6 +14,7 @@ Patch0: texinfo-4.12-zlib.patch Patch1: texinfo-4.13a-data_types.patch # Patch2: is already upstream Patch2: texinfo-4.13a-mosdo-crash.patch +Patch3: texinfo-4.13a-powerpc.patch Requires(post): /sbin/install-info Requires(preun): /sbin/install-info BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -58,6 +59,7 @@ for printing using TeX. %patch0 -p1 -b .zlib %patch1 -p1 -b .data_types %patch2 -p1 -b .mosdo-crash +%patch3 -p1 -b .powerpc %build %configure @@ -157,6 +159,9 @@ fi %{_mandir}/man1/pdftexi2dvi.1* %changelog +* Mon Jan 11 2010 Jan Gorig - 4.13a-9 +- Fix PowerPC return code bug #531349 + * Mon Dec 14 2009 Vitezslav Crhonek - 4.13a-8 - Fix memory allocation bug when using old-style --section "Foo" arguments