From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +BdkHQNCTWfx/AAA62LTzQ:P1 (envelope-from ) for ; Mon, 02 Dec 2024 05:13:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id +BdkHQNCTWfx/AAA62LTzQ (envelope-from ) for ; Mon, 02 Dec 2024 06:13:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=HAwBW65J; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=mail header.b=TEFtsgqL; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=ultrarare.space (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733116419; a=rsa-sha256; cv=none; b=VcgtclMtZ5Vo/Hr5HDU2eHql9XtttvQ8QrixrrA1dTpL9QYXhCDSKYyj76R4namaacfoxa U9MMn775w5UKu9UVkPXWnEWmSrWnC4dvbCu2/yIbRb/syKe5WzrwxE+OKE2h5M5unScg4D nyvp4MRrHJYJdh2BnZ3VI5OwaQSJOVnAQOb/4mrUiRIc6wnVWsmzz3VDMpGkp+v0rYWfit UihAGJBHfvLWMcvIrw4zbtq7XcZsODVdKZvn0UookSkz+vPO3iiZhurwRu3o8W56ZvzjEz zZShpBVBGwF7NsCxC5Czq9d18nGmJvOvHnLN/YgXCn7uH7BcbFAp7QnqMbQgVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=HAwBW65J; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=mail header.b=TEFtsgqL; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=ultrarare.space (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733116419; 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=jmMV2LV+3l/e/IL2K5Lk/OAXJg/zxYi4sR1fa7HoWkE=; b=ixx7yyZ/uks2Bgl5p58gMOEpX0WHtTxYVwxZbRv4NYER+SQ6/jQovxxtds4vDaMLJ/Goey wT3igAl1zp40g28ef6Zp66xeAQ+AaFv0X1N5ZLahGbOFmGZKPc/2lkGpS/mIMKuPbthsKs Li8eEkYD58JrPnUMzTa1pE3Q+pQSQTVnnylKkMJEtqNZ4Qp0CYaLJw1pAT6Sl7VD7NRff6 JUIT64qimResLjKNSFTYkAdglTowUvBF2dR5DvAaiHJzSpotxwTeDR8ltbLRXGjSGCsrpz OARayzxLo7jZaiO8JLUGAug6UjS7r8NpISFLAnATmVtMsuZVeG4TphoZb6EvhA== 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 3755085F35 for ; Mon, 02 Dec 2024 06:13:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHykA-00070E-GJ; Mon, 02 Dec 2024 00:13:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHyk3-000703-VW for bug-guix@gnu.org; Mon, 02 Dec 2024 00:13:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tHyk2-0001zR-VX for bug-guix@gnu.org; Mon, 02 Dec 2024 00:13:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=jmMV2LV+3l/e/IL2K5Lk/OAXJg/zxYi4sR1fa7HoWkE=; b=HAwBW65Jox7Wid+AhP5AtL2/i14NyMioPNUawBCR+YyCn4uXBF8xPytlg9AbiKuISc/GoXBsxZBH0P+ZkoS5M9wRRiy/jcv3Z0lmCAPGnyG5knpS9PnQMwnElIM/fcmmWKvnxTLRaOlaZawokLY5gf4oTDHrAGaMHQPuHIxIFqz4uY/mW9ebuNW4XcJDJSbKx0K7xbm23Y/xvEL7XZiMtg08ApBkMn1FUoq3d6SQUnymO8UhUIgtIyZPPE42LTGgRzezCb4YXKJmYFQEnCl5EIVjL+/CQYCWIWnoDPIdcsryYJgVJeU4nUncuBuD33gv9mhUnCXIeHvMUHIXfZj6cg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHyk2-00083A-0I; Mon, 02 Dec 2024 00:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74217: Bootstrapping Zig with no Binary Blobs Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org, Ekaitz Zarraga Resent-Date: Mon, 02 Dec 2024 05:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74217 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74217@debbugs.gnu.org Cc: Motiejus =?UTF-8?Q?Jak=C5=A1tys?= , =?UTF-8?Q?No=C3=A9?= Lopez , dan , Efraim Flashner , Ekaitz Zarraga Received: via spool by 74217-submit@debbugs.gnu.org id=B74217.173311632830848 (code B ref 74217); Mon, 02 Dec 2024 05:13:01 +0000 Received: (at 74217) by debbugs.gnu.org; 2 Dec 2024 05:12:08 +0000 Received: from localhost ([127.0.0.1]:53884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHyj9-00081T-Uk for submit@debbugs.gnu.org; Mon, 02 Dec 2024 00:12:08 -0500 Received: from mx.boiledscript.com ([88.99.243.112]:44820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHyj8-00081J-5z for 74217@debbugs.gnu.org; Mon, 02 Dec 2024 00:12:07 -0500 Date: Mon, 02 Dec 2024 13:11:53 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1733116324; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jmMV2LV+3l/e/IL2K5Lk/OAXJg/zxYi4sR1fa7HoWkE=; b=TEFtsgqLyZuji6NOhgsQtf5i6X7twhAmYefQlMFffJGR57OjkCA5F7H3c9h0daSfjtqy1Y rVctvYwcAJdbCZb/Hkx3j5x6amUzbRjHmEz36+QXX41H8CWKnQ42m28mcqzSzkew4Y+X46 1ekzqjrut2rQlEHLJil1F+kyOcOX81aXhx0J0Tp0yhcfVFCVv+wfNqu0M/mTArzAvNpOFd B/sy/xCslF+ga7Lnc+gMkUVJlMY1dIdluSdqKW403375D8AFY1/v1ArvNKksQQhzt4rw2C EIHhx1EgXJtb37inIejQFuDjjAzCvc5mOKv5oBDM/CmhlfyunptPYNcwfz1RCA== Message-ID: <87h67mbrdy.wl-hako@ultrarare.space> From: Hilton Chain In-Reply-To: <87a5djipk6.wl-hako@ultrarare.space> References: <87ldxngjy4.wl-hako@ultrarare.space> <878qtmvh2i.wl-hako@ultrarare.space> <877c96vd3u.wl-hako@ultrarare.space> <874j4auz7j.wl-hako@ultrarare.space> <87v7wqtbjq.wl-hako@ultrarare.space> <878qtl5g55.wl-hako@ultrarare.space> <87jzd47enj.wl-hako@ultrarare.space> <87a5dx7w1n.wl-hako@ultrarare.space> <87frnns6wh.wl-hako@ultrarare.space> <87ed34viqk.wl-hako@ultrarare.space> <87a5djipk6.wl-hako@ultrarare.space> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.61 X-Spam-Score: -4.61 X-Migadu-Queue-Id: 3755085F35 X-Migadu-Scanner: mx12.migadu.com X-TUID: thi3Z3dR/Lms On Thu, 28 Nov 2024 19:08:09 +0800, Hilton Chain wrote: > > Made "#:zig-inputs" a private keyword, its value will be passed to inputs like > cargo-build-system (the build system doesn't extract the whole closure for > now, this can be added in the future depending on how Zig ecosystem develops). Just thought if we can avoid using #:zig-inputs, it turns out doing so is quite easy: --8<---------------cut here---------------start------------->8--- @@ -330,9 +327,20 @@ (define-public zig-zls-0.12 (file-name (git-file-name name version)) (sha256 (base32 - "1ini1ifa9b0v2ika3sqsiiv2p7v9npfslss45280yxwn2pjqmn7n")))) + "1ini1ifa9b0v2ika3sqsiiv2p7v9npfslss45280yxwn2pjqmn7n")) + (modules '((guix build utils))) + (snippet + #~(begin + (substitute* "build.zig" + (("(b\\.dependency.\")diffz" _ prefix) + (string-append prefix "zig-diffz")) + (("(b\\.dependency.\")known_folders" _ prefix) + (string-append prefix "zig-known-folders"))) + (substitute* "build.zig.zon" + (("\\.diffz") ".@\"zig-diffz\"") + (("\\.known_folders") ".@\"zig-known-folders\"")))))) (build-system zig-build-system) - (inputs (list zig-0.12)) + (inputs (list zig-0.12 zig-diffz zig-known-folders)) (arguments (let ((version-data-path #~(string-append "-Dversion_data_path=" @@ -344,7 +352,4 @@ (define-public zig-zls-0.12 #:zig-build-flags #~(list #$version-data-path) #:zig-test-flags - #~(list #$version-data-path) - #:zig-inputs - `(("known_folders" ,zig-known-folders) - ("diffz" ,zig-diffz))))))) + #~(list #$version-data-path)))))) (define-public zig-zls-0.13 (package --8<---------------cut here---------------end--------------->8--- I also continued the bootstrap path to current master: https://paste.sr.ht/~hako/584dd15fd1614f23e6a421b906092a1b28614148