diff --git a/fixes-shift-count-out-of-range.patch b/fixes-shift-count-out-of-range.patch new file mode 100644 index 0000000000000000000000000000000000000000..7fc4f3b18b43852ca4b5cf222b9b79afdd5b1bf8 --- /dev/null +++ b/fixes-shift-count-out-of-range.patch @@ -0,0 +1,93 @@ +From 121144ebabe81006cf0d036356cf5f801cc942aa Mon Sep 17 00:00:00 2001 +From: wu-leilei +Date: Sun, 25 Jul 2021 17:36:19 +0800 +Subject: [PATCH] fixes-shift-count-out-of-range + +--- + buildsystems/autotools/gtkdocize.in | 55 ++++++++++++++++++++++------- + 1 file changed, 43 insertions(+), 12 deletions(-) + +diff --git a/buildsystems/autotools/gtkdocize.in b/buildsystems/autotools/gtkdocize.in +index 83127bf..47d223e 100755 +--- a/buildsystems/autotools/gtkdocize.in ++++ b/buildsystems/autotools/gtkdocize.in +@@ -25,9 +25,17 @@ args="$*" + while test $# -gt 0; do + case "$1" in + --srcdir) +- shift +- srcdir="$1" +- shift ;; ++ if test $# -gt 1; then ++ shift ++ srcdir="$1" ++ shift ++ elif test $# -eq 1; then ++ srcdir="$1" ++ shift ++ else ++ : ++ fi ++ ;; + --srcdir=*) + srcdir=`expr "X$1" : '[^=]*=\(.*\)'` + shift ;; +@@ -83,23 +91,46 @@ while test $# -gt 0; do + copy=yes + shift ;; + --docdir) +- shift +- docdir="$1" +- shift ;; ++ if test $# -gt 1; then ++ shift ++ docdir="$1" ++ shift ++ elif test $# -eq 1; then ++ docdir="$1" ++ shift ++ else ++ : ++ fi ++ ;; + --docdir=*) + docdir=`expr "X$1" : '[^=]*=\(.*\)'` + shift ;; + --flavour) +- shift +- flavour="$1" +- shift ;; ++ if test $# -gt 1; then ++ shift ++ flavour="$1" ++ shift ++ elif test $# -eq 1; then ++ flavour="$1" ++ shift ++ else ++ : ++ fi ++ ;; + --flavour=*) + flavour=`expr "X$1" : '[^=]*=\(.*\)'` + shift ;; + --srcdir) +- shift +- # srcdir was set earlier. +- shift ;; ++ if test $# -gt 1; then ++ shift ++ # srcdir was set earlier ++ shift ++ elif test $# -eq 1; then ++ shift ++ else ++ : ++ fi ++ ;; + --srcdir=*) + # srcdir was set earlier. + shift ;; +-- +2.23.0 + diff --git a/gtk-doc.spec b/gtk-doc.spec index 7a81cc5d3f9cc2d607c3c6a2f3ce85bc1602671a..a542ce060a367cf6265a84b46d9ae03700c1376c 100644 --- a/gtk-doc.spec +++ b/gtk-doc.spec @@ -3,13 +3,14 @@ Name: gtk-doc Version: 1.33.2 -Release: 2 +Release: 3 Summary: Generate API documentation from comments that can be added to C code License: GPLv2+ and GFDL URL: https://www.gtk.org/gtk-doc/ Source0: https://download.gnome.org/sources/gtk-doc/1.33/%{name}-%{version}.tar.xz Patch0: fix-fixxref-not-found-file.patch Patch1: fix-mkdb-not-found-file.patch +Patch2: fixes-shift-count-out-of-range.patch BuildRequires: python3-devel docbook-utils libxslt gettext BuildRequires: itstool yelp-tools docbook-style-xsl gcc gdb @@ -54,6 +55,9 @@ export PYTHON=%{__python3} %{_datadir}/help/*/%{name}-manual/ %changelog +* Mon Jul 26 2021 wulei - 1.33.2-3 +- fixes shift count out of range + * Sun Jul 25 2021 liyanan - 1.33.2-2 - fix not found file