From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: Calling functions in `make-flags' Date: Sat, 22 Feb 2014 02:34:17 -0500 Message-ID: <877g8ntxc6.fsf@netris.org> References: <5307F9D0.8080305@totakura.in> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH77U-000645-6B for guix-devel@gnu.org; Sat, 22 Feb 2014 02:35:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WH77N-0006o7-PO for guix-devel@gnu.org; Sat, 22 Feb 2014 02:35:31 -0500 Received: from world.peace.net ([96.39.62.75]:47887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WH77N-0006lK-KW for guix-devel@gnu.org; Sat, 22 Feb 2014 02:35:25 -0500 In-Reply-To: <5307F9D0.8080305@totakura.in> (Sree Harsha Totakura's message of "Sat, 22 Feb 2014 02:13:52 +0100") 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: Sree Harsha Totakura Cc: guix-devel Sree Harsha Totakura writes: > 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"))) Try this instead: (arguments '(#:make-flags (list (string-append "SH=" (which "sh"))) ...)) If that doesn't work, then try this: (arguments '(#:make-flags (list (string-append "SH=" (assoc-ref %build-inputs "bash") "/bin/sh")) ...)) I don't have time at the moment to research whether the first one would work (it depends on when the code is evaluated), but I didn't want to keep you waiting. Mark