all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Fis Trivial <ybbs.daans@hotmail.com>
Cc: Hartmut Goebel <h.goebel@crazy-compilers.com>,
	"29824@debbugs.gnu.org" <29824@debbugs.gnu.org>,
	Peter Mikkelsen <petermikkelsen10@gmail.com>
Subject: bug#29824: Meson 0.44.0 is broken with guix.
Date: Sun, 14 Jan 2018 23:02:16 +0100	[thread overview]
Message-ID: <87a7xgjdzr.fsf@gnu.org> (raw)
In-Reply-To: <MWHPR16MB0063D026A9C64FF5E5F56C5292150@MWHPR16MB0063.namprd16.prod.outlook.com> (Fis Trivial's message of "Sun, 14 Jan 2018 20:14:56 +0000")

Hello,

Fis Trivial <ybbs.daans@hotmail.com> skribis:

> Sorry about that, this section is wrong. Here is the correct one. Be careful with the "..."
> in the environ assignment. I omitted part of the path due to it's too long.
>
> #+BEGIN_SRC python
> #!/usr/bin/env python3
> import os
> os.environ['PYTHONPATH'] = "/gnu/store/.../site-packages${PYTHONPATH:+:}$PYTHONPATH"
> # exec(open("/gnu/store/n53zdnl4l3gm9sg15bfwxp0wdrwrvhg4-meson-0.44.0/bin/.meson-real").read())
> exec(compile(
>     open(
>         "/gnu/store/n53zdnl4l3gm9sg15bfwxp0wdrwrvhg4-meson-0.44.0/bin/.meson-real"
>     ).read(),
>     "/gnu/store/n53zdnl4l3gm9sg15bfwxp0wdrwrvhg4-meson-0.44.0/bin/.meson-real",
>     'exec'
> ))
>
> #+END_SRC
>
> And the wrapper should be named as "meson", in this case.
> The above code set the environment variables and execute the corresponding code
> by loading it(not spawning a new process). Hence the argv will be preserved.

Sure, though Hartmut’s solution looked even simpler.

BTW, Ricardo has posted a patch on this topic here:

  https://bugs.gnu.org/29951

We could use it here (it won’t be merged until the next ‘core-updates’
cycle), but if there’s a simpler solution, we should probably go for
that.

Thanks,
Ludo’.

  reply	other threads:[~2018-01-14 22:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-23 19:18 bug#29824: Meson 0.44.0 is broken with guix Fis Trivial
2018-01-02 15:52 ` Hartmut Goebel
2018-01-09 12:46   ` Ludovic Courtès
2018-01-09 21:10     ` Hartmut Goebel
     [not found]       ` <CADh9keUUZNYBd7-doGcL1O9+bMdxtVK=PzVFL-9_MSUPWF7_=A@mail.gmail.com>
     [not found]         ` <CADh9keWM+hyLV=ffDx7XDWQFLS9O4tEtBEJ3aQzHPQBX-yRfjw@mail.gmail.com>
2018-01-09 23:34           ` Peter Mikkelsen
2018-01-14 20:06     ` Fis Trivial
2018-01-14 20:14       ` Fis Trivial
2018-01-14 22:02         ` Ludovic Courtès [this message]
2020-09-28 13:00 ` zimoun
2020-11-30 16:14 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix

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=87a7xgjdzr.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=29824@debbugs.gnu.org \
    --cc=h.goebel@crazy-compilers.com \
    --cc=petermikkelsen10@gmail.com \
    --cc=ybbs.daans@hotmail.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 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.