From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sree Harsha Totakura Subject: Calling functions in `make-flags' Date: Sat, 22 Feb 2014 02:13:52 +0100 Message-ID: <5307F9D0.8080305@totakura.in> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH1AG-0000od-IU for guix-devel@gnu.org; Fri, 21 Feb 2014 20:14:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WH1AA-0003yN-Jc for guix-devel@gnu.org; Fri, 21 Feb 2014 20:14:00 -0500 Received: from mail-out1.informatik.tu-muenchen.de ([131.159.0.8]:49698 helo=smtp1.informatik.tu-muenchen.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH1AA-0003yF-DC for guix-devel@gnu.org; Fri, 21 Feb 2014 20:13:54 -0500 Received: (Authenticated sender: totakura) by mail.in.tum.de (Postfix) with ESMTPSA id EACB5240385 for ; Sat, 22 Feb 2014 02:13:52 +0100 (CET) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel Hi, I am trying to build a package which does not have 'configure' script. It instead relies solely on a makefile. For this to function, I have to set the 'SH' variable inside the Makefile to a valid shell. I am trying to set the 'SH' variable through build-flags like this: > (arguments > '(#:make-flags '((string-append "SH=" (which "sh"))) But this fails with the following error: > 203: 1 [build #:make-flags ((string-append "SH=" (which "sh"))) ...] > In unknown file: > ?: 0 [system* "make" "-j" "4" (string-append "SH=" (which "sh"))] > > ERROR: In procedure system*: > ERROR: Wrong type (expecting string): (string-append "SH=" (which "sh")) How can I get this to work? Regards, Sree