unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: taylanbayirli@gmail.com
Cc: guix-devel@gnu.org
Subject: Re: gnu: Add mg.
Date: Wed, 26 Nov 2014 23:49:50 +0100	[thread overview]
Message-ID: <87fvd5shkh.fsf@gnu.org> (raw)
In-Reply-To: <877fyh38ke.fsf@taylan.uni.cx> ("\"Taylan Ulrich \=\?utf-8\?Q\?\=5C\=22Bay\=C4\=B1rl\=C4\=B1\=2FKammer\=5C\=22\=5C\=22\=22's\?\= message of "Wed, 26 Nov 2014 23:23:29 +0100")

taylanbayirli@gmail.com ("Taylan Ulrich "Bayırlı/Kammer\"") skribis:

> +              (snippet
> +               '(begin
> +                  (substitute* "Makefile.in"
> +                    (("-Werror") "")
> +                    (("-lcurses") "-lncurses")

OK.

> +                    (("/usr/bin/install" install)
> +                     (string-append install " -D")))))))

Here ‘install’ is bound to the complete match–i.e., “/usr/bin/install”.
So in effect, this clause keeps “/usr/bin/install” and appends ‘-D’,
which is why you have to patch it again in the ‘pre-configure’ phase.

It would be simpler to directly replace “/usr/bin/install” by “install
-D” in this snippet.

Likewise, “/usr/bin/strip” should be replaced by “strip” in the snippet.

In general, all the input-independent substitutions should go in the
snippet.

[...]

> +                   ;; Fix pathes in Makefile.in.

s/pathes/file names/.

> +                   (substitute* "Makefile.in"
> +                     (("(prefix=[[:blank:]]*)/usr/local" all prefix)
> +                      (string-append prefix (assoc-ref outputs "out")))

This is the only substitute* clause that should remain here.

Could you send an updated patch?

Thanks,
Ludo’.

  reply	other threads:[~2014-11-26 22:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-26 22:23 gnu: Add mg "Taylan Ulrich Bayırlı/Kammer"
2014-11-26 22:49 ` Ludovic Courtès [this message]
2014-11-26 23:28   ` Taylan Ulrich Bayırlı/Kammer
2014-11-29 20:55     ` Ludovic Courtès

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=87fvd5shkh.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=taylanbayirli@gmail.com \
    /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).