From 9901ea6b8207e227756c609e26d5db10fe940029 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sat, 10 Oct 2009 17:05:53 +0000 Subject: [PATCH] - rel 4; fix largefile brokeness that was manifesting as segfault in zlib related code Changed files: libxml2-largefile.patch -> 1.1 libxml2.spec -> 1.174 --- libxml2-largefile.patch | 12 ++++++++++++ libxml2.spec | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 libxml2-largefile.patch diff --git a/libxml2-largefile.patch b/libxml2-largefile.patch new file mode 100644 index 0000000..4cbf71d --- /dev/null +++ b/libxml2-largefile.patch @@ -0,0 +1,12 @@ +--- libxml2-2.7.6/libxml.h~ 2009-09-24 17:31:59.000000000 +0200 ++++ libxml2-2.7.6/libxml.h 2009-10-10 18:57:55.681981813 +0200 +@@ -13,6 +13,9 @@ + #ifndef _LARGEFILE_SOURCE + #define _LARGEFILE_SOURCE + #endif ++#ifndef _LARGEFILE64_SOURCE ++#define _LARGEFILE64_SOURCE ++#endif + #ifndef _FILE_OFFSET_BITS + #define _FILE_OFFSET_BITS 64 + #endif diff --git a/libxml2.spec b/libxml2.spec index a77eea0..7db507c 100644 --- a/libxml2.spec +++ b/libxml2.spec @@ -10,7 +10,7 @@ Summary(pl.UTF-8): Biblioteka libXML wersja 2 Summary(pt_BR.UTF-8): Biblioteca libXML versão 2 Name: libxml2 Version: 2.7.6 -Release: 3 +Release: 4 Epoch: 1 License: MIT Group: Libraries @@ -20,6 +20,7 @@ Source0: ftp://xmlsoft.org/libxml2/%{name}-%{version}.tar.gz Patch0: %{name}-amfix.patch Patch1: %{name}-man_fixes.patch Patch2: %{name}-open.gz.patch +Patch3: %{name}-largefile.patch URL: http://xmlsoft.org/ BuildRequires: autoconf >= 2.2 BuildRequires: automake >= 1.4 @@ -138,6 +139,7 @@ Moduły języka Python dla biblioteki libxml2. %if %{with zlib} %patch2 -p1 %endif +%patch3 -p1 %build %{__libtoolize} -- 2.44.0