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')() )
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 endef HOST_MESON_POST_INSTALL_HOOKS += HOST_MESON_FIXUP_SHEBANG in package/meson/meson.mk.
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 ?
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.
*** Bug 12461 has been marked as a duplicate of this bug. ***
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... ;-)
Fixed in git: https://git.buildroot.org/buildroot/commit/?id=62df914ced5adab3869c2ce6f9a41203802e6358