unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Roel Janssen <roel@gnu.org>
To: Mark H Weaver <mhw@netris.org>
Cc: guix-devel@gnu.org
Subject: Re: 01/01: gnu: Add guile-curl.
Date: Thu, 19 Apr 2018 14:31:50 +0200	[thread overview]
Message-ID: <87wox3bcnd.fsf@gnu.org> (raw)
In-Reply-To: <87muxzidzw.fsf@netris.org>


Mark H Weaver <mhw@netris.org> writes:

> Hi Roel,
>
> roel@gnu.org (Roel Janssen) writes:
>
>> roelj pushed a commit to branch master
>> in repository guix.
>>
>> commit 5e3010a2ac651397e0cb69239a7d7aa3c0a5703e
>> Author: Roel Janssen <roel@gnu.org>
>> Date:   Wed Apr 18 23:00:41 2018 +0200
>>
>>     gnu: Add guile-curl.
>>     
>>     * gnu/packages/curl.scm (guile-curl): New variable.
>
> [...]
>
>> +      (modify-phases %standard-phases
>> +        (add-after 'install 'patch-extension-path
>> +          (lambda* (#:key outputs #:allow-other-keys)
>> +             (let* ((out      (assoc-ref outputs "out"))
>> +                    (curl.scm (string-append
>> +                               out "/share/guile/site/2.2/curl.scm"))
>> +                    (curl.go  (string-append
>> +                               out "/lib/guile/2.2/site-ccache/curl.go"))
>> +                    (ext      (string-append out "/lib/guile/2.2/"
>> +                                             "extensions/libguile-curl")))
>> +               (substitute* curl.scm (("libguile-curl") ext))
>> +               ;; The build system does not actually compile the Scheme module.
>> +               ;; So we can compile it and put it in the right place in one go.
>> +               (system* "guild" "compile" curl.scm "-o" curl.go))
>> +               #t)))))
>
> Please use 'invoke' instead of 'system*' from now on, so that errors in
> the subprocess will be detected and reported using exceptions.  As you
> have it now, compile failures will be ignored.

Whoops.  I will try to clear my brain's internal cache.
Thanks for letting me know.

>
> Would you like to push a fix?

I pushed a fix in d28e5ad23.

Kind regards,
Roel Janssen

      reply	other threads:[~2018-04-19 12:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180418210130.32311.11971@vcs0.savannah.gnu.org>
     [not found] ` <20180418210131.A20A7204F1@vcs0.savannah.gnu.org>
2018-04-19 12:20   ` 01/01: gnu: Add guile-curl Mark H Weaver
2018-04-19 12:31     ` Roel Janssen [this message]

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=87wox3bcnd.fsf@gnu.org \
    --to=roel@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=mhw@netris.org \
    /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).