1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 01_use_libxml2_instead_of_libxml.dpatch by Daniel Leidert
3 ## <daniel.leidert@wgdd.de>
5 ## DP: Make use of libxml2 instead of libxml
8 diff -urNad xml2-0.4~
/2xml.c xml2-0.4
/2xml.c
9 --- xml2-0.4~
/2xml.c
2003-12-24 21:28:48.000000000 +0100
10 +++ xml2-0.4
/2xml.c
2008-03-12 09:32:17.345380803 +0100
15 -#include <HTMLparser.h>
16 +#include <libxml/HTMLparser.h>
23 const htmlElemDesc
*elem
= NULL
;
24 - if (do_html
) elem
= htmlTagLookup
(name
);
25 + if (do_html
) elem
= htmlTagLookup
((xmlChar
*) name
);
27 if (NULL
== elem ||
(!elem-
>endTag
&& !elem-
>empty
)) {
29 diff -urNad xml2-0.4~
/Makefile.am xml2-0.4
/Makefile.am
30 --- xml2-0.4~
/Makefile.am
2008-02-07 16:58:13.000000000 +0100
31 +++ xml2-0.4
/Makefile.am
2008-03-12 09:32:17.345380803 +0100
33 -AM_CPPFLAGS = $
(XML_CFLAGS
)
34 +AM_CFLAGS
= $
(XML_CFLAGS
)
35 bin_PROGRAMS
= xml2
2xml csv2
2csv
38 +xml2_LDADD
= $
(XML_LIBS
)
41 +2xml_LDADD
= $
(XML_LIBS
)
45 diff -urNad xml2-0.4~
/configure.ac xml2-0.4
/configure.ac
46 --- xml2-0.4~
/configure.ac
2008-02-07 17:11:54.000000000 +0100
47 +++ xml2-0.4
/configure.ac
2008-03-12 09:32:17.345380803 +0100
51 # Checks for libraries.
52 -PKG_CHECK_MODULES(XML
, libxml
)
53 +PKG_CHECK_MODULES
(XML
, libxml-2.0
)
57 diff -urNad xml2-0.4~
/xml2.c xml2-0.4
/xml2.c
58 --- xml2-0.4~
/xml2.c
2001-10-28 05:29:46.000000000 +0100
59 +++ xml2-0.4
/xml2.c
2008-03-12 09:32:17.345380803 +0100
65 -#include <HTMLparser.h>
66 +#include <libxml/parser.h>
67 +#include <libxml/HTMLparser.h>