Received: (at 74656) by debbugs.gnu.org; 4 Dec 2024 18:03:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 04 13:03:22 2024 Received: from localhost ([127.0.0.1]:36755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tItic-00072n-G6 for submit <at> debbugs.gnu.org; Wed, 04 Dec 2024 13:03:22 -0500 Received: from mx.boiledscript.com ([88.99.243.112]:52424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tItia-00072e-8i for 74656 <at> debbugs.gnu.org; Wed, 04 Dec 2024 13:03:20 -0500 Date: Thu, 05 Dec 2024 02:03:05 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1733335398; 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=W5xE8u8UxcPL2MyWmcx+Jw+UilRY2AC9lRaEyhdHxYY=; b=NO6oASGmCTo8bNiKEJxVry3QZiI3v6Z1hT/6MqqrlprFhOZgayMlfY53Qrg3Rq6SVN/hUY 6JEUGVoemRAduq/fGoy+IgZHcr3/BLekQAwUpbXo11zSFG3Jq1rY0eWJrz6waezraPXoQ7 FjWFDcvk2aSG75EWQltLlFaHIetR8GF2d11kVyd5ROJTYqFah79qR9pp9JMFtqBrUGfjBE oUpggicNXkRUrswkY+55vlVMODvZm5Lavi2xizWYDbQ4t9q8W2Czan3lbMEhl/NqLK7G11 ZcaIgKePKRB07143ipFF1gg/yEt9yGbAVDKlv5xLkVqqegoFO2YhxjhaqzZG+w== Message-ID: <87jzcf1g2u.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN> Subject: Re: bug#74656: [wip-zig-bootstrap] zig cache is not updated for dependencies of dependencies In-Reply-To: <87ed2p7pmn.fsf@HIDDEN> References: <87ed2p7pmn.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74656 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, 74656 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Added your packages (except liskvork, please tell me how to use it) to wip-zig-bootstrap. There're various modifications, please see the current definitions.
bug-guix@HIDDEN:bug#74656; Package guix.
Full text available.Received: (at 74656) by debbugs.gnu.org; 3 Dec 2024 17:08:38 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 03 12:08:38 2024 Received: from localhost ([127.0.0.1]:60989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tIWO6-0000uU-5J for submit <at> debbugs.gnu.org; Tue, 03 Dec 2024 12:08:38 -0500 Received: from mx.boiledscript.com ([88.99.243.112]:40236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tIWO1-0000uI-Oh for 74656 <at> debbugs.gnu.org; Tue, 03 Dec 2024 12:08:37 -0500 Date: Wed, 04 Dec 2024 01:07:37 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1733245712; 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=pmCVjGsHPifA3JnsJFU0cwpo5snFsLYJZ2xvzVNZwHU=; b=AhBru4TZ9V+lespgBZxi6ywoySxCCMeQ+9fjXr7PR9ArZkncKBPKW5IWYe7DtKaawM1hxK 8FxWlrgmFjvRLIx8+Y45leP44ncQeeag9c1zKxg2jlwRGmHePhP2Rf0CJDIAslJqBbVway 3lI2ZTJ7eAaQyVCcXwcybOa/I8s17fxQiN5QTfDOcawA5w9oKZkfnQC8Wlic7qGmVz4yqS 8y8lCSe5UKvX2ehFqkiCb84/D2kSMEVq0hi+jWpvjFgpYJpO0T3M3P7QLEpXi9IBdzvg9p 382hVxY8WwKjHtEwu9gofb2uIe5wI1X9tKdIFOeZJl8fIkpOwAtpOCF/lDKyog== Message-ID: <87bjxs3dba.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN> Subject: Re: bug#74656: [wip-zig-bootstrap] zig cache is not updated for dependencies of dependencies In-Reply-To: <87zfldxf7m.fsf@HIDDEN> References: <87ed2p7pmn.fsf@HIDDEN> <875xo11tr6.wl-hako@HIDDEN> <87zfldxf7m.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74656 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, 74656 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Tue, 03 Dec 2024 17:56:13 +0800, No=E9 Lopez wrote: > > Its working well with your changes, do you plan on keeping the snippet > syntax for every package? It seems like a lot of boilerplate. I can make it a procedure later, if only using this pattern is enough. > Personally I like the #:zig-inputs syntax better, why not keep it and do > the snippet in zig-build-system ? Metadata for Guix UI, and not repeating the work of inputs propagation.
bug-guix@HIDDEN:bug#74656; Package guix.
Full text available.
Received: (at 74656) by debbugs.gnu.org; 3 Dec 2024 09:57:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 03 04:57:20 2024
Received: from localhost ([127.0.0.1]:58337 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1tIPeh-0004VW-N3
for submit <at> debbugs.gnu.org; Tue, 03 Dec 2024 04:57:20 -0500
Received: from smtp.domeneshop.no ([194.63.252.55]:43357)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <noe@HIDDEN>) id 1tIPee-0004VA-Dz
for 74656 <at> debbugs.gnu.org; Tue, 03 Dec 2024 04:57:18 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=xn--no-cja.eu; s=ds202402; h=Content-Transfer-Encoding:Content-Type:
MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc: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=xFmN1rR8dlr2juBSrJ5E5P6oGCpqVcX7eE3JdtzDv9I=; b=b
G6ZTeYu27KazsZO6GS+2COlWPx9DQm3IwRJhqsoSZEbS/hx0OdD8OVIk5WscRMn4O/lZPu4kv5sh3
kB1UBDAuJAm0kte4CLz6CSTl3VfmjxdbeJ3x0I3TpPLjIPbbRfMz7ZGn4okxxoWdLmZIX2soczMUk
0B0Gx6wC0yOj/WRosgcxLSGhkcOID9uS+bIieFJMiRVrWIIfu2KGPktOkxZsFywyOjEAS4T18GxhA
EzwnOpXP3oTxSb0m6iMZuwxIIDRqOKKt2K3pcdiMtzeWWn14M8ws3Q+dlxEu14qfRFTBi3g6DhuEq
2AMRDujIaQ/MyT6mspqgM9AXkSAg+jryg==;
Received: from smtp by smtp.domeneshop.no with esmtpsa (TLS1.3) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95)
id 1tIPcR-004JRz-Cs; Tue, 03 Dec 2024 10:54:59 +0100
From: =?utf-8?Q?No=C3=A9?= Lopez <noe@HIDDEN>
To: Hilton Chain <hako@HIDDEN>
Subject: Re: bug#74656: [wip-zig-bootstrap] zig cache is not updated for
dependencies of dependencies
In-Reply-To: <875xo11tr6.wl-hako@HIDDEN>
References: <87ed2p7pmn.fsf@HIDDEN> <875xo11tr6.wl-hako@HIDDEN>
Date: Tue, 03 Dec 2024 10:56:13 +0100
Message-ID: <87zfldxf7m.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 74656
Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, 74656 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
Hi,
Its working well with your changes, do you plan on keeping the snippet
syntax for every package? It seems like a lot of boilerplate.
Personally I like the #:zig-inputs syntax better, why not keep it and do
the snippet in zig-build-system ?
Thanks,
No=C3=A9
Hilton Chain <hako@HIDDEN> writes:
> Hi No=C3=A9,
>
> On Tue, 03 Dec 2024 05:15:44 +0800,
> No=C3=A9 Lopez wrote:
>>
>> [1 <text/plain; utf-8 (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 t=
he
>> 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.7d=
2ddae/src/zig-httpz-0-0.7d2ddae --save=3Dhttpz
>> warning: overwriting existing dependency named 'httpz'
>> $ zig build --summary all
>> /home/noe/.cache/zig/p/1220476906a8f57d6cbaaaeb05d44a41311a5bb6ca74bb86b=
c3aa1467506c241b29b/build.zig.zon:7:20: error: invalid URI: UnexpectedChara=
cter
>> $ zig fetch /gnu/store/59w4s1g1y4vy4gw3mwn9fjsfcqc5454i-zig-metrics-0-0.=
fcf9e94/src/zig-metrics-0-0.fcf9e94 --save=3Dmetrics
>> $ zig fetch /gnu/store/izxqkxplp7alrh0n3c8j8cv277nqa04a-zig-websocket-0-=
0.cf89cb8/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 dependenci=
es. 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
>
> Good example, that's the current limitation of #:zig-inputs, and I'm plan=
ning to
> remove it.
>
> Please apply the attached patch onto your change.
>
> Thanks
> 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 output=
s 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 purpos=
e-built for
bug-guix@HIDDEN:bug#74656; Package guix.
Full text available.
Received: (at 74656) by debbugs.gnu.org; 3 Dec 2024 01:04:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 02 20:04:26 2024
Received: from localhost ([127.0.0.1]:57128 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1tIHKz-0002pq-P6
for submit <at> 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 <hako@HIDDEN>) id 1tIHKx-0002pf-N8
for 74656 <at> 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@HIDDEN>
From: Hilton Chain <hako@HIDDEN>
To: =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>
Subject: Re: bug#74656: [wip-zig-bootstrap] zig cache is not updated for
dependencies of dependencies
In-Reply-To: <87ed2p7pmn.fsf@HIDDEN>
References: <87ed2p7pmn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="Multipart_Tue_Dec__3_08:43:09_2024-1"
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 74656
Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, 74656 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
--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 <text/plain; utf-8 (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’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--
bug-guix@HIDDEN:bug#74656; Package guix.
Full text available.
Received: (at submit) by debbugs.gnu.org; 2 Dec 2024 21:14:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 02 16:14:41 2024
Received: from localhost ([127.0.0.1]:56748 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1tIDke-0008Hu-HZ
for submit <at> 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 <noe@HIDDEN>) id 1tIDkd-0008Hn-1B
for submit <at> 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 <noe@HIDDEN>) id 1tIDkc-0005Eq-RI
for bug-guix@HIDDEN; 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 <noe@HIDDEN>) id 1tIDkZ-0007ST-RN
for bug-guix@HIDDEN; 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@HIDDEN; Mon, 02 Dec 2024 22:14:28 +0100
From: =?utf-8?Q?No=C3=A9_Lopez?= <noe@HIDDEN>
To: bug-guix@HIDDEN
Subject: [wip-zig-bootstrap] zig cache is not updated for dependencies of
dependencies
X-Debbugs-CC: Ekaitz Zarraga <ekaitz@HIDDEN>, Hilton Chain
<hako@HIDDEN>
Date: Mon, 02 Dec 2024 22:15:44 +0100
Message-ID: <87ed2p7pmn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=2a01:5b40:0:3006::1;
envelope-from=noe@HIDDEN; 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-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)
--=-=-=
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@HIDDEN>
From: =?UTF-8?q?No=C3=A9=20Lopez?= <noelopez@HIDDEN>
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
--=-=-=--
Noé Lopez <noe@HIDDEN>:ekaitz@HIDDEN, hako@HIDDEN, bug-guix@HIDDEN.
Full text available.ekaitz@HIDDEN, hako@HIDDEN, bug-guix@HIDDEN:bug#74656; Package guix.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.