From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#29824: Meson 0.44.0 is broken with guix. Date: Sun, 14 Jan 2018 23:02:16 +0100 Message-ID: <87a7xgjdzr.fsf@gnu.org> References: <1a5a9106-e648-11ef-9880-8157eb1399f0@crazy-compilers.com> <87bmi3td28.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaqMr-0005iW-VW for bug-guix@gnu.org; Sun, 14 Jan 2018 17:03:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaqMo-00031K-1Y for bug-guix@gnu.org; Sun, 14 Jan 2018 17:03:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48505) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eaqMn-000318-Tv for bug-guix@gnu.org; Sun, 14 Jan 2018 17:03:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eaqMn-0000Zm-Kw for bug-guix@gnu.org; Sun, 14 Jan 2018 17:03:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Fis Trivial's message of "Sun, 14 Jan 2018 20:14:56 +0000") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Fis Trivial Cc: Hartmut Goebel , "29824@debbugs.gnu.org" <29824@debbugs.gnu.org>, Peter Mikkelsen Hello, Fis Trivial skribis: > Sorry about that, this section is wrong. Here is the correct one. Be care= ful with the "..." > in the environ assignment. I omitted part of the path due to it's too lon= g. > > #+BEGIN_SRC python > #!/usr/bin/env python3 > import os > os.environ['PYTHONPATH'] =3D "/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/.me= son-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 correspondin= g code > by loading it(not spawning a new process). Hence the argv will be preserv= ed. Sure, though Hartmut=E2=80=99s 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=E2=80=99t be merged until the next =E2=80=98co= re-updates=E2=80=99 cycle), but if there=E2=80=99s a simpler solution, we should probably go for that. Thanks, Ludo=E2=80=99.