From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4IZEDk08U2cDCQEAqHPOHw:P1 (envelope-from ) for ; Fri, 06 Dec 2024 18:02:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4IZEDk08U2cDCQEAqHPOHw (envelope-from ) for ; Fri, 06 Dec 2024 19:02:53 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b=T4+g44AW; dmarc=pass (policy=reject) header.from=marekpasnikowski.pl; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733508173; a=rsa-sha256; cv=none; b=rRnQrpyKYUZPuDNo0tRagUzMwXWjMqNca5qI2Dl94nZ3Sv+y3/zqQ2cElSGSFSg6HjBi0Z 3S9X3zQAfO8l1t0CccHpMY8k49oY0S+QeLZElZe8nm5i4R/uotegXNKTdbIfc2xc1xRgiD +hk4ngpunf6gHQCvqXOH+b9xpWm6eOTyZz2E3tq11FwTg/boGdOKUdf9Dn21XvMugSlopz i60cA2NDyGPAAc+HV9XQtSnje48kqUn3enTEGwjbJIYIifVVOI9auRMdz4r4/d7irCyVKm Vh+SjJehDSXOsRevJwZ97FO/4VQ+jcCfCjJw84nhyvbD1Gtqf+6LuyYocOp8uQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b=T4+g44AW; dmarc=pass (policy=reject) header.from=marekpasnikowski.pl; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733508173; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3EalSzwHsC3ISGIcDPjNZ1w62h2QbFBffpgomYonxdk=; b=d3h8keRN7a1SnqucowbE9Rwc9VkibPuIvCEg6BKVONnoXByqilPKeV7Xh5Vv+cJRrDPPr4 +rGkz0rLbSzAlIsatGvUwClDvblaHM2QbwF9KZdQFacDfGqpXQRyTpY9lUnrulHqc6yQlQ G762nZ/qDyMaMKxtCW7/PrTz6C1/PHqmIan2zutmyAc7fpN53oL773PwHV26bypWA8jrn7 GlhyolFfjkuJgcTiYoAD6DbIda0sUbwv90wcN5kHtBKBSksKljNTesOv/bzTgqIg6vq42p MK0xjxeV8Myh5HqrvwXgvD93oQEWLm0ijU0r39raZAimD94ofpLWH2otFU7TpA== 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 2C38E5ECF3 for ; Fri, 06 Dec 2024 19:02:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJcec-0006bZ-Tm; Fri, 06 Dec 2024 13:02:14 -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 1tJcea-0006b8-MG for help-guix@gnu.org; Fri, 06 Dec 2024 13:02:12 -0500 Received: from [81.190.248.246] (helo=marekpasnikowski.pl) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tJceX-0002bd-PH for help-guix@gnu.org; Fri, 06 Dec 2024 13:02:12 -0500 Received: from localhost (localhost.local [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id b1608b7f; Fri, 6 Dec 2024 18:01:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=marekpasnikowski.pl; h= from:to:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=dkim; bh=vzSCSEpuKD8rxs7j7xV/pYNUh xYgBlI5iaHpGRJE2Uw=; b=T4+g44AWwlHr4IwSc9WX913OuHWQfiajhuOOsmRYT GEz9kLrdcF9Hgtcxq1nnQbFfRldy+WjV40waulgrrSLgMA6f41GdtTzvOXg4NR9Z z8HaJXCcTJMS+VfqeAW0e2n2evWMmYv/Esji9+4m9p2JWJSCPh/VcbMKhGJw9Iav 18WN4yIBXqp89rOlGNJwQGwHXFPCdTTItyYhQZdF+InXAXexBr6fNbEnxS1Kl3RJ f7Ivz5ivf5Cj/u/EWnaMnynsKWkJCXmxLSCIh0dSmMpeMFlYIh44lDiaws/+LJJ/ pbqnoercaUM8w7TLsxCLIAL4EPH55fbOWdCu3On61BurQ== Received: by localhost (OpenSMTPD) with ESMTPSA id df0e0e3a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 6 Dec 2024 18:01:52 +0000 (UTC) From: Marek =?utf-8?B?UGHFm25pa293c2tp?= To: sebastien , help-guix@gnu.org Subject: Re: Packaging Proton Bridge: cryptic compilation failure Date: Fri, 06 Dec 2024 19:01:43 +0100 Message-ID: <2980339.e9J7NaK4W3@aisaka> In-Reply-To: <173341800403.6.14598806331512627250.521121694@reycoyrehourcq.me> References: <2208743.irdbgypaU6@aisaka> <30911cd4-c634-43a7-b372-f20a05caa3ac@app.fastmail.com> <173341800403.6.14598806331512627250.521121694@reycoyrehourcq.me> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3337974.aeNJFYEL58"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 81.190.248.246 (deferred) Received-SPF: pass client-ip=81.190.248.246; envelope-from=marek@marekpasnikowski.pl; helo=marekpasnikowski.pl X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 2C38E5ECF3 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -0.47 X-Spam-Score: -0.47 X-TUID: PyBPq08WkWEt --nextPart3337974.aeNJFYEL58 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Marek =?utf-8?B?UGHFm25pa293c2tp?= To: sebastien , help-guix@gnu.org Subject: Re: Packaging Proton Bridge: cryptic compilation failure Date: Fri, 06 Dec 2024 19:01:43 +0100 Message-ID: <2980339.e9J7NaK4W3@aisaka> MIME-Version: 1.0 On czwartek, 5 grudnia 2024 17:37:05 CET you wrote: > Le samedi 30 novembre 2024 =C3=A0 8:22 PM, Ian Eure a = =C3=A9crit : > > Hi Marek, > >=20 > > On Sat, Nov 30, 2024, at 6:56 PM, Marek Pa=C5=9Bnikowski wrote: > > > On sobota, 30 listopada 2024 19:08:49 CET Cayetano Santos wrote: > > > > > sam. 30 nov. 2024 at 17:26, Marek Pa=C5=9Bnikowski > > > > > marek@marekpasnikowski.pl > > > > > wrote: > > > > > Hello Guix > > > > >=20 > > > > >=20 > > > > > I am towards the end of a first pass of packaging the Proton Brid= ge > > > > > program to access my Proton Mail with KMail. > > > > >=20 > > > > >=20 > > > > > I have worked through and learned about many peculiarities of Gol= ang > > > > > build > > > > > system. As long as I had an error message, I was able to at least > > > > > work > > > > > around problems. However, the latest build failure is completely > > > > > cryptic > > > > > to me, as its log contains zero error messages. It works fine unt= il > > > > > I > > > > > get a "build > > > > > failed" summary: > > > > > The debug for dummies manual advices using the "--keep-failed" fl= ag > > > > > when > > > > > you build packages. Using a shell container helps to understand t= his > > > > > kind > > > > > of cryptic messages too. > > > >=20 > > > > -- > > > > Cayetano Santos > > >=20 > > > Thank you Ian, Cayetano for swiftly reminding me to Read The Manual. I > > > was so tired with constant tweaking of package after package, that I > > > forgot to go to the basics. > > >=20 > > >=20 > > > I learned that I can source variables to emulate the build environmen= t, > > > in > > > which I issued the same command that go build system uses to build the > > > package. Here is the result, much cleaner with the interesting stuff > > > right at the end: > > >=20 > > >=20 > > > [...] > > > # github.com/ProtonMail/go-crypto/openpgp/packet > > > /tmp/guix-build-go-github-com-protonmail-go-proton-api-0.4.0.drv-0/sr= c/ > > > github.com/ProtonMail/go-crypto/openpgp/packet/packet_sequence.go:12:= 92: > > > undefined: errors.ErrMalformedMessage > > > /tmp/guix-build-go-github-com-protonmail-go-proton-api-0.4.0.drv-0/sr= c/ > > > github.com/ProtonMail/go-crypto/openpgp/packet/packet_sequence.go:13:= 16: > > > undefined: errors.ErrMalformedMessage > > > /tmp/guix-build-go-github-com-protonmail-go-proton-api-0.4.0.drv-0/sr= c/ > > > github.com/ProtonMail/go-crypto/openpgp/packet/packet_sequence.go:94:= 17: > > > undefined: errors.ErrMalformedMessage > > > /tmp/guix-build-go-github-com-protonmail-go-proton-api-0.4.0.drv-0/sr= c/ > > > github.com/ProtonMail/go-crypto/openpgp/packet/config_v5.go:6:2: > > > undefined: > > > V5Disabled > > > /tmp/guix-build-go-github-com-protonmail-go-proton-api-0.4.0.drv-0/sr= c/ > > > github.com/ProtonMail/go-crypto/openpgp/packet/marker.go:27:33: > > > undefined: > > > packetTypeMarker > > > /tmp/guix-build-go-github-com-protonmail-go-proton-api-0.4.0.drv-0/sr= c/ > > > github.com/ProtonMail/go-crypto/openpgp/packet/padding.go:20:33: > > > undefined: > > > packetPadding > > >=20 > > >=20 > > > I remember faking a Proton=E2=80=99s fork with the upstream package b= ecause > > > GitHub > > > failed to find it. It could be the one, or not. At least I have a thr= ead > > > to > > > follow now; and a new tool for deep inspection. > >=20 > > It's been a while since I've worked in Go, but based on: > > https://github.com/ProtonMail/go-crypto/blob/main/openpgp/packet/packet= _s > > equence.go#L9 > >=20 > >=20 > > ...I suspect the go-crypto repository houses multiple Go packages, which > > all need to be packaged individually in Guix. It looks like your Guix > > packages aren't doing that, which may explain the error you're getting. > > This is just a hunch, it's been a few years since I wrote Go, and I nev= er > > dealt with packaging beyond stuffing static binaries into Docker > > containers -- but it feels at least close to the root of the issue to m= e. > >=20 > >=20 > > -- Ian >=20 > Hi, >=20 > As a everyday user of ProtonMail/guix for work i'm also interested to help > you on this task. Perhaps could you provide a chan that contain only the > dependencies and manifest to build proton-bridge ? >=20 >=20 > That help us to reproduce the build and try to package and push go package > that miss. >=20 > Best regards, > SR Thank you for your offer. I accept it with gratitude. During previous 3 days I was spinning in circles trying to pin down a corre= ct=20 combination of dependency versions with the same function prototype. This= =20 morning I found one such combination and was able to push through to the to= p=20 level, where the Go component of proton-bridge itself fails to build. Unfortunately I still can see the same dreaded error of " go build log type func(a Address, b Address) int of func(a, b Address) Int {=E2=80=A6} does not match inferred type func(a Address, b Address) bool for func(a E, b E ) bool " I have prepared the "proton-bridge" bridge of my channel in a way preservin= g=20 the other module files, but hopefully isolating them from use by Guix: " .guix-channel (channel (version 0) (directory "proton-bridge") ; <--- channel-root/proton-bridge/sovereign/... (dependencies (channel (introduction (channel-introduction (version 0) (commit "61c9f87404fcb97e20477ec379b643099e45f1db") (signer "A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351"))) (name efraim-dfsg) (url "https://git.sr.ht/~efraim/my-guix")) (channel (introduction (channel-introduction (version 0) (commit "7c67c3a9f299517bfc4ce8235628657898dd26b2") (signer "CD2D 5EAA A98C CB37 DA91 D6B0 5F58 1664 7F8B E551"))) (name guixrus) (url "https://git.sr.ht/~whereiseveryone/guixrus")) (channel (introduction (channel-introduction (version 0) (commit "897c1a470da759236cc11798f4e0a5f7d4d59fbc") (signer "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))) (name nonguix) (url "https://gitlab.com/nonguix/nonguix")) (channel (introduction (channel-introduction (version 0) (commit "c24ce7cb11e74da13d491f9de3c4b7040a069f43") (signer "590E 500F E39D 26B3 E60B 743B 6D81 B120 7711 899F"))) (name deployment) (url "https://git.marekpasnikowski.pl/git/deployment.git")) (channel (introduction (channel-introduction (version 0) (commit "7d17bded11ef1239592e6e5abd40ceee1e99cbb8") (signer "590E 500F E39D 26B3 E60B 743B 6D81 B120 7711 899F"))) (name distribution) (url "https://git.marekpasnikowski.pl/git/distribution.git"))))) " My intention is to preserve the define-module headers while keeping them=20 accurate. Do let me know if I misunderstood the (directory) field. Please be understanding of the changing code style. Throghout the last two= =20 weeks I have iterated through multiple styles with increasing focus on=20 efficiency of implementation. Towards the end I have developed an idea of a universal origin function which constructs an origin object with data=20 supplied to it inside a given package definition. At this point I am more concerned with getting to the finish line than keep= ing=20 the style consistent. I am planning to rewrite everything from scratch onc= e a=20 working solution is found. --nextPart3337974.aeNJFYEL58 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEWQ5QD+OdJrPmC3Q7bYGxIHcRiZ8FAmdTPAcACgkQbYGxIHcR iZ90Tg/+INHuNa7mFDAb+6y24qg9FZgmNAgzOhTFRK5AJ9iQypdOG0ZnKM5hgEO0 zXqvyj2Eh98Wpit6UhWWFogPYcuuRQDyXtL3/husG6dZy1Bxl4rtZlSkWmteWfaD TEbqTYka7AZnE8eF/8bQqpWY5rDyxMyup0HGoR3smirDHhEV1bM7PgxLdew9WvMB lKUSOuhcytji8dP+OWFG3xR4glz1JZKee63kxaZQUxYyYNpS8l0AMfPlMZflrcDW Moeb/2OgIylMXCknu0KjbFIQgReNgcEOHj1056U9ejZ349YPGmqX9LMA56beX5Sg KWOQZokwXOXvS+i6iqzA7tq+rwDrWy6cVNnuxPtjS67p073vWrchAEvE/HdJtYwv fxSBUFnIt6Wnfor3qzTUFznFaxYL52sdttGQ6xIWT8R2O3GLYQWcjwmfDBUc3++5 GvxqxuJbOELEozsNsfpcuR6oWBpS/e0r2gtEvNROXlL4ZegSKtAFyJgIcNKlJyAw rOTE5qk/iqa8QV9ON3qOAG/w5m6/Bauvln/RwbhMqruYI7eZ84+7dUyZglPKQ3Oc e5qw1DoDqNqBdK/fgUOtAkAl/Uof3ZAoxJJ2MSXqKc98OaroqhvCYPo9Dcv/m/Ir KqTLHJbx68UMFYgaZOV2MAYdbpN7oghZwWwz6zi17WGfHoLyhBQ= =29s9 -----END PGP SIGNATURE----- --nextPart3337974.aeNJFYEL58--