[154272] trunk/dports/sysutils/mc

mk at macports.org mk at macports.org
Tue Oct 25 21:56:37 CEST 2016


Revision: 154272
          https://trac.macports.org/changeset/154272
Author:   mk at macports.org
Date:     2016-10-25 21:56:36 +0200 (Tue, 25 Oct 2016)
Log Message:
-----------
mc: fix for Sierra with patch (closes #52511)

Modified Paths:
--------------
    trunk/dports/sysutils/mc/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/mc/files/
    trunk/dports/sysutils/mc/files/patch-src_subshell_common.c.diff

Modified: trunk/dports/sysutils/mc/Portfile
===================================================================
--- trunk/dports/sysutils/mc/Portfile	2016-10-25 19:56:22 UTC (rev 154271)
+++ trunk/dports/sysutils/mc/Portfile	2016-10-25 19:56:36 UTC (rev 154272)
@@ -5,6 +5,7 @@
 
 name                mc
 version             4.8.18
+revision            1
 categories          sysutils
 maintainers         mk openmaintainer
 license             GPL-3+
@@ -30,6 +31,8 @@
 depends_build       port:pkgconfig
 depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2
 
+patchfiles          patch-src_subshell_common.c.diff
+
 configure.args      --without-x
 
 post-destroot {

Added: trunk/dports/sysutils/mc/files/patch-src_subshell_common.c.diff
===================================================================
--- trunk/dports/sysutils/mc/files/patch-src_subshell_common.c.diff	                        (rev 0)
+++ trunk/dports/sysutils/mc/files/patch-src_subshell_common.c.diff	2016-10-25 19:56:36 UTC (rev 154272)
@@ -0,0 +1,32 @@
+--- src/subshell/common.c.orig	2016-05-07 15:42:52 UTC
++++ src/subshell/common.c
+@@ -320,7 +320,8 @@ init_subshell_child (const char *pty_nam
+ 
+         break;
+ 
+-        /* TODO: Find a way to pass initfile to TCSH, ZSH and FISH */
++        /* TODO: Find a way to pass initfile to SH, TCSH, ZSH and FISH */
++    case SHELL_SH:
+     case SHELL_TCSH:
+     case SHELL_ZSH:
+     case SHELL_FISH:
+@@ -369,6 +370,7 @@ init_subshell_child (const char *pty_nam
+     case SHELL_DASH:
+     case SHELL_TCSH:
+     case SHELL_FISH:
++    case SHELL_SH:
+         execl (mc_global.shell->path, mc_global.shell->path, (char *) NULL);
+         break;
+ 
+@@ -889,6 +891,11 @@ init_subshell_precmd (char *precmd, size
+                     subshell_pipe[WRITE]);
+         break;
+ 
++    case SHELL_SH:
++        g_snprintf (precmd, buff_size,
++                    "PS1='$USER@\\h:\\w\\$ '\n", subshell_pipe[WRITE]);
++        break;
++
+     default:
+         break;
+     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161025/b4dc8489/attachment-0002.html>


More information about the macports-changes mailing list