From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 UP7UHRhmS2dThQEAe85BDQ:P1 (envelope-from ) for ; Sat, 30 Nov 2024 19:23:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id UP7UHRhmS2dThQEAe85BDQ (envelope-from ) for ; Sat, 30 Nov 2024 20:23:04 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm3 header.b=XiyNH0ur; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="I bo/6lP"; dmarc=none; 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=1732994584; a=rsa-sha256; cv=none; b=swbDR0TPshb8E8hf2neby55xBy1vPtI04qiRkDHWiId4+InD9aAliLvPUU73U7tvGakHOX CHCJxYft6rksbpWwS7H9eauhceEbauZVuhzscjri2snWBfXiBYAyNUvE3/2OIOQRum5Ci0 2WuCXOsQTcX+0FvJfgLPp60ecIledq3ry7LoteZQ2Yy29T9yN7zBxLVcWKN1Uh9I5oilrD D0l5dKJehffVHb9SUpE8bjKaS+anH+KRofR+ymce7WmTpvCNQBrU50c7FpxrgxpowZosPT 3TuSW75hKdO1AWYCPPV/5rWOlPkPowcKNKu3ZWHcaQBxLl9ZTR8bPnkkYY0O/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm3 header.b=XiyNH0ur; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="I bo/6lP"; dmarc=none; 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=1732994584; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DbxgQ4Kjs0tUePSvUNHLOCmsvmfn0sM72/EFtUpTzpk=; b=BdG3oGJgwngJLdqHw73d/NFtxUs56NZYocRJc5Qa1f1Py02NmfNzLIS67tPCZVBy4DfUUz PssP+dl6KEMrM+i9YkLR9Gz5EBGBsteyC811jwgFPDCssggnyqPbKy313cbGuFM2idTgtc 89UKAqd8olDd7mXLXlJWAx4QMXIpS/JgYXN7UpkGDHdcAB37tHLNGgk1c3lV/sZ59yclCk KRsFxdRBz7OOb6Ywk3mrIxZ6Ewn8gdmZ1jII3rlWJVlz1pFZ6GiAZrjAa9a/enWiv4oPoy /Rkews+hCR773hKsHv0p3Q3LJpnnONAzqQBlhzdiTvEckWDMRL+7b4AGbsJ3YQ== 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 69CD57B2F2 for ; Sat, 30 Nov 2024 20:23:02 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHT33-0004RN-FY; Sat, 30 Nov 2024 14:22:33 -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 1tHT32-0004RD-B2 for help-guix@gnu.org; Sat, 30 Nov 2024 14:22:32 -0500 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHT30-00074m-Bp for help-guix@gnu.org; Sat, 30 Nov 2024 14:22:32 -0500 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id AB0E9254011C; Sat, 30 Nov 2024 14:22:28 -0500 (EST) Received: from phl-imap-08 ([10.202.2.84]) by phl-compute-04.internal (MEProxy); Sat, 30 Nov 2024 14:22:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1732994548; x=1733080948; bh=DbxgQ4Kjs0tUePSvUNHLOCmsvmfn0sM72/EFtUpTzpk=; b= XiyNH0ur4ex+aWP77mUVoqbEl3CtxXC1Pq/7c4wTcGTr6SB/iUb2RcSs9Y+vwMOQ 0vJ2cURkzoN5fQwadcQPBGk1p4+iqGTb2aLr65YI7MxRwmyPqF2scOZ7cgwdDcrQ C6JuffWIdbQY2vvBLJiStel/nDjavMx0oiNRsQQEAAaM99nmSTrQM8P4rwzil7U/ O/bmip0ZVL63gz7m5T+ez6cbH7IG+NSpiMNc/pTJ0nFolMHDNBjj7MfM5wIZa9kp t3rZpiqoNliu1kXNkmA5cyZaoby0k9gHrLN9jUmnvMXOofQFwpn57MYIpneYUIXl uzyt7/gH2wYEloNQ4tc9Kw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1732994548; x= 1733080948; bh=DbxgQ4Kjs0tUePSvUNHLOCmsvmfn0sM72/EFtUpTzpk=; b=I bo/6lPkt6/qOQJ8MsKsptEvITlA2K2dfX8K8GC/HclxfY3xJ1Lu5Lf2T4aOG6hf4 G+dBfZAWPmN5JJD51xyAeYIcwfULrSX2GHmLhRejhta+ssS8lsUzfa3tu+4LeA5k HXiMYLzg/0xBQWLIhhIiGFW458lNEQo3Fon+Z9wfeLJXFNYTaFKq14dnuXeAm8uU tx63cZB+dLbp3GNPHcAvBwRAFxQmIKJAmR4Vwx4wO9XX58ByLHAcvvOkTmxdya9Q Frs/pUllQVQC11Ux13B80FZ+2GPs7Sp8Hu+W5HRkVnfMy7FHD0/EMMF9Wkn62FR6 STSEOKB2hEzKrEAtAO4Vg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrheehgdduvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepofggfffhvfevkfgjfhfutgfgsehtqhertdertdej necuhfhrohhmpedfkfgrnhcugfhurhgvfdcuoehirghnsehrvghtrhhoshhpvggtrdhtvh eqnecuggftrfgrthhtvghrnhepgfehfeeuvdeutefggffhueejjeehvdfhueduiedtfefh teektdfgkeefiefhleeunecuffhomhgrihhnpehgihhthhhusgdrtghomhenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehirghnsehrvghtrhho shhpvggtrdhtvhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtg hpthhtohephhgvlhhpqdhguhhigiesghhnuhdrohhrghdprhgtphhtthhopegtshgrnhht ohhssgesihhnvhgvnhhtrghtihdrohhrghdprhgtphhtthhopehmrghrvghksehmrghrvg hkphgrshhnihhkohifshhkihdrphhl X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id F063118A0068; Sat, 30 Nov 2024 14:22:27 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Sat, 30 Nov 2024 19:22:07 +0000 From: "Ian Eure" To: =?UTF-8?Q?Marek_Pa=C5=9Bnikowski?= , "Guix Help" Cc: "Cayetano Santos" Message-Id: <30911cd4-c634-43a7-b372-f20a05caa3ac@app.fastmail.com> In-Reply-To: <2293001.iZASKD2KPV@aisaka> References: <2208743.irdbgypaU6@aisaka> <87o71w4mry.fsf@inventati.org> <2293001.iZASKD2KPV@aisaka> Subject: Re: Packaging Proton Bridge: cryptic compilation failure Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=202.12.124.156; envelope-from=ian@retrospec.tv; helo=fhigh-b5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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: 69CD57B2F2 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.26 X-Spam-Score: -6.26 X-TUID: ZPQKWDwbh+ma Hi Marek, 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 =20 > wrote: >> > Hello Guix >> >=20 >> > I am towards the end of a first pass of packaging the Proton Bridge >> > program to access my Proton Mail with KMail. >> >=20 >> > I have worked through and learned about many peculiarities of Golan= g 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 c= ryptic >> > to me, as its log contains zero error messages. It works fine unti= l I >> > get a "build >> > failed" summary: >> The debug for dummies manual advices using the "--keep-failed" flag w= hen >> you build packages. Using a shell container helps to understand this = kind >> of cryptic messages too. >>=20 >> -- >> Cayetano Santos > > > Thank you Ian, Cayetano for swiftly reminding me to Read The Manual. = I was so=20 > tired with constant tweaking of package after package, that I forgot t= o go to=20 > the basics. > > I learned that I can source variables to emulate the build environment= , in=20 > which I issued the same command that go build system uses to build the=20 > package. Here is the result, much cleaner with the interesting stuff = right at=20 > the end: > > [...] > # github.com/ProtonMail/go-crypto/openpgp/packet > /tmp/guix-build-go-github-com-protonmail-go-proton-api-0.4.0.drv-0/src/ > github.com/ProtonMail/go-crypto/openpgp/packet/packet_sequence.go:12:9= 2:=20 > undefined: errors.ErrMalformedMessage > /tmp/guix-build-go-github-com-protonmail-go-proton-api-0.4.0.drv-0/src/ > github.com/ProtonMail/go-crypto/openpgp/packet/packet_sequence.go:13:1= 6:=20 > undefined: errors.ErrMalformedMessage > /tmp/guix-build-go-github-com-protonmail-go-proton-api-0.4.0.drv-0/src/ > github.com/ProtonMail/go-crypto/openpgp/packet/packet_sequence.go:94:1= 7:=20 > undefined: errors.ErrMalformedMessage > /tmp/guix-build-go-github-com-protonmail-go-proton-api-0.4.0.drv-0/src/ > github.com/ProtonMail/go-crypto/openpgp/packet/config_v5.go:6:2: undef= ined:=20 > V5Disabled > /tmp/guix-build-go-github-com-protonmail-go-proton-api-0.4.0.drv-0/src/ > github.com/ProtonMail/go-crypto/openpgp/packet/marker.go:27:33: undefi= ned:=20 > packetTypeMarker > /tmp/guix-build-go-github-com-protonmail-go-proton-api-0.4.0.drv-0/src/ > github.com/ProtonMail/go-crypto/openpgp/packet/padding.go:20:33: undef= ined:=20 > packetPadding > > I remember faking a Proton=E2=80=99s fork with the upstream package be= cause GitHub=20 > failed to find it. It could be the one, or not. At least I have a th= read to=20 > follow now; and a new tool for deep inspection. > 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_sequence.go#L9 ...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 n= ever dealt with packaging beyond stuffing static binaries into Docker co= ntainers -- but it feels at least close to the root of the issue to me. -- Ian