unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Sree Harsha Totakura <sreeharsha@totakura.in>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Calling functions in `make-flags'
Date: Sat, 22 Feb 2014 02:34:17 -0500	[thread overview]
Message-ID: <877g8ntxc6.fsf@netris.org> (raw)
In-Reply-To: <5307F9D0.8080305@totakura.in> (Sree Harsha Totakura's message of "Sat, 22 Feb 2014 02:13:52 +0100")

Sree Harsha Totakura <sreeharsha@totakura.in> 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

  reply	other threads:[~2014-02-22  7:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-22  1:13 Calling functions in `make-flags' Sree Harsha Totakura
2014-02-22  7:34 ` Mark H Weaver [this message]
2014-02-22  9:07   ` Sree Harsha Totakura
2014-02-23  6:20     ` Mark H Weaver
2014-02-23  7:28       ` Sree Harsha Totakura

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877g8ntxc6.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=guix-devel@gnu.org \
    --cc=sreeharsha@totakura.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).