From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id zjrbAZSegGJPcQEAbAwnHQ (envelope-from ) for ; Sun, 15 May 2022 08:32:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ONVmO5OegGIfEAAAG6o9tA (envelope-from ) for ; Sun, 15 May 2022 08:32:51 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 92D122C867 for ; Sun, 15 May 2022 08:32:49 +0200 (CEST) Received: from localhost ([::1]:36040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nq7o8-0005eR-Jp for larch@yhetil.org; Sun, 15 May 2022 02:32:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nq7nO-0005bT-Br for guix-patches@gnu.org; Sun, 15 May 2022 02:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54517) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nq7nO-0005jP-2n for guix-patches@gnu.org; Sun, 15 May 2022 02:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nq7nN-0006U1-UV for guix-patches@gnu.org; Sun, 15 May 2022 02:32:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55227] [PATCH core-updates 0/8] The Full Source Bootstrap Resent-From: Jan Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 15 May 2022 06:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55227 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 55227@debbugs.gnu.org Received: via spool by 55227-submit@debbugs.gnu.org id=B55227.165259629524888 (code B ref 55227); Sun, 15 May 2022 06:32:01 +0000 Received: (at 55227) by debbugs.gnu.org; 15 May 2022 06:31:35 +0000 Received: from localhost ([127.0.0.1]:48414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nq7mq-0006TF-NM for submit@debbugs.gnu.org; Sun, 15 May 2022 02:31:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nq7mp-0006T3-1m for 55227@debbugs.gnu.org; Sun, 15 May 2022 02:31:27 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nq7mi-0005c1-QD; Sun, 15 May 2022 02:31:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=IjO/tKAPt2P6SwZqgZTlRSDL7CLXO/qHxLN2I5FTeB0=; b=NVJMBezbFEw121tMuyNN H+cSB/Qsaq+u/PnzRwGp3mBwyYYbLcYajiNzxOPU/xHvf55eIyodeRsRckqgDi6ChVmq/8Z6+plga 6Ko+GbsJl8I0cGFoIayqLWVBynuwxcazSsVuj02amSZgnh5zHv1hkzGPMdFZzB95tfmsbasbS38Zh u9tNj9OXklOc+wrNnhGS1EaR3ZBGtFE/1xdLtkJNiJGQ6rzxIpiWjKLHfUk9HA499EXbIo1MZLJBx l4iCZSAfZW0jjlLrtdKcDaNsDbEWC5vehHRfm9XcZpFP+hWHwd7J6PeWqjIpG73KHz04emXn0cGiO M2fMN96FHiO1gQ==; Received: from 2a02-a462-da03-1-cf41-23bd-7156-6a6c.fixed6.kpn.net ([2a02:a462:da03:1:cf41:23bd:7156:6a6c]:52784 helo=drakenpad.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nq7mh-00086z-19; Sun, 15 May 2022 02:31:20 -0400 From: Jan Nieuwenhuizen Organization: AvatarAcademy.nl References: <20220513153631.13052-1-janneke@gnu.org> <20220513153631.13052-2-janneke@gnu.org> <87a6bkgq9u.fsf_-_@gnu.org> X-Url: http://AvatarAcademy.nl Date: Sun, 15 May 2022 08:31:15 +0200 In-Reply-To: <87a6bkgq9u.fsf_-_@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 14 May 2022 16:09:01 +0200") Message-ID: <87tu9rqpcc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652596369; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=IjO/tKAPt2P6SwZqgZTlRSDL7CLXO/qHxLN2I5FTeB0=; b=jIDqa55EtPhVkyDhAkwL6N6cKnanfWgvDIIpKD0mw0fXX0Wwf/h5jN1j2kHxQRxK0rkF6M fmhTSFwYV2rsInkEi/Gp18b6dFGw3VtqUxgBOIG2IqEURrW3z+9tplG7I7KO58aGCMrI6Q RUn58aBmgDwLLkBIQl+nXXKive8NQB3jtumqakIW/qHwUIK0DxDSLESwcbNtdF8eB+ELGJ 53hl0FMLPbJnovO2k+uTsBb1IbLjflKKNmmbmVuLsmPpz/6XOC9M7kcHwOSyFcNvGEp8Wt 3B2RcO08+6J3hHl3xFJ4TAmCbnyALNJM6bH1IOMZFpWlZs2GvRUxlUkYVPyCSg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652596369; a=rsa-sha256; cv=none; b=NGwcySB8VIIcJgDNH1DN3ukPp6lgKQ95Auvktt9GqrVbFdhMXs3E3eu7dfEsH5P7Hdldq2 VA90JEiexFK8YeFzbbJXUSLkLnhAkO4ya8B1bL6+MB6hGRS3y9ivk5KJtRyiopPku/QCo0 j5CxauKbv2PjSQPIqCY3ScC3gwzqnMCOqKQ1IFmLbfrGIz3i0r1PVkeId82OIE+wmU+Qfc jCKts1O+FdHgmTPPvxcQ2Dd6LC/Fjkudq94Zr5vlXTBLZADpvQsqTwOeE1PAQyVMo2OYMr hHq8pzv4Nf2LNXc2OPIgCWcJdCDyB55d9jgyX/euDf4Gle+WO3Kg4f+qUfUr8g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=NVJMBezb; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=NVJMBezb; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 92D122C867 X-Spam-Score: -5.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: O1vWm19m+PSB --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: Hey > "Jan (janneke) Nieuwenhuizen" skribis: > >> Stage0-posix is a skeleton for bootstrapping all of Stage0 for POSIX sys= tems. >> On x86-linux, from the 357-byte hex0-seed binary from the bootstrap-seed= s, it >> builds hex0, kaem, hex1, catm, hex2, M0, cc_x86, M1, M2, >> get_machine, (mescc-tools), and M2-Planet. >> >> * gnu/packages/commencement.scm (stage0-posix): New variable. > > [...] > > We could get rid of the remaining (assoc-ref =E2=80=A6) expressions, alon= g the > lines of: > > https://issues.guix.gnu.org/55227#12-lineno40 Ah yes. I have pushed the patches below to wip-full-source-bootstrap, WYDT? Is there a way yet to change things like these: (native-inputs `(("bootstrap-seeds" ,bootstrap-seeds) ,@(%boot-gash-inputs))) I didn't really find an example or way to do this. Janneke --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-commencement-bootstrap-seeds-Use-new-package-sty.patch >From 02874b2a43a6255c83d67d40c88742b2a4234c27 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sat, 14 May 2022 21:27:55 +0200 Subject: [PATCH 1/3] gnu: commencement: bootstrap-seeds: Use new package style. * gnu/packages/commencement.scm (bootstrap-seeds)[arguments]: Also use gexps for inputs and output. --- gnu/packages/commencement.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 0390c43023..ffaa5f03de 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -289,9 +289,9 @@ (define bootstrap-seeds #:builder #~(begin (use-modules (guix build utils)) - (let ((source (assoc-ref %build-inputs "source")) - (tar (assoc-ref %build-inputs "bootar")) - (out (assoc-ref %outputs "out"))) + (let ((source #$(package-source this-package)) + (tar #$(this-package-native-input "bootar")) + (out #$output)) (setenv "PATH" (string-append tar "/bin:")) (invoke "tar" "xvf" source) (mkdir-p out) -- 2.35.1 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-commencement-stage0-posix-Use-new-package-style.patch >From f99f4a2257ceaf3b555e284d241d897da43b2868 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sat, 14 May 2022 21:24:52 +0200 Subject: [PATCH 2/3] gnu: commencement: stage0-posix: Use new package style. * gnu/packages/commencement.scm (stage0-posix)[arguments]: Also use gexps for inputs and output. --- gnu/packages/commencement.scm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index ffaa5f03de..0089c2607c 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -365,13 +365,14 @@ (define stage0-posix #:builder #~(begin (use-modules (guix build utils)) - (let* ((bootstrap-seeds (assoc-ref %build-inputs "bootstrap-seeds")) - (source (assoc-ref %build-inputs "source")) - (tar (assoc-ref %build-inputs "bootar")) - (bash (assoc-ref %build-inputs "bash")) - (coreutils (assoc-ref %build-inputs "coreutils")) - (guile (assoc-ref %build-inputs "guile")) - (out (assoc-ref %outputs "out")) + (let* ((bootstrap-seeds #$(this-package-native-input + "bootstrap-seeds")) + (source #$(package-source this-package)) + (tar #$(this-package-native-input "bootar")) + (bash #$(this-package-native-input "bash")) + (coreutils #$(this-package-native-input "coreutils")) + (guile #$(this-package-input "guile")) + (out #$output) (bindir (string-append out "/bin")) (target (or #$(%current-target-system) #$(%current-system))) -- 2.35.1 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0003-gnu-commencement-mes-boot-Use-new-package-style.patch >From 89a8bd925774911f225713de6bf2e4c94319b640 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sat, 14 May 2022 21:39:06 +0200 Subject: [PATCH 3/3] gnu: commencement: mes-boot: Use new package style. * gnu/packages/commencement.scm (mes-boot)[arguments]: Use gexp for modify phases. --- gnu/packages/commencement.scm | 98 +++++++++++++++++------------------ 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 0089c2607c..268dfe9795 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -445,55 +445,55 @@ (define mes-boot (snippet #f)))) ,@(%boot-gash-inputs))) (arguments - `(#:implicit-inputs? #f - #:tests? #f - #:guile ,%bootstrap-guile - #:strip-binaries? #f ;no strip yet - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'unpack-seeds - (lambda _ - (let ((nyacc-source (assoc-ref %build-inputs "nyacc-source"))) - (with-directory-excursion ".." - (invoke "tar" "-xvf" nyacc-source))))) - (replace 'configure - (lambda* (#:key inputs outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out")) - (gash (assoc-ref inputs "bash")) - (mes (assoc-ref inputs "mes")) - (dir (with-directory-excursion ".." (getcwd)))) - (setenv "GUILE_LOAD_PATH" (string-append - dir "/nyacc-1.00.2/module")) - (invoke "gash" "configure.sh" - (string-append "--prefix=" out) - "--host=i686-linux-gnu")))) - (replace 'build - (lambda _ - (invoke "gash" "bootstrap.sh"))) - (delete 'check) - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (substitute* "install.sh" ; show some progress - ((" -xf") " -xvf") - (("^( *)((cp|mkdir|tar) [^']*[^\\])\n" all space cmd) - (string-append space "echo '" cmd "'\n" - space cmd "\n"))) - (invoke "gash" "install.sh") - ;; Keep ASCII output, for friendlier comparison and bisection - (let* ((out (assoc-ref outputs "out")) - (cache (string-append out "/lib/cache"))) - (define (objects-in-dir dir) - (find-files dir - (lambda (name stat) - (and (equal? (dirname name) dir) - (or (string-suffix? ".M1" name) - (string-suffix? ".hex2" name) - (string-suffix? ".o" name) - (string-suffix? ".s" name)))))) - (for-each (lambda (x) (install-file x cache)) - (append (objects-in-dir "m2") - (objects-in-dir ".") - (objects-in-dir "mescc-lib"))))))))) + (list + #:implicit-inputs? #f + #:tests? #f + #:guile %bootstrap-guile + #:strip-binaries? #f ;no strip yet + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'unpack-seeds + (lambda _ + (let ((nyacc-source #$(this-package-native-input "nyacc-source"))) + (with-directory-excursion ".." + (invoke "tar" "-xvf" nyacc-source))))) + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out #$output) + (gash #$(this-package-native-input "bash")) + (dir (with-directory-excursion ".." (getcwd)))) + (setenv "GUILE_LOAD_PATH" (string-append + dir "/nyacc-1.00.2/module")) + (invoke "gash" "configure.sh" + (string-append "--prefix=" out) + "--host=i686-linux-gnu")))) + (replace 'build + (lambda _ + (invoke "gash" "bootstrap.sh"))) + (delete 'check) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "install.sh" ; show some progress + ((" -xf") " -xvf") + (("^( *)((cp|mkdir|tar) [^']*[^\\])\n" all space cmd) + (string-append space "echo '" cmd "'\n" + space cmd "\n"))) + (invoke "gash" "install.sh") + ;; Keep ASCII output, for friendlier comparison and bisection + (let* ((out #$output) + (cache (string-append out "/lib/cache"))) + (define (objects-in-dir dir) + (find-files dir + (lambda (name stat) + (and (equal? (dirname name) dir) + (or (string-suffix? ".M1" name) + (string-suffix? ".hex2" name) + (string-suffix? ".o" name) + (string-suffix? ".s" name)))))) + (for-each (lambda (x) (install-file x cache)) + (append (objects-in-dir "m2") + (objects-in-dir ".") + (objects-in-dir "mescc-lib"))))))))) (native-search-paths (list (search-path-specification (variable "C_INCLUDE_PATH") -- 2.35.1 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond https://lilypond.org Freelance IT https://JoyOfSource.com | Avatar=C2=AE https://AvatarAcademy.c= om --=-=-=--