From 887475f2858ba92e14697f34f9046e959478c6ed Mon Sep 17 00:00:00 2001 From: nik Date: Mon, 3 Dec 2001 11:21:45 +0000 Subject: Add a new patch which fixes a problem where xsltproc will, in some cases, not produce any output (!). This is a major problem when building the XSL/XML parts of the web site. 1.0.8 (when it's imported) has the same problem, the fix for which is at http://cvs.gnome.org/bonsai/cvsquery.cgi?module=libxslt&branch=HEAD&branchtype=match&dir=libxslt&file=&filetype=match&who=veillard&whotype=match&sortby=Date&hours=&date=explicit&mindate=11%2F30%2F01+13%3A01&maxdate=11%2F30%2F01+13%3A03&cvsroot=%2Fcvs%2Fgnome Bump PORTREVISION to reflect this. Approved by: sobomax --- textproc/libxslt/Makefile | 1 + textproc/libxslt/files/patch-libxslt::transform.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 textproc/libxslt/files/patch-libxslt::transform.c (limited to 'textproc') diff --git a/textproc/libxslt/Makefile b/textproc/libxslt/Makefile index e20472895a1a..56bd4c2aa52d 100644 --- a/textproc/libxslt/Makefile +++ b/textproc/libxslt/Makefile @@ -7,6 +7,7 @@ PORTNAME= libxslt PORTVERSION= 1.0.7 +PORTREVISION= 1 CATEGORIES= textproc gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/libxslt diff --git a/textproc/libxslt/files/patch-libxslt::transform.c b/textproc/libxslt/files/patch-libxslt::transform.c new file mode 100644 index 000000000000..28c33664dbda --- /dev/null +++ b/textproc/libxslt/files/patch-libxslt::transform.c @@ -0,0 +1,16 @@ +--- libxslt/transform.c.orig Sat Nov 10 13:35:49 2001 ++++ libxslt/transform.c Mon Dec 3 00:03:39 2001 +@@ -3474,12 +3474,10 @@ + if (tmp == root) { + ctxt->type = XSLT_OUTPUT_HTML; + res->type = XML_HTML_DOCUMENT_NODE; +- if (((doctypePublic != NULL) || (doctypeSystem != NULL))) ++ if (((doctypePublic != NULL) || (doctypeSystem != NULL))) { + res->intSubset = xmlCreateIntSubset(res, root->name, + doctypePublic, + doctypeSystem); +- if (((doctypePublic != NULL) || (doctypeSystem != NULL))) { +- res = htmlNewDoc(doctypeSystem, doctypePublic); + #ifdef XSLT_GENERATE_HTML_DOCTYPE + } else if (version != NULL) { + xsltGetHTMLIDs(version, &doctypePublic, -- cgit