From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aKcDFWwjTmfpSAEAqHPOHw:P1 (envelope-from ) for ; Mon, 02 Dec 2024 21:15:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aKcDFWwjTmfpSAEAqHPOHw (envelope-from ) for ; Mon, 02 Dec 2024 22:15:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Q2dLATp4; dkim=fail ("headers rsa verify failed") header.d=xn--no-cja.eu header.s=ds202402 header.b=Jomumvby; dmarc=pass (policy=none) header.from=gnu.org; 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=1733174123; a=rsa-sha256; cv=none; b=KptTOI7Rck5aC4aWoXLsThOBoNafTaCCDL3j6HrU45Q3mLm1NtpdztsQ9RHx7e9o0E1A5s pAJBI3lujrfz1nlbNDzh4nRO0uUhHQWiWyqX2vaiAAfBJGkjS3JKNY61RiwZm+K9jhb83h 07Rwx6sbks+J97EVQE3XAboj8zEkVY2Eb8wJzCXa+I+3sKe0bNJbFpsER7Z1KYHYk81WM0 fdcmuB67OYwwHcxPrwa5V6xAb6+vl8U4skYTG6swjd5wncs8uahYmUEJRaYbY3cfAnUnuV hkuPyQ7TC2+4gJhn589tcYRKSgaiLgDo2tD2mjBkkjuW850A4CJpR1lQmN2pBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Q2dLATp4; dkim=fail ("headers rsa verify failed") header.d=xn--no-cja.eu header.s=ds202402 header.b=Jomumvby; dmarc=pass (policy=none) header.from=gnu.org; 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=1733174123; h=from:from:sender:sender:reply-to: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:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=ITGJclTQS+Npuf+O6/V5lhLIpsBNqdiNqh72cwQKqvw=; b=N7HKjgGaKXBg1mXIht6NPIf45EYIFJW31JJIu8SHrEkRFRfwZpNGqsZtvrGqxg6swZJf/W vtjNgRjYFApvdPErNQFs5qbDjIG/kofOcbW7Tp6jYXEwVrwl0ldkdX1e/4HWUElVTGVyVr 4RS43EbpuNlriTdRcc8p99iAs637jcTo9t3/tosxaDPoVJURoxwxvBx2xGfSi01ao3hCbw DACFOtvyYD6whqg8FoEhB7c6AOZAnZ8RWCEJuIXxKlxuLQi0qofEt/1Fw8awZgGXXB4uId 1ZCU3UFRGta4LGdw8P7NqP3lAY5dA2XU7lgw9n8aEy0WWdc3kdEmN0nVemvx6Q== 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 A74E770E71 for ; Mon, 02 Dec 2024 22:15:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIDlB-0005Lr-1Q; Mon, 02 Dec 2024 16:15:13 -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 1tIDl8-0005LC-W2 for bug-guix@gnu.org; Mon, 02 Dec 2024 16:15:11 -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 1tIDl8-0007mJ-JO for bug-guix@gnu.org; Mon, 02 Dec 2024 16:15:10 -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:Date:From:To:Subject; bh=ITGJclTQS+Npuf+O6/V5lhLIpsBNqdiNqh72cwQKqvw=; b=Q2dLATp45M7WK1J8te3R48V2Gxh3W8wG0D8MUzyRNQNUYX2je5fL0GNdQ6VARjzz90RYXL2s934JB53XSsr8qFBstcsMVn/rGimnazTeV8ZABZT18m+r3LoxmfisrlnK6x7m/UqSDAmlv62UqxSUeZP/5XR3cFzYiXl7TEJfzMqdflT97cySmUArar1t6+NNp4ljGtFIoBA6CEq6z3F6M5VN8WmEhPgAh9qCLfNs+2UgkI7QHDLIR21gmrkxoYQhtXYL42B2kN+ehA6V9/ANE0CtkUDqFKgZkert/GT5+HAHipWZO1qVUyu8bAWSFyW1loAxPRhfmNLdYOQ83Br/0A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIDl0-0008J5-By; Mon, 02 Dec 2024 16:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74656: [wip-zig-bootstrap] zig cache is not updated for dependencies of dependencies Resent-From: =?UTF-8?Q?No=C3=A9?= Lopez Original-Sender: "Debbugs-submit" Resent-CC: ekaitz@elenq.tech, hako@ultrarare.space, bug-guix@gnu.org Resent-Date: Mon, 02 Dec 2024 21:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74656 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74656@debbugs.gnu.org Cc: Ekaitz Zarraga , Hilton Chain X-Debbugs-Original-To: bug-guix@gnu.org X-Debbugs-Original-Xcc: Ekaitz Zarraga , Hilton Chain Received: via spool by submit@debbugs.gnu.org id=B.173317408131867 (code B ref -1); Mon, 02 Dec 2024 21:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Dec 2024 21:14:41 +0000 Received: from localhost ([127.0.0.1]:56748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIDke-0008Hu-HZ for submit@debbugs.gnu.org; Mon, 02 Dec 2024 16:14:41 -0500 Received: from lists.gnu.org ([209.51.188.17]:39918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIDkd-0008Hn-1B for submit@debbugs.gnu.org; Mon, 02 Dec 2024 16:14:39 -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 1tIDkc-0005Eq-RI for bug-guix@gnu.org; Mon, 02 Dec 2024 16:14:38 -0500 Received: from smtp.domeneshop.no ([2a01:5b40:0:3006::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIDkZ-0007ST-RN for bug-guix@gnu.org; Mon, 02 Dec 2024 16:14:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xn--no-cja.eu; s=ds202402; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ITGJclTQS+Npuf+O6/V5lhLIpsBNqdiNqh72cwQKqvw=; b=Jomumvby8sPkofo66Gn8xsFyYW vp0R9jSr+FtIFSE7Dc+ErAOUXhq/la76FD7Rd5kk4ARRCG332wCATaUyuzNDHILrfcj/d7g3Ya+iS 4qIKy1ikN2i7a0n3Uw9SWibbsxKAoQBfEFKxZ7KUM/9t072FS8aJCBovKZ11EpeHnrkFco9nbgTXo u9ZH4tFsQ4qcwQJEySrifTQ7FWXXiNOxHLIRxf4f4J7QqyJxglaTDCPtS+kBbLPtT3n4xAEXFeqPB +F5OHHKCaLjMF26aWaiIuF8XMIIIxkALvudwka0HPrSAR3b0D/uGZ3J0wwIPyh7LxRXKNA8nFQNBm NOkDTDsA==; Received: from smtp by smtp.domeneshop.no with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) id 1tIDkS-001XPI-7n for bug-guix@gnu.org; Mon, 02 Dec 2024 22:14:28 +0100 Date: Mon, 02 Dec 2024 22:15:44 +0100 Message-ID: <87ed2p7pmn.fsf@xn--no-cja.eu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a01:5b40:0:3006::1; envelope-from=noe@xn--no-cja.eu; helo=smtp.domeneshop.no X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: =?UTF-8?Q?No=C3=A9?= Lopez From: =?UTF-8?Q?No=C3=A9?= Lopez via Bug reports for GNU Guix 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-Spam-Score: -3.82 X-Spam-Score: -3.82 X-Migadu-Queue-Id: A74E770E71 X-Migadu-Scanner: mx10.migadu.com X-TUID: UzXxQkMtwrNZ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=E2=80=99t 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 =E2=80=9Czig fetch=E2=80=9D on the= missing dependencies: $ zig fetch /gnu/store/j0x1vl6w2vgr3fz60l4jgyx5gx53af61-zig-httpz-0-0.7d2dd= ae/src/zig-httpz-0-0.7d2ddae --save=3Dhttpz warning: overwriting existing dependency named 'httpz' $ zig build --summary all /home/noe/.cache/zig/p/1220476906a8f57d6cbaaaeb05d44a41311a5bb6ca74bb86bc3a= a1467506c241b29b/build.zig.zon:7:20: error: invalid URI: UnexpectedCharacter $ zig fetch /gnu/store/59w4s1g1y4vy4gw3mwn9fjsfcqc5454i-zig-metrics-0-0.fcf= 9e94/src/zig-metrics-0-0.fcf9e94 --save=3Dmetrics $ zig fetch /gnu/store/izxqkxplp7alrh0n3c8j8cv277nqa04a-zig-websocket-0-0.c= f89cb8/src/zig-websocket-0-0.cf89cb8 --save=3Dwebsocket $ 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=E2=80=99m attaching the patch with the liskvork package and dependencies.= The error can be reproduced with =E2=80=9C./pre-inst-env guix build liskvork=E2= =80=9D. Have a nice day, No=C3=A9 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-liskvork-New-package-and-depencies-WIP.patch >From 6ff4fd23182c315c0389e547ad5654bc0571fcb8 Mon Sep 17 00:00:00 2001 Message-ID: <6ff4fd23182c315c0389e547ad5654bc0571fcb8.1733173878.git.noelopez@free.fr> From: =?UTF-8?q?No=C3=A9=20Lopez?= Date: Mon, 2 Dec 2024 22:10:43 +0100 Subject: [PATCH] gnu: liskvork: New package and depencies WIP. Change-Id: Iaaff549a2f202518e4af7e5bcfb0b58d04e07f40 --- gnu/packages/zig-xyz.scm | 187 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm index d7210af594..b6c250eb64 100644 --- a/gnu/packages/zig-xyz.scm +++ b/gnu/packages/zig-xyz.scm @@ -83,6 +83,193 @@ (define-public zig-known-folders (home-page "https://github.com/ziglibs/known-folders") (license license:expat)))) +(define-public zig-ini + ;; No releases. + (let ((commit "e18d36665905c1e7ba0c1ce3e8780076b33e3002") + (revision "0")) + (package + (name "zig-ini") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ziglibs/ini.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0b1688g6kvcrbr8pbl3glv09fpd27p5z2bif8jmn6km6myq5fs1y")))) + (build-system zig-build-system) + (home-page "https://github.com/ziglibs/ini") + (synopsis "Simple INI parser") + (description "INI is a very simple ini-parser library that provides: +@itemize +@item Raw record reading +@item Leading/trailing whitespace removal +@item comments based on ; and # +@item Zig API +@item C API +@end itemize") + (license license:expat)))) + +(define-public zig-metrics + ;; No releases, latest commit from zig-0.13 branch. + (let ((commit "fcf9e94fa54a20f4954e9821801c32e44d407a2f") + (revision "0")) + (package + (name "zig-metrics") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/karlseguin/metrics.zig.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1vvfy97ak5xwvwv3rkqsgsj644298d3c75645386qf4psija6a25")))) + (build-system zig-build-system) + (arguments (list #:skip-build? #t)) ;fails to build examples + (home-page "https://github.com/karlseguin/metrics.zig") + (synopsis "Prometheus metrics library") + (description "metrics is a library designed for using Prometheus metrics. It +supports, counters, gauges and histograms and the labeled-variant of each.") + (license license:expat)))) + +(define-public zig-logz + ;; No releases, latest commit from zig-0.13 branch. + (let ((commit "5d5bbaeb98ad30cda30c60ab0f2d1a7fb4890676") + (revision "0")) + (package + (name "zig-logz") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/karlseguin/log.zig.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "01xihyvyx3rpv0kvjh6mg1b99d6agq683q4iyn39nwqb6ma0i0sz")))) + (build-system zig-build-system) + (arguments + (list + #:zig-inputs `(("metrics" ,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, +stderr, a file or a custom writer using logfmt or JSON. It aims to minimize runtime +memory allocation by using a pool of pre-allocated loggers.") + (license license:expat)))) + +(define-public zig-zul + ;; No releases. + (let ((commit "f122a0079309f88991aa014cb885500a977ca450") + (revision "0")) + (package + (name "zig-zul") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/karlseguin/zul.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1aajy6ygrzzq089g71yg7nw3fiklfckl606rysibfhg64d1w3pvl")))) + (build-system zig-build-system) + (arguments (list #:tests? #f)) ;fifty-five compilation errors + (home-page "https://www.goblgobl.com/zul/") + (synopsis "Zig utility library") + (description "The purpose of this library is to enhance Zig's standard +library. Much of zul wraps Zig's std to provide simpler APIs for common +tasks (e.g. reading lines from a file). In other cases, new functionality has been +added (e.g. a UUID type). + +Besides Zig's standard library, there are no dependencies. Most functionality is +contained within its own file and can easily be copy and pasted into an existing +library or project.") + (license license:expat)))) + +(define-public zig-websocket + ;; No releases, latest commit from zig-0.13 branch + (let ((commit "cf89cb8b9c61c99982ced19da54890983e226245") + (revision "0")) + (package + (name "zig-websocket") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/karlseguin/websocket.zig.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1q85pvc1dgyj5zdpk3xav1zgj6857p0nygndz3nc5xlm260hrck8")))) + (build-system zig-build-system) + (home-page "https://github.com/karlseguin/websocket.zig") + (synopsis "WebSocket implementation for Zig") + (description "") + (license license:expat)))) + +(define-public zig-httpz + ;; No releases, latest commit from zig-0.13 branch + (let ((commit "7d2ddae87af9b110783085c0ea6b03985faa4584") + (revision "0")) + (package + (name "zig-httpz") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/karlseguin/http.zig.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "02hixvyx1r04lg0nzvhkyrqwcwm8m8rs8hm01n2nzw6jv935frh8")))) + (build-system zig-build-system) + (arguments + (list #:zig-inputs + `(("metrics" ,zig-metrics) + ("websocket" ,zig-websocket)))) + (home-page "https://github.com/karlseguin/http.zig") + (synopsis "HTTP/1.1 server for Zig") + (description "") + (license license:expat)))) + +(define-public liskvork + (package + (name "liskvork") + (version "0.5.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/liskvork/liskvork") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1x7cif9wpaq7mk1pqmixq3flymrradb6zpx5qnmiihw699zr2xhw")))) + (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)))) + (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 +AI matches. It is almost completely configurable and backwards compatible with older +AIs made for previous Gomoku managers such as Piskvork.") + (license license:gpl3))) + (define-public river (package (name "river") base-commit: ceb267f7c108050633136b0abbd0964b6f31882c -- 2.46.0 --=-=-=--