From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:56518) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0MHk-0003Oe-0b for guix-patches@gnu.org; Wed, 21 Aug 2019 04:48:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0MHi-0008Mh-KI for guix-patches@gnu.org; Wed, 21 Aug 2019 04:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53946) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0MHi-0008MV-BS for guix-patches@gnu.org; Wed, 21 Aug 2019 04:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i0MHi-0006D7-80 for guix-patches@gnu.org; Wed, 21 Aug 2019 04:48:02 -0400 Subject: [bug#36477] [PATCH v2 00/61] Add --target support to guix system References: <87zhlwmpmy.fsf@gmail.com> In-Reply-To: <87zhlwmpmy.fsf@gmail.com> Resent-Message-ID: From: Mathieu Othacehe Date: Wed, 21 Aug 2019 10:47:11 +0200 Message-ID: <87wof6x5v4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Marius Bakke , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 36477@debbugs.gnu.org --=-=-= Content-Type: text/plain Hi, Here's a serie to add target support to guix system command. Most of the patches were reviewed in v1 by Marius and Ludo, but this serie adds some more patches to complete target support. Using the dummy system in attachment, I'm able to generate a cross-built guix system with this command: --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix system disk-image gnu/system/examples/mini.scm --target=aarch64-linux-gnu --8<---------------cut here---------------end--------------->8--- Some of the patches in this serie are from a friend Pierre-Moana who helped me much here. Next step is to find an aarch64 board and boot it with a cross-built guix system! I pushed those patches to wip-cross-system branch of savannah. Thanks, Mathieu --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=mini.scm Content-Transfer-Encoding: base64 OzsgVGhpcyBpcyBhbiBvcGVyYXRpbmcgc3lzdGVtIGNvbmZpZ3VyYXRpb24gdGVtcGxhdGUKOzsg Zm9yIGEgImJhcmUgYm9uZXMiIHNldHVwLCB3aXRoIG5vIFgxMSBkaXNwbGF5IHNlcnZlci4KCih1 c2UtbW9kdWxlcyAoZ251KSkKKHVzZS1zZXJ2aWNlLW1vZHVsZXMgbmV0d29ya2luZyBzc2gpCih1 c2UtcGFja2FnZS1tb2R1bGVzIGxpbnV4IHNjcmVlbikKCihkZWZpbmUgZHVtbXktYm9vdGxvYWRl cgogIChib290bG9hZGVyCiAgIChpbmhlcml0IGdydWItYm9vdGxvYWRlcikKICAgKGluc3RhbGxl ciAjZikpKQoKKG9wZXJhdGluZy1zeXN0ZW0KICAoaG9zdC1uYW1lICJrb21wdXRpbG8iKQogICh0 aW1lem9uZSAiRXVyb3BlL0JlcmxpbiIpCiAgKGxvY2FsZSAiZW5fVVMudXRmOCIpCgogIDs7IEJv b3QgaW4gImxlZ2FjeSIgQklPUyBtb2RlLCBhc3N1bWluZyAvZGV2L3NkWCBpcyB0aGUKICA7OyB0 YXJnZXQgaGFyZCBkaXNrLCBhbmQgIm15LXJvb3QiIGlzIHRoZSBsYWJlbCBvZiB0aGUgdGFyZ2V0 CiAgOzsgcm9vdCBmaWxlIHN5c3RlbS4KICAoYm9vdGxvYWRlciAoYm9vdGxvYWRlci1jb25maWd1 cmF0aW9uCiAgICAgICAgICAgICAgICAoYm9vdGxvYWRlciBkdW1teS1ib290bG9hZGVyKQogICAg ICAgICAgICAgICAgKHRhcmdldCAiL2Rldi9zZFgiKSkpCiAgKGZpbGUtc3lzdGVtcyAoY29ucyAo ZmlsZS1zeXN0ZW0KICAgICAgICAgICAgICAgICAgICAgICAgKGRldmljZSAoZmlsZS1zeXN0ZW0t bGFiZWwgIm15LXJvb3QiKSkKICAgICAgICAgICAgICAgICAgICAgICAgKG1vdW50LXBvaW50ICIv IikKICAgICAgICAgICAgICAgICAgICAgICAgKHR5cGUgImV4dDQiKSkKICAgICAgICAgICAgICAg ICAgICAgICViYXNlLWZpbGUtc3lzdGVtcykpCgogIDs7IFRoaXMgaXMgd2hlcmUgdXNlciBhY2Nv dW50cyBhcmUgc3BlY2lmaWVkLiAgVGhlICJyb290IgogIDs7IGFjY291bnQgaXMgaW1wbGljaXQs IGFuZCBpcyBpbml0aWFsbHkgY3JlYXRlZCB3aXRoIHRoZQogIDs7IGVtcHR5IHBhc3N3b3JkLgog ICh1c2VycyAoY29ucyAodXNlci1hY2NvdW50CiAgICAgICAgICAgICAgICAobmFtZSAiYWxpY2Ui KQogICAgICAgICAgICAgICAgKGNvbW1lbnQgIkJvYidzIHNpc3RlciIpCiAgICAgICAgICAgICAg ICAoZ3JvdXAgInVzZXJzIikKCiAgICAgICAgICAgICAgICA7OyBBZGRpbmcgdGhlIGFjY291bnQg dG8gdGhlICJ3aGVlbCIgZ3JvdXAKICAgICAgICAgICAgICAgIDs7IG1ha2VzIGl0IGEgc3Vkb2Vy LiAgQWRkaW5nIGl0IHRvICJhdWRpbyIKICAgICAgICAgICAgICAgIDs7IGFuZCAidmlkZW8iIGFs bG93cyB0aGUgdXNlciB0byBwbGF5IHNvdW5kCiAgICAgICAgICAgICAgICA7OyBhbmQgYWNjZXNz IHRoZSB3ZWJjYW0uCiAgICAgICAgICAgICAgICAoc3VwcGxlbWVudGFyeS1ncm91cHMgJygid2hl ZWwiCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiYXVkaW8iICJ2aWRl byIpKSkKICAgICAgICAgICAgICAgJWJhc2UtdXNlci1hY2NvdW50cykpCgogIDs7IEdsb2JhbGx5 LWluc3RhbGxlZCBwYWNrYWdlcy4KICAocGFja2FnZXMgJygpKQoKICA7OyBBZGQgc2VydmljZXMg dG8gdGhlIGJhc2VsaW5lOiBhIERIQ1AgY2xpZW50IGFuZAogIDs7IGFuIFNTSCBzZXJ2ZXIuCiAg KHNlcnZpY2VzIChsaXN0CiAgICAgICAgICAgICAoc2VydmljZSB1ZGV2LXNlcnZpY2UtdHlwZQog ICAgICAgICAgICAgICAgICAgICAgKHVkZXYtY29uZmlndXJhdGlvbgogICAgICAgICAgICAgICAg ICAgICAgIChydWxlcyAobGlzdCBsdm0yIGZ1c2UgYWxzYS11dGlscyBjcmRhKSkpKSkpKQo= --=-=-= Content-Type: text/plain Mathieu Othacehe (52): gnu: perl: Fix cross-compilation. gnu: python: Fix cross compilation. gnu: tcl: Fix cross-compilation. gnu: tk: Fix cross-compilation. gnu: libxslt: Fix cross-compilation. gnu: xorg: Fix cross-compilation of multiple packages. gnu: libgpg-error: Fix cross compilation. gnu: python: Further cross-compilation fixes. gnu: http-parser: Fix cross-compilation. gnu: openssl: Fix cross-compilation. gnu: texinfo: Fix cross-compilation. gnu: cmake: Fix cross-compilation. gnu: libgit2: Fix cross compilation. gnu: ath9k-htc-firmware: Fix cross compilation. gnu: libpaper: Fix aarch64 cross-compilation. gnu: groff: Fix cross compilation. gnu: bc: Fix cross-compilation. gnu: indent: Fix aarch64 cross-compilation. gnu: libsamplerate: Fix aarch64 cross-compilation. gnu: mit-krb5: Fix cross-compilation. gnu: cyrus-sasl: Fix cross-compilation. gnu: help2man: Fix cross-compilation. gnu: xmlto: Fix cross-compilation. gnu: libarchive: Fix cross-compilation. gnu: tcsh: Fix cross-compilation. gnu: pkg-config: Fix cross-compilation. gnu: mkfontdir: Fix aarch64 cross-compilation. gnu: alsa-utils: Fix cross-compilation. gnu: icu4c: Fix cross-compilation. gnu: glibc-utf8-locales: Fix cross-compilation. gnu: boost: Fix cross-compilation. gnu: eudev: Fix cross-compilation. gnu: lvm2: Fix cross-compilation. gnu: openldap: Fix cross-compilation. gnu: swig: Fix cross-compilation. gnu: git: Fix cross-compilation. gnu: make-linux-libre: Fix cross-compilation. gnu: procps: Fix cross-compilation. gnu: doxygen: Fix cross-compilation. gnu: guile-sqlite3: Fix cross-compilation. gnu: guile-gcrypt: Fix cross-compilation. gnu: console-setup: Fix cross-compilation. gnu: mdadm: Fix cross-compilation. gnu: grub: Fix cross-compilation. linux-initrd: Use native gzip. gnu: linux-libre: Enable built-in ext4 support. gexp: Use cross extensions when cross-compiling. gexp: Pass target to compiled-modules in lower-gexp. utils: Use target-arm64? and target-arm? helpers. system: vm: Add arm64 support. system: vm: Support cross-compilation. scripts: system: Add --target option. Pierre-Moana Levesque (9): gnu: texinfo-5: Fix cross-compilation. gnu: nghttp2: Fix cross-compilation. gnu: libtool: Fix cross-compilation. gnu: texinfo-4: Fix cross compilation gnu: libnl: Fix cross-compilation. gnu: crda: Fix cross-compilation gnu: guile-xcb: Fix cross-compilation. gnu: guile-wm: Fix cross-compilation. gnu: cmake: Fix cross-compilation. gnu/build/vm.scm | 22 +- gnu/local.mk | 6 + gnu/packages/algebra.scm | 15 +- gnu/packages/autotools.scm | 10 +- .../aux-files/linux-libre/5.2-arm64.conf | 2 +- gnu/packages/backup.scm | 47 +- gnu/packages/base.scm | 4 +- gnu/packages/boost.scm | 28 +- gnu/packages/bootloaders.scm | 6 +- gnu/packages/cmake.scm | 14 +- gnu/packages/code.scm | 18 +- gnu/packages/commencement.scm | 11 +- gnu/packages/cyrus-sasl.scm | 17 +- gnu/packages/documentation.scm | 12 +- gnu/packages/firmware.scm | 5 +- gnu/packages/ghostscript.scm | 19 + gnu/packages/gnupg.scm | 47 +- gnu/packages/groff.scm | 40 +- gnu/packages/guile-wm.scm | 8 +- gnu/packages/guile.scm | 7 +- gnu/packages/icu4c.scm | 35 +- gnu/packages/kerberos.scm | 21 +- gnu/packages/linux.scm | 127 ++++-- gnu/packages/man.scm | 2 + gnu/packages/openldap.scm | 30 +- .../patches/bc-fix-cross-compilation.patch | 171 +++++++ gnu/packages/patches/boost-dumpversion.patch | 24 + .../patches/cyrus-sasl-ac-try-run-fix.patch | 12 + .../guile-gcrypt-fix-cross-compilation.patch | 431 ++++++++++++++++++ .../guile-sqlite3-fix-cross-compilation.patch | 55 +++ .../patches/python-2.7-search-paths.patch | 10 +- .../patches/python-3-search-paths.patch | 11 +- .../patches/python-cross-compile.patch | 145 ++++++ gnu/packages/perl.scm | 7 +- gnu/packages/pkg-config.scm | 13 +- gnu/packages/pulseaudio.scm | 22 +- gnu/packages/python.scm | 54 ++- gnu/packages/shells.scm | 9 + gnu/packages/swig.scm | 1 + gnu/packages/tcl.scm | 28 +- gnu/packages/texinfo.scm | 63 ++- gnu/packages/tls.scm | 62 ++- gnu/packages/version-control.scm | 40 +- gnu/packages/web.scm | 25 +- gnu/packages/xml.scm | 4 + gnu/packages/xorg.scm | 60 ++- gnu/system.scm | 15 +- gnu/system/linux-initrd.scm | 2 +- gnu/system/vm.scm | 42 +- guix/build-system/cmake.scm | 9 +- guix/gexp.scm | 5 +- guix/scripts/system.scm | 15 +- guix/utils.scm | 8 + 53 files changed, 1687 insertions(+), 209 deletions(-) create mode 100644 gnu/packages/patches/bc-fix-cross-compilation.patch create mode 100644 gnu/packages/patches/boost-dumpversion.patch create mode 100644 gnu/packages/patches/cyrus-sasl-ac-try-run-fix.patch create mode 100644 gnu/packages/patches/guile-gcrypt-fix-cross-compilation.patch create mode 100644 gnu/packages/patches/guile-sqlite3-fix-cross-compilation.patch create mode 100644 gnu/packages/patches/python-cross-compile.patch -- 2.17.1 --=-=-=--