[packages/ghc-libxml-sax] Rel 5; fix build

arekm arekm at pld-linux.org
Sun Aug 24 21:49:01 CEST 2025


commit c130603d895da9a3d8fdbe950244eadaebd21c5d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Aug 24 21:48:57 2025 +0200

    Rel 5; fix build

 build.patch         | 10 ++++++++++
 ghc-libxml-sax.spec |  4 +++-
 2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/ghc-libxml-sax.spec b/ghc-libxml-sax.spec
index a8476f6..4738e17 100644
--- a/ghc-libxml-sax.spec
+++ b/ghc-libxml-sax.spec
@@ -2,11 +2,12 @@
 Summary:	A Haskell binding to the libxml-sax graphics library
 Name:		ghc-%{pkgname}
 Version:	0.7.5
-Release:	4
+Release:	5
 License:	BSD
 Group:		Development/Languages
 Source0:	http://hackage.haskell.org/packages/archive/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
 # Source0-md5:	c2ee96657807cd75f400c58c7a7134d3
+Patch0:		build.patch
 URL:		http://hackage.haskell.org/package/libxml-sax/
 BuildRequires:	ghc >= 6.12.3
 BuildRequires:	ghc-text
@@ -37,6 +38,7 @@ Dokumentacja w formacie HTML dla %{pkgname}.
 
 %prep
 %setup -q -n %{pkgname}-%{version}
+%patch -P0 -p1
 
 %build
 runhaskell Setup.hs configure -v2 \
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..1dd1e84
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,10 @@
+--- libxml-sax-0.7.5/cbits/hslibxml-shim.c~	2014-02-15 02:13:18.000000000 +0100
++++ libxml-sax-0.7.5/cbits/hslibxml-shim.c	2025-08-24 21:47:55.660689871 +0200
+@@ -3,6 +3,7 @@
+ #include "hslibxml-shim.h"
+ #include <string.h>
+ #include <stdio.h>
++#include <stdlib.h>
+ 
+ /* for hslibxml_parse_complete */
+ #include <libxml/parserInternals.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-libxml-sax.git/commitdiff/c130603d895da9a3d8fdbe950244eadaebd21c5d



More information about the pld-cvs-commit mailing list