From 646a5c1cbfd95873950a87b5f75d52073a967023 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Mon, 28 May 2018 19:12:29 +0000 Subject: Mon May 28 19:12:29 UTC 2018 a/pkgtools-15.0-noarch-13.txz: Rebuilt. installpkg: default line length for --terselength is the number of columns. removepkg: added --terse mode. upgradepkg: default line length for --terselength is the number of columns. upgradepkg: accept -option in addition to --option. ap/vim-8.1.0026-x86_64-1.txz: Upgraded. d/bison-3.0.5-x86_64-1.txz: Upgraded. e/emacs-26.1-x86_64-1.txz: Upgraded. kde/kopete-4.14.3-x86_64-8.txz: Rebuilt. Recompiled against libidn-1.35. n/conntrack-tools-1.4.5-x86_64-1.txz: Upgraded. n/libnetfilter_conntrack-1.0.7-x86_64-1.txz: Upgraded. n/libnftnl-1.1.0-x86_64-1.txz: Upgraded. n/links-2.16-x86_64-2.txz: Rebuilt. Rebuilt to enable X driver for -g mode. n/lynx-2.8.9dev.19-x86_64-1.txz: Upgraded. n/nftables-0.8.5-x86_64-1.txz: Upgraded. n/p11-kit-0.23.11-x86_64-1.txz: Upgraded. n/ulogd-2.0.7-x86_64-1.txz: Upgraded. n/whois-5.3.1-x86_64-1.txz: Upgraded. xap/network-manager-applet-1.8.12-x86_64-1.txz: Upgraded. xap/vim-gvim-8.1.0026-x86_64-1.txz: Upgraded. --- .../bash-completion/bash-completion.SlackBuild | 30 +++++++------- .../0001-tar-Don-t-write-to-tmp-jetel.patch | 25 ------------ ...test-suite-Add-tar-xvf-filename-test-case.patch | 27 ------------- ...NU-tar-help-output-parsing-regex-fixes-15.patch | 25 ------------ .../patches/0004-tar-Remove-unused-variable.patch | 25 ------------ ...GNU-other-from-version-only-once-per-sess.patch | 46 ---------------------- .../0006-Remove-mplayer-aliased-completion.patch | 22 ----------- extra/source/bash-completion/slack-desc | 10 ++--- 8 files changed, 20 insertions(+), 190 deletions(-) delete mode 100644 extra/source/bash-completion/patches/0001-tar-Don-t-write-to-tmp-jetel.patch delete mode 100644 extra/source/bash-completion/patches/0002-test-suite-Add-tar-xvf-filename-test-case.patch delete mode 100644 extra/source/bash-completion/patches/0003-tar-Fix-GNU-tar-help-output-parsing-regex-fixes-15.patch delete mode 100644 extra/source/bash-completion/patches/0004-tar-Remove-unused-variable.patch delete mode 100644 extra/source/bash-completion/patches/0005-tar-Detect-GNU-other-from-version-only-once-per-sess.patch delete mode 100644 extra/source/bash-completion/patches/0006-Remove-mplayer-aliased-completion.patch (limited to 'extra/source/bash-completion') diff --git a/extra/source/bash-completion/bash-completion.SlackBuild b/extra/source/bash-completion/bash-completion.SlackBuild index fd7206aa..364c10ea 100755 --- a/extra/source/bash-completion/bash-completion.SlackBuild +++ b/extra/source/bash-completion/bash-completion.SlackBuild @@ -22,9 +22,9 @@ # Slackware build script for bash-completion -VERSION=2.2 +VERSION=2.8 ARCH=noarch -BUILD=${BUILD:-3} +BUILD=${BUILD:-1} CWD=$(pwd) TMP=${TMP:-/tmp} @@ -34,8 +34,8 @@ rm -rf $PKG mkdir -p $TMP $PKG cd $TMP rm -rf bash-completion-$VERSION -tar xvf $CWD/bash-completion-$VERSION.tar.?z* -cd bash-completion-$VERSION +tar xvf $CWD/bash-completion-$VERSION.tar.?z || exit 1 +cd bash-completion-$VERSION || exit 1 chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -43,20 +43,14 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Add some patches from git +for file in $CWD/patches/*.patch.gz ; do + zcat $file | patch -p1 --verbose || exit 1 +done + # Fixup sh completion for us zcat $CWD/fixup-sh-script-completions.diff.gz | patch -p1 --verbose || exit 1 -# Add some patches from git to fix tar filename completion and related -# https://github.com/scop/bash-completion/issues/15 -zcat $CWD/patches/0001-tar-Don-t-write-to-tmp-jetel.patch.gz | patch -p1 --verbose || exit 1 -zcat $CWD/patches/0002-test-suite-Add-tar-xvf-filename-test-case.patch.gz | patch -p1 --verbose || exit 1 -zcat $CWD/patches/0003-tar-Fix-GNU-tar-help-output-parsing-regex-fixes-15.patch.gz | patch -p1 --verbose || exit 1 -zcat $CWD/patches/0004-tar-Remove-unused-variable.patch.gz | patch -p1 --verbose || exit 1 -zcat $CWD/patches/0005-tar-Detect-GNU-other-from-version-only-once-per-sess.patch.gz | patch -p1 --verbose || exit 1 - -# Don't symlink mpv -> mplayer as it reportedly doesn't work well. Upstream patch. -zcat $CWD/patches/0006-Remove-mplayer-aliased-completion.patch.gz | patch -p1 --verbose || exit 1 - autoreconf -vif ./configure \ @@ -69,6 +63,12 @@ autoreconf -vif make || exit 1 make install DESTDIR=$PKG || exit 1 +# Don't clobber mount and umount completions from util-linux: +mv $PKG/usr/share/bash-completion/completions/mount \ + $PKG/usr/share/bash-completion/completions/_mount +mv $PKG/usr/share/bash-completion/completions/umount \ + $PKG/usr/share/bash-completion/completions/_umount + # Create the local directory for admin changes/additions: mkdir -p $PKG/etc/bash_completion.d/ diff --git a/extra/source/bash-completion/patches/0001-tar-Don-t-write-to-tmp-jetel.patch b/extra/source/bash-completion/patches/0001-tar-Don-t-write-to-tmp-jetel.patch deleted file mode 100644 index 82cbeb0d..00000000 --- a/extra/source/bash-completion/patches/0001-tar-Don-t-write-to-tmp-jetel.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 6bdd92202f55d7c530dcbeb2a243604dac546cf1 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ville=20Skytt=C3=A4?= -Date: Tue, 15 Mar 2016 19:49:55 +0200 -Subject: [PATCH 1/5] tar: Don't write to /tmp/jetel - ---- - completions/tar | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/completions/tar b/completions/tar -index ef18ad6..6e4c74c 100644 ---- a/completions/tar -+++ b/completions/tar -@@ -411,7 +411,7 @@ __tar_try_list_archive() - shift - - read tarball <<<"$(printf -- '%s\n' "$@" \ -- | command sed -n "/^.\{1,\}$regex\$/p" | tee /tmp/jetel)" -+ | command sed -n "/^.\{1,\}$regex\$/p")" - if [[ -n "$tarball" ]]; then - local IFS=$'\n' - COMPREPLY=($(compgen -o filenames -W "$( --- -2.7.2 - diff --git a/extra/source/bash-completion/patches/0002-test-suite-Add-tar-xvf-filename-test-case.patch b/extra/source/bash-completion/patches/0002-test-suite-Add-tar-xvf-filename-test-case.patch deleted file mode 100644 index 8e647374..00000000 --- a/extra/source/bash-completion/patches/0002-test-suite-Add-tar-xvf-filename-test-case.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 807f903f86ad647425c83f7ad6fc499014c6734e Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ville=20Skytt=C3=A4?= -Date: Tue, 15 Mar 2016 20:19:10 +0200 -Subject: [PATCH 2/5] test suite: Add tar xvf filename test case - ---- - test/lib/completions/tar.exp | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/test/lib/completions/tar.exp b/test/lib/completions/tar.exp -index 70e38d0..7cdef94 100644 ---- a/test/lib/completions/tar.exp -+++ b/test/lib/completions/tar.exp -@@ -59,6 +59,10 @@ set test "old option: create and members" - assert_complete_dir "dir/ dir2/ archive.tar.xz escape.tar" "tar cTfvv NOT_EXISTS DONT_CREATE.tar " $::srcdir/fixtures/tar - sync_after_int - -+set test "old option: extract and archive" -+assert_complete_dir "dir/ dir2/ archive.tar.xz escape.tar" "tar xvf " $::srcdir/fixtures/tar -+sync_after_int -+ - if { "$tar_version" == "gnu" } { - set test "check short options" - assert_complete_any "tar -c" --- -2.7.2 - diff --git a/extra/source/bash-completion/patches/0003-tar-Fix-GNU-tar-help-output-parsing-regex-fixes-15.patch b/extra/source/bash-completion/patches/0003-tar-Fix-GNU-tar-help-output-parsing-regex-fixes-15.patch deleted file mode 100644 index 621ccd12..00000000 --- a/extra/source/bash-completion/patches/0003-tar-Fix-GNU-tar-help-output-parsing-regex-fixes-15.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 0b7189d4eee4597e11cab02e6b4dcae488db5ca8 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Ville=20Skytt=C3=A4?= -Date: Wed, 16 Mar 2016 12:28:29 +0200 -Subject: [PATCH 3/5] tar: Fix GNU tar help output parsing regex, fixes #15 - ---- - completions/tar | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/completions/tar b/completions/tar -index 6e4c74c..0a5f588 100644 ---- a/completions/tar -+++ b/completions/tar -@@ -105,7 +105,7 @@ __gnu_tar_parse_help() - # or more options separated by ', ' separator string. We are matching - # like this then: ^(?