From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id mOlKFWJZTmevOgEAqHPOHw:P1 (envelope-from ) for ; Tue, 03 Dec 2024 01:05:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mOlKFWJZTmevOgEAqHPOHw (envelope-from ) for ; Tue, 03 Dec 2024 02:05:38 +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=G2FkcwBD; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=mail header.b=N2pB2YRh; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=ultrarare.space (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733187937; 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: content-transfer-encoding:content-transfer-encoding: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=f7D5jAkPmQS84Iqjc0salu/nkJ9RJq03lfuXQdiq+78=; b=bVfmi6EANOjcV/BESMJCf8wOPVWKQxIaiF41N3TvyzGcDfNJUyMNyYwbmJCxSZxhxrnJpT QwTBUIE/+CvVbnD3ARX4ut3NBKiGrdcUvHMha6DNJaO+IevP6qspvmRj5863B85Uyc1cYf Wkg94UCjaULi9LxMUE7Oc4BkL9O1jDcy8LEICLsjgTlzd8R5vsOAapFmbUgUs7nom6z4Q7 ngyrCWJjZyXdXV1YoAVdpp8Ba92zd9+KIv42eO9+qieUWIKqcMS6eoqrqUNS0ZMH5eqHWa i89vt5o3IBnkiIsnX64/SGfzn5C4VVh9TUVbY3UKpmItw1bpmBbYYIjdmrLc1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=G2FkcwBD; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=mail header.b=N2pB2YRh; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=ultrarare.space (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733187937; a=rsa-sha256; cv=none; b=D9Hy4H2gsvBxrwRCCwQJ9rmB3u10xOWysrq1B+Yc/O7XdieK+8cYJEe93m03Wiwm636zHN fU6xFfGH3N4h2bvUGj04Qe++MMYoy/ew5rYPaUbUUTdiw1v0MlPLK43fR/LBPsnXH54rZQ QiYlL88YQt79kspXwbmp8I6dy2c4kjKFIKN8SgUDJbSTuB97QUn12VjN4cG5lV2r8Z7tFP Ep6w4SKzV211Pnc8BZevYTBQnYVkzZKmiALpM3iCfGgcSoTpZhgf5KWxrfH/S17X4dw1x/ HydEo50r68fLRgAMsCGJ3uEKm2SV0qg4UwNxNvZJT02+1KlqN6Bo6unyObleUQ== 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 9F3658FD07 for ; Tue, 03 Dec 2024 02:05:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIHLn-0002XW-P0; Mon, 02 Dec 2024 20:05:15 -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 1tIHLc-0002Tj-Tp for bug-guix@gnu.org; Mon, 02 Dec 2024 20:05:05 -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 1tIHLb-0004FR-28 for bug-guix@gnu.org; Mon, 02 Dec 2024 20:05:04 -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=f7D5jAkPmQS84Iqjc0salu/nkJ9RJq03lfuXQdiq+78=; b=G2FkcwBD6F9WMCXTf0lWKeQhmFGGkubDQ5TgpDRY/PfmGgh49aywHkJQkiKbHl5MuJEAN/HRNtNj4ckTQoC5mhJMhb2b8qcbipGa/ItIDxP5azy70Xy7zs2UelIRXysA8kEMthJi7uE8kUaE7n8RqFM7bEltRNZh5ntuYlSSdlZrZFGeme6AEqL5Gyf18PH6H4mfJOWtAcEXiXYLXdH0lYBY/wVOXeL6z9S7gj7YKiOwu1VbKxx8LDELS/2dDjpVd5tjhc47kEIXntQAbkhdV4MG0Xqk7WrOSBp6VEaxKbg5NrwjfgNJussHR/UoeM0pQ9ipdEKbWglppc9yv+Hnhg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIHLZ-0002qz-P9 for bug-guix@gnu.org; Mon, 02 Dec 2024 20:05:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74656: [wip-zig-bootstrap] zig cache is not updated for dependencies of dependencies Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 03 Dec 2024 01:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74656 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?No=C3=A9?= Lopez Cc: Ekaitz Zarraga , 74656@debbugs.gnu.org Received: via spool by 74656-submit@debbugs.gnu.org id=B74656.173318786610907 (code B ref 74656); Tue, 03 Dec 2024 01:05:01 +0000 Received: (at 74656) by debbugs.gnu.org; 3 Dec 2024 01:04:26 +0000 Received: from localhost ([127.0.0.1]:57128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIHKz-0002pq-P6 for submit@debbugs.gnu.org; Mon, 02 Dec 2024 20:04:26 -0500 Received: from mx.boiledscript.com ([88.99.243.112]:53644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIHKx-0002pf-N8 for 74656@debbugs.gnu.org; Mon, 02 Dec 2024 20:04:24 -0500 Date: Tue, 03 Dec 2024 08:43:09 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1733187862; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f7D5jAkPmQS84Iqjc0salu/nkJ9RJq03lfuXQdiq+78=; b=N2pB2YRhMg90nRaOXwNvfnE7gHjFpNLWvpYRppNBTSqf/zSADReHICyvvq2wPie1x3JzO4 DYjIuVZA/X6sLYBfcajlF152PVo6PP/vFpXrNrH5E2Z5AOW8bFDhKLoL/wxVhNMmKkONfN qsr0GjQ4IGg25TGp5WgMH+J+7n+eIxQApfpK0gchW1gXfN/Czsl3gUouy8YcHvpUhdaJjB 5iaFJAUurlNtOSUbtA2IjGIRK/1rzb+Ro006sGTIyYGalw91ZFCDP1hX5QUQulxi1WHrrJ o7+3i3Q0OAvy1vZzPPRTtOf85uref6abyZj8eGZ2Y9rjxaM/XLDGd3/0DFeqnA== Message-ID: <875xo11tr6.wl-hako@ultrarare.space> From: Hilton Chain In-Reply-To: <87ed2p7pmn.fsf@xn--no-cja.eu> References: <87ed2p7pmn.fsf@xn--no-cja.eu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Tue_Dec__3_08:43:09_2024-1" Content-Transfer-Encoding: 8bit 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 1.49 X-Spam-Score: 1.49 X-Migadu-Queue-Id: 9F3658FD07 X-TUID: irSxAUYgqbgu --Multipart_Tue_Dec__3_08:43:09_2024-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Noé, On Tue, 03 Dec 2024 05:15:44 +0800, Noé Lopez wrote: > > [1 ] > Hi, > > I got my hands on packaging liskvork, a gomoku server. The build fails > because dependencies of dependencies are not added to the zig cache, and so > can’t be found correctly by the zig build system. > > I attached a patch that reproduces this, a workaround when reproducing the > steps in a local checkout is to call “zig fetch” on the missing dependencies: > > $ zig fetch /gnu/store/j0x1vl6w2vgr3fz60l4jgyx5gx53af61-zig-httpz-0-0.7d2ddae/src/zig-httpz-0-0.7d2ddae --save=httpz > warning: overwriting existing dependency named 'httpz' > $ zig build --summary all > /home/noe/.cache/zig/p/1220476906a8f57d6cbaaaeb05d44a41311a5bb6ca74bb86bc3aa1467506c241b29b/build.zig.zon:7:20: error: invalid URI: UnexpectedCharacter > $ zig fetch /gnu/store/59w4s1g1y4vy4gw3mwn9fjsfcqc5454i-zig-metrics-0-0.fcf9e94/src/zig-metrics-0-0.fcf9e94 --save=metrics > $ zig fetch /gnu/store/izxqkxplp7alrh0n3c8j8cv277nqa04a-zig-websocket-0-0.cf89cb8/src/zig-websocket-0-0.cf89cb8 --save=websocket > $ zig build --summary all > Build Summary: 5/5 steps succeeded > install success > +- install liskvork success > +- zig build-exe liskvork Debug native-native success 3s MaxRSS:276M > +- options cached > +- options cached > > This has the issue of adding the packages to build.zig.zon, so a better > solution is required. > > I’m attaching the patch with the liskvork package and dependencies. The error > can be reproduced with “./pre-inst-env guix build liskvork”. > > Have a nice day, > Noé Good example, that's the current limitation of #:zig-inputs, and I'm planning to remove it. Please apply the attached patch onto your change. Thanks --Multipart_Tue_Dec__3_08:43:09_2024-1 Content-Type: text/plain; type=patch; name="zig-xyz.patch"; charset=US-ASCII Content-Disposition: attachment; filename="zig-xyz.patch" Content-Transfer-Encoding: 7bit diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm index 027377fa1b..b98a160e27 100644 --- a/gnu/packages/zig-xyz.scm +++ b/gnu/packages/zig-xyz.scm @@ -186,11 +186,20 @@ (define-public zig-logz (file-name (git-file-name name version)) (sha256 (base32 - "01xihyvyx3rpv0kvjh6mg1b99d6agq683q4iyn39nwqb6ma0i0sz")))) + "01xihyvyx3rpv0kvjh6mg1b99d6agq683q4iyn39nwqb6ma0i0sz")) + (modules '((guix build utils))) + (snippet + #~(for-each + (lambda (dep) + (substitute* "build.zig" + (((string-append "(b\\.dependency.\")" (car dep)) _ prefix) + (string-append prefix (cdr dep)))) + (substitute* "build.zig.zon" + (((string-append "\\." (car dep))) + (format #f ".@\"~a\"" (cdr dep))))) + '(("metrics" . "zig-metrics")))))) (build-system zig-build-system) - (arguments - (list - #:zig-inputs `(("metrics" ,zig-metrics)))) + (propagated-inputs (list zig-metrics)) (home-page "https://github.com/karlseguin/log.zig") (synopsis "Structured Logging for Zig") (description "logz is an opinionated structured logger that outputs to stdout, @@ -265,12 +274,21 @@ (define-public zig-httpz (file-name (git-file-name name version)) (sha256 (base32 - "02hixvyx1r04lg0nzvhkyrqwcwm8m8rs8hm01n2nzw6jv935frh8")))) + "02hixvyx1r04lg0nzvhkyrqwcwm8m8rs8hm01n2nzw6jv935frh8")) + (modules '((guix build utils))) + (snippet + #~(for-each + (lambda (dep) + (substitute* "build.zig" + (((string-append "(b\\.dependency.\")" (car dep)) _ prefix) + (string-append prefix (cdr dep)))) + (substitute* "build.zig.zon" + (((string-append "\\." (car dep))) + (format #f ".@\"~a\"" (cdr dep))))) + '(("metrics" . "zig-metrics") + ("websocket" . "zig-websocket")))))) (build-system zig-build-system) - (arguments - (list #:zig-inputs - `(("metrics" ,zig-metrics) - ("websocket" ,zig-websocket)))) + (propagated-inputs (list zig-metrics zig-websocket)) (home-page "https://github.com/karlseguin/http.zig") (synopsis "HTTP/1.1 server for Zig") (description "") @@ -288,16 +306,26 @@ (define-public liskvork (file-name (git-file-name name version)) (sha256 (base32 - "1x7cif9wpaq7mk1pqmixq3flymrradb6zpx5qnmiihw699zr2xhw")))) + "1x7cif9wpaq7mk1pqmixq3flymrradb6zpx5qnmiihw699zr2xhw")) + (modules '((guix build utils))) + (snippet + #~(for-each + (lambda (dep) + (substitute* "build.zig" + (((string-append "(b\\.dependency.\")" (car dep)) _ prefix) + (string-append prefix (cdr dep)))) + (substitute* "build.zig.zon" + (((string-append "\\." (car dep))) + (format #f ".@\"~a\"" (cdr dep))))) + '(("ini" . "zig-ini") + ("logz" . "zig-logz") + ("zul" . "zig-zul") + ("httpz" . "zig-httpz")))))) (build-system zig-build-system) (arguments (list #:install-source? #f - #:zig-release-type "safe" - #:zig-inputs - `(("ini" ,zig-ini) - ("logz" ,zig-logz) - ("zul" ,zig-zul) - ("httpz" ,zig-httpz)))) + #:zig-release-type "safe")) + (inputs (list zig-httpz zig-ini zig-logz zig-zul)) (home-page "https://liskvork.org") (synopsis "Modern multi-platform gomoku game server.") (description "liskvork is a modern Gomoku game server that is purpose-built for --Multipart_Tue_Dec__3_08:43:09_2024-1--