From 2b412da5fa1bcf3846cf981057f4fe6ee3db7767c047b1d83a06addb04fc220b Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 19 Oct 2011 18:31:54 +0000 Subject: [PATCH] Accepting request 88729 from home:namtrac:branches:Publishing - Add xmlto-lynx-empty-file.patch to fix problems with lynx on empty files, upstream commit 57 OBS-URL: https://build.opensuse.org/request/show/88729 OBS-URL: https://build.opensuse.org/package/show/Publishing/xmlto?expand=0&rev=16 --- xmlto-lynx-empty-file.patch | 12 ++++++++++++ xmlto.changes | 6 ++++++ xmlto.spec | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 xmlto-lynx-empty-file.patch diff --git a/xmlto-lynx-empty-file.patch b/xmlto-lynx-empty-file.patch new file mode 100644 index 0000000..10e9ae7 --- /dev/null +++ b/xmlto-lynx-empty-file.patch @@ -0,0 +1,12 @@ +--- xmlto.in 2011-10-19 16:02:34.130369281 +0200 ++++ xmlto.in 2011-10-19 16:03:24.226367583 +0200 +@@ -566,6 +566,9 @@ + -o "$XSLT_PROCESSED" "$STYLESHEET" "$INPUT_FILE" + fi + ++ #xsltproc may return no file on empty input, touch it to have it for sure ++ touch "$XSLT_PROCESSED" ++ + if [ $? == 4 ] + then + XSLTOPTS="${XSLTOPTS} --catalogs" diff --git a/xmlto.changes b/xmlto.changes index 9af49b2..ea8a1e1 100644 --- a/xmlto.changes +++ b/xmlto.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 19 14:01:53 UTC 2011 - idonmez@suse.com + +- Add xmlto-lynx-empty-file.patch to fix problems with lynx on + empty files, upstream commit 57 + ------------------------------------------------------------------- Wed Jun 8 09:42:34 CEST 2011 - ke@suse.de diff --git a/xmlto.spec b/xmlto.spec index 486a4ec..5c3265e 100644 --- a/xmlto.spec +++ b/xmlto.spec @@ -34,6 +34,7 @@ Patch0: xmlto-nonvoid.patch Patch1: xmlto-0.0.18-overflow.patch Patch3: xmlto-0.0.23-xsltopts.diff Patch4: xmlto-codecleanup.patch +Patch5: xmlto-lynx-empty-file.patch BuildRequires: docbook-xsl-stylesheets BuildRequires: fdupes BuildRequires: flex @@ -58,6 +59,7 @@ for print output it makes use of passivetex. %patch1 -p1 %patch3 -p0 %patch4 +%patch5 cp %{SOURCE10} README.SuSE rm -f xmlif/xmlif.c