FreeBSD Port: mc-4.8.14

Jiri Lazansky lazan at protys.cz
Fri Mar 27 16:30:16 UTC 2015


Dear maintainer:

I tried to upgrade well working mc-4.8.13_3 to mc-4.8.14 on FreeBSD 9.3 (AMD64) with subshell using the port misc/mc. My shell is 'bash'.

The result was:

1. Very long start-up time
2. Subshell not working (has not read ~/.bashrc).

Following patch resolved the situation:

==========================
--- src/subshell.c.orig
+++ src/subshell.c
@@ -874,8 +874,7 @@
     {
     case BASH:
         g_snprintf (precmd, sizeof (precmd),
-                    " PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'pwd>&%d;kill -STOP $$'\n",
-                    subshell_pipe[WRITE]);
+                    " PROMPT_COMMAND='pwd>&%d;kill -STOP $$'\n", subshell_pipe[WRITE]);
         break;

     case ZSH:
===========================

The output of 'mc -V' is

GNU Midnight Commander 4.8.14
Built with GLib 2.42.2
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish, smbfs
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

Please analyse the reasons and try to update the port.

Best regards

Jiri Lazansky
<mailto:lazan at protys.cz>




More information about the freebsd-ports mailing list