From patchwork Wed Nov 17 14:00:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 34573 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5278D27BBE3; Wed, 17 Nov 2021 14:01:33 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A755E27BBE1 for ; Wed, 17 Nov 2021 14:01:32 +0000 (GMT) Received: from localhost ([::1]:47540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnLVC-0007IK-PY for patchwork@mira.cbaines.net; Wed, 17 Nov 2021 09:01:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnLUk-0007Fs-LY for guix-patches@gnu.org; Wed, 17 Nov 2021 09:01:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48922) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnLUk-0001UY-BG for guix-patches@gnu.org; Wed, 17 Nov 2021 09:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnLUk-0001pd-9g for guix-patches@gnu.org; Wed, 17 Nov 2021 09:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#48314] Install guix system on Raspberry Pi References: <19E4796A-B0DB-444F-8773-2E8D3EF6132D@vodafonemail.de> In-Reply-To: <19E4796A-B0DB-444F-8773-2E8D3EF6132D@vodafonemail.de> Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 17 Nov 2021 14:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48314 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "48314@debbugs.gnu.org" <48314@debbugs.gnu.org> Received: via spool by 48314-submit@debbugs.gnu.org id=B48314.16371576396978 (code B ref 48314); Wed, 17 Nov 2021 14:01:02 +0000 Received: (at 48314) by debbugs.gnu.org; 17 Nov 2021 14:00:39 +0000 Received: from localhost ([127.0.0.1]:60465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnLUM-0001oP-SP for submit@debbugs.gnu.org; Wed, 17 Nov 2021 09:00:39 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:45110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnLUK-0001o8-Bf for 48314@debbugs.gnu.org; Wed, 17 Nov 2021 09:00:37 -0500 Date: Wed, 17 Nov 2021 14:00:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1637157624; bh=+1DVFYonn5b0c1cC896cpWoPHJoO8G0wGwk4iXUr1Jw=; h=Date:To:From:Reply-To:Subject:From; b=n9SnDMedjF4TNnC43xPhJqX/MOeg4enkasig+0zNYHbtEr9rJJHdnqlJRBrhgRBHs oMHU+LP+ZXsCHLj1LHpN39v2lHyomPW0pco8lznKepCdBAl0KssgHKoKodaB5PdSCW Bn9o5JyehqYjzjHk+OYPP0f9vwp3eLGwgoLbqE2g= Message-ID: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches Hi Stefan, I've attempted to cross compile the system on x86_64 machine and I must report here are still several issue. - Firstly it has to be attempted off the branch core-updates as there is the latest packaged meson build system which allows cross compilation. guix system: error: gnu/packages/glib.scm:172:2: glib@2.62.6: build system `meson' does not support cross builds Note that a minor issue happens when applying your patches on top of core-updates is patch-04 failing due to collision in the header with your email address. - Secondly there are some packages that need to be patched. See the attached file. - Thirdly there is some issue in the optional test cases in the package lsof which fail if executed on btrfs (unfortunately that's my case so I disabled them, just the optional part). If I apply all the changes I can build the system. - However, that brings me to the last issue. There is a package efivar which does not build. The issue there is described here [1]. Then again I haven't actually ran the system on Raspberry Pi itself. I'll attempt to setup Debian and build it natively as you suggested. Kind regards Petr PS: Sorry Stefan for the late answer [1]: https://github.com/rhboot/efivar/issues/186 From 48ccde0b13a471040eccd87e409ae0cfe29fbc79 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Tue, 16 Nov 2021 14:16:16 +0100 Subject: [PATCH] Fixes to cross compile system for aarch64. diff --git a/gnu/packages/certs.scm b/gnu/packages/certs.scm index 39c3ebd128..311d5d4974 100644 --- a/gnu/packages/certs.scm +++ b/gnu/packages/certs.scm @@ -158,7 +158,7 @@ that was originally contributed to Debian.") '(set-paths install-locale unpack)) (add-after 'unpack 'install (lambda _ - (let ((certsdir (string-append %output "/etc/ssl/certs/"))) + (let ((certsdir (string-append (assoc-ref %outputs "out") "/etc/ssl/certs/"))) (with-directory-excursion "nss/lib/ckfw/builtins/" (unless (file-exists? "blacklist.txt") (call-with-output-file "blacklist.txt" (const #t))) @@ -206,7 +206,7 @@ taken from the NSS package and thus ultimately from the Mozilla project.") ;; Create hash symlinks suitable for OpenSSL ('SSL_CERT_DIR' and ;; similar.) - (chdir (string-append %output "/etc/ssl/certs")) + (chdir (string-append (assoc-ref %outputs "out") "/etc/ssl/certs")) (invoke (string-append perl "/bin/perl") (string-append openssl "/bin/c_rehash") "."))))) diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index 7d6f3811dd..fe30f0c08c 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -447,7 +447,7 @@ to recover data more efficiently by only reading the necessary blocks.") (build-system gnu-build-system) (arguments `(#:configure-flags (list "--enable-compat-symlinks") - #:make-flags (list (string-append "PREFIX=" %output) + #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "CC=gcc"))) (native-inputs `(("autoconf" ,autoconf) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index f8db781446..5910647e7a 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -2851,7 +2851,7 @@ external rate conversion.") (arguments '(#:tests? #f ; no test suite #:configure-flags ; add $libdir to the RUNPATH of executables - (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))) + (list (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")))) (home-page "https://www.netfilter.org/projects/iptables/index.html") (synopsis "Programs to configure Linux IP packet filtering rules") (description @@ -4323,9 +4323,9 @@ dm-thin, dm-cache and dm-era device-mapper targets.") (build-system gnu-build-system) (arguments `(#:make-flags - (list (string-append "PREFIX=" %output) - (string-append "INSTALL_MAN=" %output "/share/man") - (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib") + (list (string-append "PREFIX=" (assoc-ref %outputs "out")) + (string-append "INSTALL_MAN=" (assoc-ref %outputs "out") "/share/man") + (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib") "BUILD_STATIC=") #:phases (modify-phases %standard-phases @@ -5343,7 +5343,7 @@ Linux Device Mapper multipathing driver: (arguments `(#:make-flags (let ((target ,(%current-target-system))) - (list (string-append "prefix=" %output) + (list (string-append "prefix=" (assoc-ref %outputs "out")) (string-append "CC=" (if target (string-append (assoc-ref %build-inputs "cross-gcc") @@ -6791,10 +6791,12 @@ under OpenGL graphics workloads.") (arguments `(;; Tests require a UEFI system and is not detected in the chroot. #:tests? #f - #:make-flags (list (string-append "prefix=" %output) - (string-append "libdir=" %output "/lib") + #:make-flags (list (string-append "prefix=" (assoc-ref %outputs + "out")) + (string-append "libdir=" (assoc-ref %outputs "out") "/lib") (string-append "CC_FOR_BUILD=" ,(cc-for-target)) - (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")) + (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref + %outputs "out") "/lib")) #:phases (modify-phases %standard-phases (delete 'configure)))) @@ -6825,8 +6827,8 @@ interface to the variable facility of UEFI boot firmware.") (build-system gnu-build-system) (arguments `(#:tests? #f ;no tests - #:make-flags (list (string-append "prefix=" %output) - (string-append "libdir=" %output "/lib") + #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out")) + (string-append "libdir=" (assoc-ref %outputs "out") "/lib") ;; EFIDIR denotes a subdirectory relative to the ;; EFI System Partition where the loader will be ;; installed (known as OS_VENDOR in the code). diff --git a/gnu/packages/lsof.scm b/gnu/packages/lsof.scm index b317902ee7..519f7f15b2 100644 --- a/gnu/packages/lsof.scm +++ b/gnu/packages/lsof.scm @@ -90,7 +90,10 @@ (invoke "./Add2TestDB") ;; The ‘standard’ tests suggest running ‘optional’ ones as well. - (invoke "make" "standard" "optional"))) + ;; optional test fail on BTRFS + ;; https://www.spinics.net/lists/linux-btrfs/msg09044.html + ;; https://githubmemory.com/repo/lsof-org/lsof/issues/152?page=2 + (invoke "make" "standard" )));"optional"))) #t)) (replace 'install (lambda* (#:key outputs #:allow-other-keys) diff --git a/gnu/packages/man.scm b/gnu/packages/man.scm index b4431e5b08..ac4920d836 100644 --- a/gnu/packages/man.scm +++ b/gnu/packages/man.scm @@ -183,9 +183,9 @@ a flexible and convenient way.") (string-append "--with-col=" util "/bin/col") ;; The default systemd directories ignore --prefix. (string-append "--with-systemdsystemunitdir=" - %output "/lib/systemd/system") + (assoc-ref %outputs "out") "/lib/systemd/system") (string-append "--with-systemdtmpfilesdir=" - %output "/lib/tmpfiles.d")) + (assoc-ref %outputs "out") "/lib/tmpfiles.d")) (map (lambda (prog) (string-append "--with-" prog "=" groff-minimal "/bin/" prog)) diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm index 55b9a73b22..0d8c409b6e 100644 --- a/gnu/packages/ntp.scm +++ b/gnu/packages/ntp.scm @@ -159,7 +159,8 @@ time-stamping or reference clock, sub-microsecond accuracy is possible.") `(("libcap" ,libcap)) '()))) (arguments - `(#:phases + `(#:configure-flags (list "--with-yielding-select=yes") + #:phases (modify-phases %standard-phases (add-after 'unpack 'disable-network-test (lambda _ -- 2.33.1