From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: bug#29824: Meson 0.44.0 is broken with guix. Date: Tue, 2 Jan 2018 16:52:18 +0100 Message-ID: <1a5a9106-e648-11ef-9880-8157eb1399f0@crazy-compilers.com> References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------08AB6FE2341811CBF0A4877E" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWOsD-0001mF-F7 for bug-guix@gnu.org; Tue, 02 Jan 2018 10:53:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWOsA-0001ta-9e for bug-guix@gnu.org; Tue, 02 Jan 2018 10:53:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:52839) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWOsA-0001tU-5C for bug-guix@gnu.org; Tue, 02 Jan 2018 10:53:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eWOs9-0000R9-QX for bug-guix@gnu.org; Tue, 02 Jan 2018 10:53:01 -0500 In-Reply-To: Sender: "Debbugs-submit" Resent-Message-ID: Content-Language: en-US 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: 29824@debbugs.gnu.org Cc: Peter Mikkelsen This is a multi-part message in MIME format. --------------08AB6FE2341811CBF0A4877E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable We need to have a look at the whole `detect_meson_py_location()`, not only on lines 47 to 51. detect_meson_py_location() assumes the executable to be called "meson" or "meson.py", but in guix it currently is called ".meson-real" (see teh first entry in the trace-back). The solution would be to get rid of the wrapper-scripts, see A work-around would be to substitute in file mesonbuild/mesonlib.py meson_command =3D python_command + [detect_meson_py_location()] by meson_command =3D python_command + ["$OUT/bin/meson"] (you got the idea, I assume). Of course we should verify detect_meson_py_location() is not used elsewhere and consider renaming that function to "disable" it. --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | --------------08AB6FE2341811CBF0A4877E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

We need to have a look at the whole `detect_meson_py_location()`, not only on lines 47 to 51.

detect_meson_py_location() assumes the executable to be called "meson" or "meson.py", but in guix it currently is called ".meson-real" (see teh first entry in the trace-back).

The solution would be to get rid of the wrapper-scripts, see <https://lists.gnu.org/archive/html/guix-devel/2017-11/msg00041.html>

A work-around would be to substitute in file mesonbuild/mesonlib.py

meson_command = python_command + [detect_meson_py_location()]

by

meson_command = python_command + ["$OUT/bin/meson"]

(you got the idea, I assume). Of course we should verify detect_meson_py_location() is not used elsewhere and consider renaming that function to "disable" it.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |
--------------08AB6FE2341811CBF0A4877E--