From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: [PATCH] Add vim. Date: Sun, 20 Jan 2013 12:43:16 +0100 Message-ID: <201301201243.16603.andreas@enge.fr> References: <201301191208.33733.andreas@enge.fr> <1358649522-24143-1-git-send-email-tipecaml@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_Uh9+QpXw2m5gX+/" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwtJ5-0004EF-NC for bug-guix@gnu.org; Sun, 20 Jan 2013 06:43:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwtJ2-0004V5-RP for bug-guix@gnu.org; Sun, 20 Jan 2013 06:43:23 -0500 Received: from moutng.kundenserver.de ([212.227.17.8]:64107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwtJ2-0004V0-HJ for bug-guix@gnu.org; Sun, 20 Jan 2013 06:43:20 -0500 In-Reply-To: <1358649522-24143-1-git-send-email-tipecaml@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: bug-guix@gnu.org --Boundary-01=_Uh9+QpXw2m5gX+/ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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: (#:phases (alist-replace 'configure (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"))))) %standard-phases))) Andreas --Boundary-01=_Uh9+QpXw2m5gX+/ Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit

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:

 

(#:phases

(alist-replace

'configure

(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")))))

%standard-phases)))

 

Andreas

 

--Boundary-01=_Uh9+QpXw2m5gX+/--