From: Fredrik Fornwall Date: Sun, 24 Jan 2016 22:29:25 +0000 (-0500) Subject: bash-completion: Mark as arch-independent X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/f18a9f6041513e96bad653010afc6d24a74d1915 bash-completion: Mark as arch-independent Also add patch from coming version --- diff --git a/packages/bash-completion/build.sh b/packages/bash-completion/build.sh index 2ca9c56b..c0150136 100644 --- a/packages/bash-completion/build.sh +++ b/packages/bash-completion/build.sh @@ -1,5 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://bash-completion.alioth.debian.org/ TERMUX_PKG_DESCRIPTION="Programmable completion for the bash shell" TERMUX_PKG_VERSION=2.1 +TERMUX_PKG_BUILD_REVISION=1 TERMUX_PKG_SRCURL=https://bash-completion.alioth.debian.org/files/bash-completion-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_DEPENDS="bash" +TERMUX_PKG_PLATFORM_INDEPENDENT=yes diff --git a/packages/bash-completion/words-bad-array-subscript.patch b/packages/bash-completion/words-bad-array-subscript.patch new file mode 100644 index 00000000..7cbccedb --- /dev/null +++ b/packages/bash-completion/words-bad-array-subscript.patch @@ -0,0 +1,23 @@ +From: Barry Warsaw +Subject: Fix bash: words: bad array subscript +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1289597 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741479 +Origin: vendor, https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1289597 +Forwarded: yes, <20140312212729.17788.38099.reportbug@samba4.Chuck.local> + +--- + bash_completion | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- bash-completion.orig/bash_completion ++++ bash-completion/bash_completion +@@ -718,7 +718,7 @@ _init_completion() + fi + done + +- [[ $cword -eq 0 ]] && return 1 ++ [[ $cword -le 0 ]] && return 1 + prev=${words[cword-1]} + + [[ ${split-} ]] && _split_longopt && split=true +