all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Felix Lechner via <help-guix@gnu.org>
To: Marc Coquand <marc@mccd.space>, help-guix@gnu.org
Subject: Re: Changing the prefix for this libpg_query package
Date: Sun, 25 Feb 2024 09:51:47 -0800	[thread overview]
Message-ID: <87bk84zb2k.fsf@lease-up.com> (raw)
In-Reply-To: <c0084bcb13b107b6407d2e9697aafbb59effbd4e.1708458383.git.marc@mccd.space>

Hi Marc,

On Tue, Feb 20 2024, Marc Coquand wrote:

> I need to change the prefix to be the guix out directory

To override the variable assigned in the Makefile [1] you are right to
offer it as an argument to 'make'. [2] I'm not sure why that's not
working. I would just replace it in situ:

    #:phases (modify-phases %standard-phases
              (add-after 'unpack 'fix-prefix
               (lambda _
                (substitute* "Makefile"
                 (("/usr/local") $output)))))

Kind regards
Felix

[1] https://github.com/pganalyze/libpg_query/blob/1ec38940e5c6f09a4c1d17a46d839a881c4f2db7/Makefile#L311
[2] https://www.gnu.org/software/make/manual/make.html#Overriding


  parent reply	other threads:[~2024-02-25 17:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-20 19:46 Changing the prefix for this libpg_query package Marc Coquand
2024-02-25 14:04 ` Tomas Volf
2024-02-25 17:51 ` Felix Lechner via [this message]
2024-02-25 20:03   ` Marc Coquand

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

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

  git send-email \
    --in-reply-to=87bk84zb2k.fsf@lease-up.com \
    --to=help-guix@gnu.org \
    --cc=felix.lechner@lease-up.com \
    --cc=marc@mccd.space \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.