svn path=/nixpkgs/trunk/; revision=17207wip/yesman
parent
f03f8d0952
commit
3e69dab469
@ -1,10 +1,15 @@ |
||||
{stdenv, fetchurl, pcre, libpng}: |
||||
{stdenv, fetchurl, ncurses, pcre, libpng, zlib, readline}: |
||||
|
||||
stdenv.mkDerivation { |
||||
name = "slang-2.0.5"; |
||||
name = "slang-2.2.1"; |
||||
src = fetchurl { |
||||
url = ftp://space.mit.edu/pub/davis/slang/v2.0/slang-2.0.5.tar.bz2; |
||||
md5 = "8b6afa085f76b1be29825f0c470b6cad"; |
||||
url = ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v2.2/slang-2.2.1.tar.bz2; |
||||
sha256 = "1qgfg6i5lzmw8j9aqd8pgz3vnhn80giij9bpgm5r3gmna2h0rzfj"; |
||||
}; |
||||
buildInputs = [pcre libpng]; |
||||
preConfigure = '' |
||||
sed -i -e "s|/usr/lib/terminfo|${ncurses}/lib/terminfo|" configure |
||||
sed -i -e "s|/bin/ln|ln|" src/Makefile.in |
||||
''; |
||||
configureFlags = "--with-png=${libpng} --with-z=${zlib} --with-pcre=${pcre} --with-readline=${readline}"; |
||||
buildInputs = [ncurses pcre libpng zlib readline]; |
||||
} |
||||
|
@ -0,0 +1,41 @@ |
||||
Submitted By: Alexander E. Patrakov
|
||||
Date: 2007-01-19
|
||||
Initial Package Version: 4.6.1
|
||||
Origin: http://bugs.gentoo.org/show_bug.cgi?id=153925
|
||||
Upstream Status: aware of the problem
|
||||
Description: with bash-3.2, unpatched mc-4.6.1 refuses to go into directories
|
||||
containing underscores or other strange characters.
|
||||
|
||||
--- mc-4.6.1/src/subshell.c.000 2006-05-08 23:11:48.000000000 +0200
|
||||
+++ mc-4.6.1/src/subshell.c 2006-10-28 15:40:46.000000000 +0200
|
||||
@@ -745,29 +745,13 @@ subshell_name_quote (const char *s)
|
||||
memcpy (d, cmd_start, len);
|
||||
d += len;
|
||||
|
||||
- /*
|
||||
- * Print every character in octal format with the leading backslash.
|
||||
- * tcsh and zsh may require 4-digit octals, bash < 2.05b doesn't like them.
|
||||
- */
|
||||
- if (subshell_type == BASH) {
|
||||
for (; *s; s++) {
|
||||
- /* Must quote numbers, so that they are not glued to octals */
|
||||
if (isalpha ((unsigned char) *s)) {
|
||||
*d++ = (unsigned char) *s;
|
||||
} else {
|
||||
- sprintf (d, "\\%03o", (unsigned char) *s);
|
||||
- d += 4;
|
||||
- }
|
||||
- }
|
||||
- } else {
|
||||
- for (; *s; s++) {
|
||||
- if (isalnum ((unsigned char) *s)) {
|
||||
- *d++ = (unsigned char) *s;
|
||||
- } else {
|
||||
sprintf (d, "\\0%03o", (unsigned char) *s);
|
||||
d += 5;
|
||||
}
|
||||
- }
|
||||
}
|
||||
|
||||
memcpy (d, common_end, sizeof (common_end));
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue