summaryrefslogtreecommitdiff
path: root/source/ap/mc
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2018-05-28 19:12:29 +0000
committerEric Hameleers <alien@slackware.com>2018-05-31 23:39:35 +0200
commit646a5c1cbfd95873950a87b5f75d52073a967023 (patch)
treeb8b8d2ab3b0d432ea69ad1a64d1c789649d65020 /source/ap/mc
parentd31c50870d0bee042ce660e445c9294a59a3a65b (diff)
downloadcurrent-646a5c1cbfd95873950a87b5f75d52073a967023.tar.gz
Mon May 28 19:12:29 UTC 201820180528191229
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.
Diffstat (limited to 'source/ap/mc')
-rw-r--r--source/ap/mc/mc-3611-fish-fix-perl-ls-helper.patch34
-rw-r--r--source/ap/mc/mc-syntax-error.patch28
-rwxr-xr-xsource/ap/mc/mc.SlackBuild17
-rw-r--r--source/ap/mc/slack-desc12
4 files changed, 18 insertions, 73 deletions
diff --git a/source/ap/mc/mc-3611-fish-fix-perl-ls-helper.patch b/source/ap/mc/mc-3611-fish-fix-perl-ls-helper.patch
deleted file mode 100644
index 4010bd05..00000000
--- a/source/ap/mc/mc-3611-fish-fix-perl-ls-helper.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From e274e58cb7dff1683480f5538fd1bfa41a85c0c7 Mon Sep 17 00:00:00 2001
-From: Andreas Mohr <and@gmx.li>
-Date: Sun, 13 Mar 2016 20:59:47 +0000
-Subject: [PATCH] Fish: fix perl ls helper
-
-With #3599 I introduce a perl warning in fish_list_perl()
-so fish_list_perl() was skipped (return code 255) and fallback ls
-function was used instead.
-
-Plus all % chars must quoted because of g_strconcat() after reading
-script file into string.
-
-Fix it!
-
-Signed-off-by: Andreas Mohr <and@gmx.li>
----
- src/vfs/fish/helpers/ls | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/src/vfs/fish/helpers/ls b/src/vfs/fish/helpers/ls
-index 1284e17..909a77d 100755
---- a/src/vfs/fish/helpers/ls
-+++ b/src/vfs/fish/helpers/ls
-@@ -138,8 +138,8 @@ while((my $filename = readdir (DIR))){
- my $linkname = readlink ("$dirname/$filename");
- $linkname =~ $strutils_shell_escape_regex;
- printf("R%%o %%o $uid.$gid\nS$size\nd$mloctime\n:\"%%s\" -> \"%%s\"\n\n", S_IMODE($mode), S_IFMT($mode), $e_filename, $linkname);
-- } elseif (S_ISCHR ($mode) || S_ISBLK ($mode)) {
-- my $minor = $rdev % 256;
-+ } elsif (S_ISCHR ($mode) || S_ISBLK ($mode)) {
-+ my $minor = $rdev %% 256;
- my $major = int( $rdev / 256 );
- printf("R%%o %%o $uid.$gid\nE$major,$minor\nd$mloctime\n:\"%%s\"\n\n", S_IMODE($mode), S_IFMT($mode), $e_filename);
- } else {
diff --git a/source/ap/mc/mc-syntax-error.patch b/source/ap/mc/mc-syntax-error.patch
deleted file mode 100644
index 8b7b7d39..00000000
--- a/source/ap/mc/mc-syntax-error.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- src/vfs/extfs/helpers/patchfs.in
-+++ src/vfs/extfs/helpers/patchfs.in
-@@ -80,10 +80,10 @@
- my ($qfname)=(quotemeta $_[0]);
-
- $_=`$fileutil $qfname`;
-- } elsif (/^'*lzip/) {
-- return "$lzip -dc $qfname";
- if (/^'*lz4/) {
- return "$lz4 -dc $qfname";
-+ } elsif (/^'*lzip/) {
-+ return "$lzip -dc $qfname";
- } elsif (/^'*lzma/) {
- return "$lzma -dc $qfname";
- } elsif (/^'*xz/) {
-@@ -104,10 +104,10 @@
- my ($sep) = $append ? '>>' : '>';
-
- $_=`$fileutil $qfname`;
-- } elsif (/^'*lzip/) {
-- return "$lzip -c $sep $qfname";
- if (/^'*lz4/) {
- return "$lz4 -c $sep $qfname";
-+ } elsif (/^'*lzip/) {
-+ return "$lzip -c $sep $qfname";
- } elsif (/^'*lzma/) {
- return "$lzma -c $sep $qfname";
- } elsif (/^'*xz/) {
diff --git a/source/ap/mc/mc.SlackBuild b/source/ap/mc/mc.SlackBuild
index b66b432d..abab4c71 100755
--- a/source/ap/mc/mc.SlackBuild
+++ b/source/ap/mc/mc.SlackBuild
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/bin/bash
-# Copyright 2008, 2009, 2010, 2011, 2013, 2016 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2011, 2013, 2016, 2018 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -20,7 +20,9 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+PKGNAM=mc
VERSION=${VERSION:-$(echo mc-*.tar.?z* | cut -d - -f 2 | rev | cut -f 3- -d . | rev)}
BUILD=${BUILD:-2}
@@ -34,6 +36,14 @@ if [ -z "$ARCH" ]; then
esac
fi
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz"
+ exit 0
+fi
+
NUMJOBS=${NUMJOBS:-" -j7 "}
if [ "$ARCH" = "i586" ]; then
@@ -46,7 +56,6 @@ else
SLKCFLAGS="-O2"
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-mc
rm -rf $PKG
@@ -69,8 +78,6 @@ zcat $CWD/mc.image.sh.geeqie.diff.gz | patch -p1 --verbose || exit 1
# Upstream fixes:
zcat $CWD/mc-3605-extfs.c-fix-buffer-overflow.patch.gz | patch -p1 --verbose || exit 1
-zcat $CWD/mc-3611-fish-fix-perl-ls-helper.patch.gz | patch -p1 --verbose || exit 1
-zcat $CWD/mc-syntax-error.patch.gz | patch -p0 --verbose || exit 1
if [ ! -x ./configure ]; then
./autogen.sh
diff --git a/source/ap/mc/slack-desc b/source/ap/mc/slack-desc
index be6ca439..f2e1e238 100644
--- a/source/ap/mc/slack-desc
+++ b/source/ap/mc/slack-desc
@@ -1,17 +1,17 @@
# HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description. Line
+# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
-# on the right side marks the last column you can put a character in. You must
-# make exactly 11 lines for the formatting to be correct. It's also
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
mc: mc (Midnight Commander file manager)
mc:
mc: The Midnight Commander is a Norton Commander clone, a program that
-mc: manipulates and manages files and directories. Useful, fast, and has
-mc: color displays on the Linux console. Mouse support is provided
-mc: through the gpm mouse server. This is a lightweight compilation of
+mc: manipulates and manages files and directories. Useful, fast, and has
+mc: color displays on the Linux console. Mouse support is provided
+mc: through the gpm mouse server. This is a lightweight compilation of
mc: mc for use on the text console or in an xterm.
mc:
mc: mc was written by Miguel de Icaza and Mauricio Plaza.