[packages/yelp-tools] - added sh patch (fix YELP_HELP_INIT without arguments) - release 2

qboosh qboosh at pld-linux.org
Thu Mar 27 03:05:03 CET 2014


commit 94b9e8ccdcfa87f151f881433fa20e572b4aedb4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Mar 27 03:08:34 2014 +0100

    - added sh patch (fix YELP_HELP_INIT without arguments)
    - release 2

 yelp-tools-sh.patch | 18 ++++++++++++++++++
 yelp-tools.spec     |  4 +++-
 2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/yelp-tools.spec b/yelp-tools.spec
index b32ac22..f58ff32 100644
--- a/yelp-tools.spec
+++ b/yelp-tools.spec
@@ -2,11 +2,12 @@ Summary:	Tools to create, manage, and publish documentation for Yelp
 Summary(pl.UTF-8):	Narzędzia do tworzenia, zarządzania i publikowania dokumentacji dla Yelpa
 Name:		yelp-tools
 Version:	3.12.0
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Libraries
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/yelp-tools/3.12/%{name}-%{version}.tar.xz
 # Source0-md5:	f65fc6f6b88387985f043d3f73a0e434
+Patch0:		%{name}-sh.patch
 URL:		http://projects.gnome.org/yelp/
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake >= 1:1.9
@@ -38,6 +39,7 @@ sposób przyjazny dla programisty.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__aclocal}
diff --git a/yelp-tools-sh.patch b/yelp-tools-sh.patch
new file mode 100644
index 0000000..5cafa95
--- /dev/null
+++ b/yelp-tools-sh.patch
@@ -0,0 +1,18 @@
+Avoid using last positional arguments in YELP_HELP_INIT without parameters.
+--- yelp-tools-3.12.0/tools/yelp.m4.orig	2014-02-02 20:28:10.000000000 +0100
++++ yelp-tools-3.12.0/tools/yelp.m4	2014-03-27 02:59:41.241812513 +0100
+@@ -8,12 +8,13 @@
+ YELP_LC_MEDIA_LINKS=true
+ YELP_LC_DIST=true
+ 
+-for yelpopt in [$1]; do
++for yelpopt in [$1] END; do
+   case $yelpopt in
+     lc-media-links)    YELP_LC_MEDIA_LINKS=true ;;
+     no-lc-media-links) YELP_LC_MEDIA_LINKS= ;;
+     lc-dist)           YELP_LC_DIST=true ;;
+     no-lc-dist)        YELP_LC_DIST= ;;
++    END) ;;
+     *) AC_MSG_ERROR([Unrecognized [YELP_HELP_INIT] option $yelpopt"]) ;;
+   esac
+ done;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/yelp-tools.git/commitdiff/94b9e8ccdcfa87f151f881433fa20e572b4aedb4



More information about the pld-cvs-commit mailing list