[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36477] [PATCH 08/31] gnu: python: Fix cross-compilation.
From: |
Ludovic Courtès |
Subject: |
[bug#36477] [PATCH 08/31] gnu: python: Fix cross-compilation. |
Date: |
Mon, 15 Jul 2019 22:29:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
This is the second patch in this series with this subject, which
suggests the subject could be adjusted. :-)
Mathieu Othacehe <address@hidden> skribis:
> * gnu/packages/patches/python-2.7-search-paths.patch: Add cross-compilation
> support.
> * gnu/packages/patches/python-3-search-paths.patch: Ditto.
> * gnu/packages/patches/python-cross-compile.patch: New patch.
> * gnu/local.mk (dist_patch_DATA): Add above new patch.
> * gnu/packages/python.scm (python-2.7)[patches]: Add new patch above,
> [arguments]: Set _PYTHON_HOST_PLATFORM env variable when cross compiling.
[...]
> +++ b/gnu/packages/patches/python-cross-compile.patch
> @@ -0,0 +1,145 @@
> +Patch taken from https://bugs.python.org/issue22724 and augmented with
> +following Nix patch
> +https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/python/cpython/2.7/cross-compile.patch
> +to fix the whole cross-compilation circus.
> +
> +---
> + Makefile.pre.in | 14 +++++++-------
> + configure | 5 ++++-
> + setup.py | 9 ++++++---
> + 3 files changed, 17 insertions(+), 11 deletions(-)
Heh, a non trivial patch!
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -109,7 +109,8 @@
> "python-2-deterministic-build-info.patch"
> "python-2.7-site-prefixes.patch"
> "python-2.7-source-date-epoch.patch"
> - "python-2.7-adjust-tests.patch"))
> + "python-2.7-adjust-tests.patch"
> + "python-cross-compile.patch"))
Note that this triggers a full rebuild, so we’ll probably have to wait
for the next ‘core-updates’ branch, which we’ll hopefully open soonish.
> 'configure 'patch-lib-shells
> (lambda _
> + ,@(if (%current-target-system)
> + '((setenv "_PYTHON_HOST_PLATFORM" ""))
> + '())
It would be great if you could add a comment saying what component
consumes this environment variable.
Otherwise LGTM.
Thanks!
Ludo’.
- [bug#36477] [PATCH 10/31] gnu: openssl: Fix cross-compilation., (continued)
- [bug#36477] [PATCH 07/31] gnu: libgpg-error: Fix cross compilation., Mathieu Othacehe, 2019/07/08
- [bug#36477] [PATCH 04/31] gnu: tk: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
- [bug#36477] [PATCH 11/31] gnu: texinfo: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
- [bug#36477] [PATCH 08/31] gnu: python: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
- [bug#36477] [PATCH 08/31] gnu: python: Fix cross-compilation.,
Ludovic Courtès <=
- [bug#36477] [PATCH 16/31] gnu: groff: Fix cross compilation., Mathieu Othacehe, 2019/07/08
- [bug#36477] [PATCH 23/31] gnu: help2man: Fix cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 19/31] gnu: indent: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 13/31] gnu: libgit2: Fix cross compilation., Mathieu Othacehe, 2019/07/08
[bug#36477] [PATCH 15/31] gnu: libpaper: Fix aarch64 cross-compilation., Mathieu Othacehe, 2019/07/08