New: meson issue
https://bugs.busybox.net/show_bug.cgi?id=12331
Bug ID: 12331
Summary: meson issue
Product: buildroot
Version: 2019.02.7
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: jpcartal at free.fr
CC: buildroot at uclibc.org
Target Milestone: ---
Meson script uses full path to python3 when executed which gives errors when the path is too long :
$ cat host/bin/meson #!/home/Dev/Ssd/buildroot/buildroot-2019.02.7/host/bin/python3 # EASY-INSTALL-ENTRY-SCRIPT: 'meson==0.49.0','console_scripts','meson' __requires__ = 'meson==0.49.0' import re import sys from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('meson==0.49.0', 'console_scripts', 'meson')()
)Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12331] meson issue
https://bugs.busybox.net/show_bug.cgi?id=12331
--- Comment #1 from Thomas Petazzoni <[email protected]> --- Yes, I also encountered this error. What I did so far to work around it is:
define HOST_MESON_FIXUP_SHEBANG
$(SED) 's%^#!.*%#!/usr/bin/env python3%' $(HOST_DIR)/bin/meson
endefHOST_MESON_POST_INSTALL_HOOKS += HOST_MESON_FIXUP_SHEBANG
in package/meson/meson.mk.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12331] meson issue
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12331
--- Comment #2 from Thomas Petazzoni <[email protected]> --- Looking back at this, your path "/home/Dev/Ssd/buildroot/buildroot-2019.02.7/host/bin/python3" is not that long, it's only 61 bytes long. This shouldn't cause a problem, the maximum shebang line is 128 bytes.
So I'm not sure why you think the length of the path is a problem. Could you give more details about the error you're seeing ?
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12331] meson issue
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12331
--- Comment #3 from Jean-pierre Cartal <[email protected]> ---
My bad, I removed parts of the path, so it seems shorter that the maximum allowed, but the real problem is indeed the length and your patch solved it.
Regards.
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12331] meson issue
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12331
Yann E. MORIN <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |m.weisser.m at gmail.com
--- Comment #4 from Yann E. MORIN <[email protected]> --- *** Bug 12461 has been marked as a duplicate of this bug. ***
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12331] meson issue
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12331
Yann E. MORIN <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yann.morin.1998 at free.fr
--- Comment #5 from Yann E. MORIN <[email protected]> --- I've sent a tentative patch to the list:
https://patchwork.ozlabs.org/patch/1222257/
It's not unlike Thomas' proposal, but with my little touch... ;-)
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 12331] meson issue
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=12331
Peter Korsgaard <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #6 from Peter Korsgaard <[email protected]> --- Fixed in git:
https://git.buildroot.org/buildroot/commit/?id=62df914ced5adab3869c2ce6f9a41203802e6358
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.