[packages/pacemaker] -manpage_xslt.patch – replace dumb XSL scan
jajcus
jajcus at pld-linux.org
Fri Jun 21 21:44:52 CEST 2013
commit 7b939a861d7dcbab0d6a9278655d2022dd7c92cd
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Fri Jun 21 21:34:14 2013 +0200
-manpage_xslt.patch – replace dumb XSL scan
hardcode XSLT path (known in PLD) instead of dumb scanning
of the whole _datadir.
pacemaker-manpage_xslt.patch | 24 ++++++++++++++++++++++++
pacemaker.spec | 2 ++
2 files changed, 26 insertions(+)
---
diff --git a/pacemaker.spec b/pacemaker.spec
index d9975e0..07e1662 100644
--- a/pacemaker.spec
+++ b/pacemaker.spec
@@ -14,6 +14,7 @@ Source2: %{name}.init
Source3: %{name}.service
Patch0: %{name}-libs.patch
Patch1: %{name}-automake.patch
+Patch2: %{name}-manpage_xslt.patch
URL: http://clusterlabs.org/wiki/Main_Page
BuildRequires: asciidoc
BuildRequires: autoconf
@@ -126,6 +127,7 @@ Static Pacemaker libraries.
%setup -qn pacemaker-Pacemaker-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
diff --git a/pacemaker-manpage_xslt.patch b/pacemaker-manpage_xslt.patch
new file mode 100644
index 0000000..6cb09ee
--- /dev/null
+++ b/pacemaker-manpage_xslt.patch
@@ -0,0 +1,24 @@
+diff -dur pacemaker-Pacemaker-1.1.9.orig/configure.ac pacemaker-Pacemaker-1.1.9/configure.ac
+--- pacemaker-Pacemaker-1.1.9.orig/configure.ac 2013-06-21 21:29:19.000000000 +0200
++++ pacemaker-Pacemaker-1.1.9/configure.ac 2013-06-21 21:30:52.227965879 +0200
+@@ -547,19 +547,7 @@
+ PCMK_FEATURES="$PCMK_FEATURES generated-manpages"
+ fi
+
+-MANPAGE_XSLT=""
+-if test x"${XSLTPROC}" != x""; then
+- AC_MSG_CHECKING(docbook to manpage transform)
+- XSLT=`find ${datadir} -name docbook.xsl`
+- for xsl in $XSLT; do
+- dname=`dirname $xsl`
+- bname=`basename $dname`
+- if test "$bname" = "manpages"; then
+- MANPAGE_XSLT="$xsl"
+- break
+- fi
+- done
+-fi
++MANPAGE_XSLT="/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl"
+ AC_MSG_RESULT($MANPAGE_XSLT)
+ AC_SUBST(MANPAGE_XSLT)
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pacemaker.git/commitdiff/7b939a861d7dcbab0d6a9278655d2022dd7c92cd
More information about the pld-cvs-commit
mailing list