Update mc to 4.8.22. Major changes since 4.8.21 Core - Support BTRFS's file clone operation (#1983) - Find file: show pattern and content in the results window title (#3453) - Find file: remember state (empty or not) of Content field (#3924) - Improve support IBM i (#3927) - Improve handling of hard link creation errors (#3678) - Support user-defined prompt in the Fish subshell (#3944) VFS - sftp: preserve atime and mtime (#3917) Editor - man page cleanup (#3918) - syntax: - PHP - highlight keyword 'null' (#3920) - Meson - initial implementation (#3940) Misc - ext.d: use MPV as a fallback for mplayer -identify (#3919) - ext.d: improve recognition of MS Office formats (#3929) - Code cleanup (#3915) - Cleanup hint files Fixes - Won't compile for Apple (#3930) - "Cannot create target file" when target has backslash space in the name (# 3923) - Quiet single file overwrite (#3908) - Show error message for each not-installed program when view documents in MS Word and Excel formats (#3926) - Crash when trying some sftp connections (#3937) - Crash when return to filemanager from subshell (#3943)diff -r1.112 -r1.113 pkgsrc/sysutils/mc/Makefile
(bsiegert)
@@ -1,17 +1,16 @@ | @@ -1,17 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.112 2018/11/20 08:04:59 maya Exp $ | 1 | # $NetBSD: Makefile,v 1.113 2019/01/18 22:28:38 bsiegert Exp $ | |
2 | 2 | |||
3 | DISTNAME= mc-4.8.21 | 3 | DISTNAME= mc-4.8.22 | |
4 | PKGREVISION= 1 | |||
5 | CATEGORIES= sysutils | 4 | CATEGORIES= sysutils | |
6 | MASTER_SITES= http://www.midnight-commander.org/downloads/ | 5 | MASTER_SITES= http://www.midnight-commander.org/downloads/ | |
7 | EXTRACT_SUFX= .tar.bz2 | 6 | EXTRACT_SUFX= .tar.bz2 | |
8 | 7 | |||
9 | MAINTAINER= cheusov@NetBSD.org | 8 | MAINTAINER= cheusov@NetBSD.org | |
10 | HOMEPAGE= http://www.midnight-commander.org/ | 9 | HOMEPAGE= http://www.midnight-commander.org/ | |
11 | COMMENT= User-friendly file manager and visual shell | 10 | COMMENT= User-friendly file manager and visual shell | |
12 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
13 | 12 | |||
14 | USE_TOOLS+= pkg-config unzip:run perl:build gmake | 13 | USE_TOOLS+= pkg-config unzip:run perl:build gmake | |
15 | GNU_CONFIGURE= yes | 14 | GNU_CONFIGURE= yes | |
16 | USE_PKGLOCALEDIR= yes | 15 | USE_PKGLOCALEDIR= yes | |
17 | 16 |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.16 2018/06/17 08:21:58 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.17 2019/01/18 22:28:38 bsiegert Exp $ | |
2 | bin/mc | 2 | bin/mc | |
3 | bin/mcdiff | 3 | bin/mcdiff | |
4 | bin/mcedit | 4 | bin/mcedit | |
5 | bin/mcview | 5 | bin/mcview | |
6 | libexec/mc/ext.d/archive.sh | 6 | libexec/mc/ext.d/archive.sh | |
7 | libexec/mc/ext.d/doc.sh | 7 | libexec/mc/ext.d/doc.sh | |
8 | libexec/mc/ext.d/image.sh | 8 | libexec/mc/ext.d/image.sh | |
9 | libexec/mc/ext.d/misc.sh | 9 | libexec/mc/ext.d/misc.sh | |
10 | libexec/mc/ext.d/package.sh | 10 | libexec/mc/ext.d/package.sh | |
11 | libexec/mc/ext.d/sound.sh | 11 | libexec/mc/ext.d/sound.sh | |
12 | libexec/mc/ext.d/text.sh | 12 | libexec/mc/ext.d/text.sh | |
13 | libexec/mc/ext.d/video.sh | 13 | libexec/mc/ext.d/video.sh | |
14 | libexec/mc/ext.d/web.sh | 14 | libexec/mc/ext.d/web.sh | |
@@ -273,26 +273,27 @@ share/mc/syntax/ini.syntax | @@ -273,26 +273,27 @@ share/mc/syntax/ini.syntax | |||
273 | share/mc/syntax/j.syntax | 273 | share/mc/syntax/j.syntax | |
274 | share/mc/syntax/jal.syntax | 274 | share/mc/syntax/jal.syntax | |
275 | share/mc/syntax/java.syntax | 275 | share/mc/syntax/java.syntax | |
276 | share/mc/syntax/js.syntax | 276 | share/mc/syntax/js.syntax | |
277 | share/mc/syntax/latex.syntax | 277 | share/mc/syntax/latex.syntax | |
278 | share/mc/syntax/lisp.syntax | 278 | share/mc/syntax/lisp.syntax | |
279 | share/mc/syntax/lkr.syntax | 279 | share/mc/syntax/lkr.syntax | |
280 | share/mc/syntax/lsm.syntax | 280 | share/mc/syntax/lsm.syntax | |
281 | share/mc/syntax/lua.syntax | 281 | share/mc/syntax/lua.syntax | |
282 | share/mc/syntax/m4.syntax | 282 | share/mc/syntax/m4.syntax | |
283 | share/mc/syntax/mail.syntax | 283 | share/mc/syntax/mail.syntax | |
284 | share/mc/syntax/makefile.syntax | 284 | share/mc/syntax/makefile.syntax | |
285 | share/mc/syntax/markdown.syntax | 285 | share/mc/syntax/markdown.syntax | |
286 | share/mc/syntax/meson.syntax | |||
286 | share/mc/syntax/ml.syntax | 287 | share/mc/syntax/ml.syntax | |
287 | share/mc/syntax/named.syntax | 288 | share/mc/syntax/named.syntax | |
288 | share/mc/syntax/nemerle.syntax | 289 | share/mc/syntax/nemerle.syntax | |
289 | share/mc/syntax/nroff.syntax | 290 | share/mc/syntax/nroff.syntax | |
290 | share/mc/syntax/octave.syntax | 291 | share/mc/syntax/octave.syntax | |
291 | share/mc/syntax/opencl.syntax | 292 | share/mc/syntax/opencl.syntax | |
292 | share/mc/syntax/osl.syntax | 293 | share/mc/syntax/osl.syntax | |
293 | share/mc/syntax/pascal.syntax | 294 | share/mc/syntax/pascal.syntax | |
294 | share/mc/syntax/perl.syntax | 295 | share/mc/syntax/perl.syntax | |
295 | share/mc/syntax/php.syntax | 296 | share/mc/syntax/php.syntax | |
296 | share/mc/syntax/po.syntax | 297 | share/mc/syntax/po.syntax | |
297 | share/mc/syntax/povray.syntax | 298 | share/mc/syntax/povray.syntax | |
298 | share/mc/syntax/procmail.syntax | 299 | share/mc/syntax/procmail.syntax |
@@ -1,11 +1,11 @@ | @@ -1,11 +1,11 @@ | |||
1 | $NetBSD: distinfo,v 1.32 2018/06/17 08:21:58 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.33 2019/01/18 22:28:38 bsiegert Exp $ | |
2 | 2 | |||
3 | SHA1 (mc-4.8.21.tar.bz2) = bb1c3b7107cc0fa877edf669628e7c7a8ffdc962 | 3 | SHA1 (mc-4.8.22.tar.bz2) = ec30588765ecab685f37b825d1b318a35f9f88b5 | |
4 | RMD160 (mc-4.8.21.tar.bz2) = 9e74eafcce2c59afc25fd17d4caa0ee2ddd1c031 | 4 | RMD160 (mc-4.8.22.tar.bz2) = 870be10c5b8eff5ed6193fe245a1e77308910e0e | |
5 | SHA512 (mc-4.8.21.tar.bz2) = 20799b5936f0cc166869af42b5bf7b737bbccee4adfc24be16d3b4ebd2f911d60d48359a081f69ecd06cf02182aeeab98e8ac352bc219fe3560c4cfe5374451e | 5 | SHA512 (mc-4.8.22.tar.bz2) = 7eb0b3bdc57bd39b76c13297721ac94d3b215675f9a69dfb69ef4c7eb13ccbcb42dd15c7b57fdf3dd92b52dad1152d6d620851683d37e9d6adc3ed88aebc6f2f | |
6 | Size (mc-4.8.21.tar.bz2) = 3381888 bytes | 6 | Size (mc-4.8.22.tar.bz2) = 3415985 bytes | |
7 | SHA1 (patch-ac) = d01357b685acd8e863510248ed7519ae2821757f | 7 | SHA1 (patch-ac) = d01357b685acd8e863510248ed7519ae2821757f | |
8 | SHA1 (patch-ad) = 4484b91511cf5bac73f4ae940988d46239e2cd95 | 8 | SHA1 (patch-ad) = 4484b91511cf5bac73f4ae940988d46239e2cd95 | |
9 | SHA1 (patch-configure) = 8fdc579fb4d8d4c018488b9b160bb24f9a82aa42 | 9 | SHA1 (patch-configure) = 8fdc579fb4d8d4c018488b9b160bb24f9a82aa42 | |
10 | SHA1 (patch-src_subshell_common.c) = 6fc3a92e6116527f7ead9d9515906add0b30ff5e | 10 | SHA1 (patch-src_subshell_common.c) = b6d390da68aa0028d21683b1959340e51f67efd6 | |
11 | SHA1 (patch-src_vfs_extfs_helpers_Makefile.in) = c5d4735ce9548714731fdb1227e1acac78f11332 | 11 | SHA1 (patch-src_vfs_extfs_helpers_Makefile.in) = c5d4735ce9548714731fdb1227e1acac78f11332 |
@@ -1,44 +1,48 @@ | @@ -1,44 +1,48 @@ | |||
1 | $NetBSD: patch-src_subshell_common.c,v 1.1 2016/12/16 00:02:28 joerg Exp $ | 1 | $NetBSD: patch-src_subshell_common.c,v 1.2 2019/01/18 22:28:38 bsiegert Exp $ | |
2 | 2 | |||
3 | Report error from read since tcsetattr can replace errno. | 3 | Report error from read since tcsetattr can replace errno. | |
4 | Recognize /bin/sh as valid shell and don't complain about it. | 4 | Recognize /bin/sh as valid shell and don't complain about it. | |
5 | 5 | |||
6 | --- src/subshell/common.c.orig 2016-09-22 18:24:12.000000000 +0000 | 6 | --- src/subshell/common.c.orig 2018-12-28 19:35:25.000000000 +0000 | |
7 | +++ src/subshell/common.c | 7 | +++ src/subshell/common.c | |
8 | @@ -303,6 +303,7 @@ init_subshell_child (const char *pty_nam | 8 | @@ -317,6 +317,7 @@ init_subshell_child (const char *pty_nam | |
9 | 9 | |||
10 | case SHELL_ASH_BUSYBOX: | 10 | case SHELL_ASH_BUSYBOX: | |
11 | case SHELL_DASH: | 11 | case SHELL_DASH: | |
12 | + case SHELL_SH: | 12 | + case SHELL_SH: | |
13 | /* Do we have a custom init file ~/.local/share/mc/ashrc? */ | 13 | /* Do we have a custom init file ~/.local/share/mc/ashrc? */ | |
14 | init_file = mc_config_get_full_path ("ashrc"); | 14 | init_file = mc_config_get_full_path ("ashrc"); | |
15 | 15 | |||
16 | @@ -496,7 +497,7 @@ static gboolean | 16 | @@ -510,7 +511,7 @@ static gboolean | |
17 | feed_subshell (int how, gboolean fail_on_error) | 17 | feed_subshell (int how, gboolean fail_on_error) | |
18 | { | 18 | { | |
19 | fd_set read_set; /* For 'select' */ | 19 | fd_set read_set; /* For 'select' */ | |
20 | - int bytes; /* For the return value from 'read' */ | 20 | - int bytes; /* For the return value from 'read' */ | |
21 | + int serrno, bytes; /* For the return value from 'read' */ | 21 | + int serrno, bytes; /* For the return value from 'read' */ | |
22 | int i; /* Loop counter */ | 22 | int i; /* Loop counter */ | |
23 | 23 | |||
24 | struct timeval wtime; /* Maximum time we wait for the subshell */ | 24 | struct timeval wtime; /* Maximum time we wait for the subshell */ | |
25 | @@ -551,15 +552,16 @@ feed_subshell (int how, gboolean fail_on | 25 | @@ -565,19 +566,20 @@ feed_subshell (int how, gboolean fail_on | |
26 | /* for (i=0; i<5; ++i) * FIXME -- experimental */ | 26 | /* for (i=0; i<5; ++i) * FIXME -- experimental */ | |
27 | { | 27 | { | |
28 | bytes = read (mc_global.tty.subshell_pty, pty_buffer, sizeof (pty_buffer)); | 28 | bytes = read (mc_global.tty.subshell_pty, pty_buffer, sizeof (pty_buffer)); | |
29 | + serrno = errno; | 29 | + serrno = errno; | |
30 | 30 | |||
31 | /* The subshell has died */ | 31 | /* The subshell has died */ | |
32 | - if (bytes == -1 && errno == EIO && !subshell_alive) | 32 | - if (bytes == -1 && errno == EIO && !subshell_alive) | |
33 | + if (((bytes == -1 && errno == EIO) || bytes == 0) && !subshell_alive) | 33 | + if (((bytes == -1 && errno == EIO) || bytes == 0) && !subshell_alive) | |
34 | return FALSE; | 34 | return FALSE; | |
35 | 35 | |||
36 | - if (bytes <= 0) | 36 | - if (bytes <= 0) | |
37 | + if (bytes < 0) | 37 | + if (bytes < 0) | |
38 | { | 38 | { | |
39 | #ifdef PTY_ZEROREAD | |||
40 | /* On IBM i, read(1) can return 0 for a non-closed fd */ | |||
41 | continue; | |||
42 | #else | |||
39 | tcsetattr (STDOUT_FILENO, TCSANOW, &shell_mode); | 43 | tcsetattr (STDOUT_FILENO, TCSANOW, &shell_mode); | |
40 | - fprintf (stderr, "read (subshell_pty...): %s\r\n", unix_error_string (errno)); | 44 | - fprintf (stderr, "read (subshell_pty...): %s\r\n", unix_error_string (errno)); | |
41 | + fprintf (stderr, "read (subshell_pty...): %s\r\n", unix_error_string (serrno)); | 45 | + fprintf (stderr, "read (subshell_pty...): %s\r\n", unix_error_string (serrno)); | |
42 | exit (EXIT_FAILURE); | 46 | exit (EXIT_FAILURE); | |
47 | #endif | |||
43 | } | 48 | } | |
44 |