[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add vim.

From: Andreas Enge
Subject: Re: [PATCH] Add vim.
Date: Sun, 20 Jan 2013 12:43:16 +0100
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

Am Sonntag, 20. Januar 2013 schrieb Cyril Roelandt:

> During compilation, I get this error message :

> nix/store/4mg8b8vvmava68y64qmm70gqfnhhjzmx-bash-4.2/bin/sh: hostname:

> command not found


I did not see this. However, the patch-shebangs phase complains about a missing interpreter "perl", so it might be good to add perl to the inputs. Then there are also "nawk" (this could probably be patched to "gawk") and "csh" (which we do not have yet).


> "make test" runs the test suite, but quickly fails :

> /nix/store/4mg8b8vvmava68y64qmm70gqfnhhjzmx-bash-4.2/bin/bash: /bin/sh:

> No such file or directory make[2]: *** [test1.out] Error 127


This is probably due to src/testdir/Makefile containing lines like this:

test1.out: test1.in

-rm -f $*.failed tiny.vim small.vim mbyte.vim mzscheme.vim test.ok X* viminfo

$(VALGRIND) $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in $*.in

@/bin/sh -c "if diff test.out $*.ok; \


A probable solution would be to replace the /bin/sh by calls to the correct bash; something similar to the following lines from ghostscript.scm:





(lambda* (#:key #:allow-other-keys #:rest args)

(let ((configure (assoc-ref %standard-phases 'configure)))

(apply configure args)

(substitute* "base/all-arch.mak"

(("/bin/sh") (which "bash")))

(substitute* "base/unixhead.mak"

(("/bin/sh") (which "bash")))))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]