bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#29824: Meson 0.44.0 is broken with guix.


From: Ludovic Courtès
Subject: bug#29824: Meson 0.44.0 is broken with guix.
Date: Sun, 14 Jan 2018 23:02:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,

Fis Trivial <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]