[Buildroot] [PATCH v2 1/5] python, python3: add patch to prevent distutils from adjusting the shebang
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Sep 21 17:47:14 UTC 2014
Dear Christophe Vu-Brugier,
On Thu, 18 Sep 2014 12:00:51 +0200, Christophe Vu-Brugier wrote:
> The copy_scripts() method in distutils copies the scripts listed
> in the setup file and adjusts the first line to refer to the
> current Python interpreter. When cross-compiling, this means that
> the adjusted shebang refers to the host Python interpreter.
>
> As a consequence, we add a patch for python and python3 that
> force copy_scripts() to preserve the shebang when
> cross-compilation is detected.
>
> Signed-off-by: Christophe Vu-Brugier <cvubrugier at fastmail.fm>
> ---
> ...017-distutils-scripts-dont-adjust-shebang.patch | 25 ++++++++++++++++++++++
> ...015-distutils-scripts-dont-adjust-shebang.patch | 25 ++++++++++++++++++++++
> 2 files changed, 50 insertions(+)
> create mode 100644 package/python/python-017-distutils-scripts-dont-adjust-shebang.patch
> create mode 100644 package/python3/python3-015-distutils-scripts-dont-adjust-shebang.patch
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list