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 2LlHMANCV2cbjAAAqHPOHw:P1 (envelope-from ) for ; Mon, 09 Dec 2024 19:16:19 +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 2LlHMANCV2cbjAAAqHPOHw (envelope-from ) for ; Mon, 09 Dec 2024 20:16:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b=Zgz34Z75; 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=1733771779; a=rsa-sha256; cv=none; b=KGQ2bwCx1nC0YfNguh2jZCCc4fLWBz62U1YG8sD8c8kSR/7t8z2/9FD7Md0m8BKGm9vUhR LyyW4FAHbE3ut9bblqNbnHOy/sxYxsqKDe28avgADXWO9CHnXXTQm4+KH1fsy4Jg+kmJ54 9veCHgwoxaKPBggUtE01GqbumoWabnrzKFMKV6BoKkCB/NIPO8UPz+T+fYVm5WqCcXo+2a zmniDHJkqmAoYW9l/2WHt6L9Dd3zJEtsPmls0EWCAwWEFNb8CJC2pL5Gyotw346yF58LBE zJQrbRv1kn0gQC/+VJtm+25b6l7k0F3Y6InFwYR2wDgrhkDHqcJbG/HXr9VrlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=marekpasnikowski.pl header.s=dkim header.b=Zgz34Z75; 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=1733771779; 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=F9kZ0W/W1sg+AVE9CJGPGO/BtdAeNZ3YlkEjT0wuwBk=; b=n/FGGvbAoLJqkGL0Wt0LZJuDKKGnm2P9yb4ZUEU6UlUqExtfdypoLAy6gOiohpANGL+/5Y SLLCmUJ8aCKrjM97urVmiXTXhkeOU8qd6HusqLtz7tiafvSEW6DtkFIChduzDw+oTLURyM WkQIrJnV3rxouzG/MuiXIiPgJ2g+QAfKsoQgIFh6m1jMlJsD84DslTJ1b/by3VXwah923/ kyAukw3Jjs0k8OTLoxsOP8xmlUsSE/0NzcVXH8LHXw/DEGT0RDd7YUVoKHuFwyHIsuhaGJ hmppzyzERq8OR/yCIGE+2rCW/Updb6AIGi7dSqGRSXhHKCOIB7OM7JheRAtKcA== 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 37265799C8 for ; Mon, 09 Dec 2024 20:16:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKjEU-0001pG-Bw; Mon, 09 Dec 2024 14:15:51 -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 1tKjE6-0001n7-Iq for help-guix@gnu.org; Mon, 09 Dec 2024 14:15:42 -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 1tKjE2-0002TJ-Ly for help-guix@gnu.org; Mon, 09 Dec 2024 14:15:26 -0500 Received: from localhost (localhost.local [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id ffd75422; Mon, 9 Dec 2024 19:15:18 +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=x/27xT6jDNs2xoP2S4nE1uKFD rers2paF9Um3Ura83g=; b=Zgz34Z75GQVWRcyTm41jY/9hTJV8X7tjROk0dkAU0 LPm+iAH2GPGwbdo/mzgT4RaSPR6w96IEXivTwwjrnmaY68EaQIkDjGA3uZ18ILzf /0azd7vVZ/aPcdYBCJ8d+a5WxqCZXDNQOAirUAiQ9wk61kbqP5IXQwRzRdKMKK1n buVHELRB6Zeo1TS432Ee5iB7CwLQbHTcxs2tc0vVjM2Bg/VgnzFi506oZpS6bLrE tBxVP/NXVkZMEs6GR6YJB4G9u0QqWfx1ZCon/dfR9UlNHWS6FjZKsxDZMpeXaUmJ Rd0rlY+A1GFxRWUM20a+zz4Cc5+4y/wpjeCFOMOXryh2w== Received: by localhost (OpenSMTPD) with ESMTPSA id adc6fc01 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 9 Dec 2024 19:15:16 +0000 (UTC) From: Marek =?utf-8?B?UGHFm25pa293c2tp?= To: Ian Eure , help-guix@gnu.org Subject: Re: Packaging Proton Bridge: Progress Report #1 Date: Mon, 09 Dec 2024 20:15:07 +0100 Message-ID: <6002705.MhkbZ0Pkbq@aisaka> In-Reply-To: <28ee1d75-d234-4dae-b822-ac787472833c@app.fastmail.com> References: <2208743.irdbgypaU6@aisaka> <8460874.T7Z3S40VBb@aisaka> <28ee1d75-d234-4dae-b822-ac787472833c@app.fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1811390.VLH7GnMWUR"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 81.190.248.246 (failed) 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: 37265799C8 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -2.68 X-Spam-Score: -2.68 X-TUID: UCNNIsJ8vhpI --nextPart1811390.VLH7GnMWUR Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Marek =?utf-8?B?UGHFm25pa293c2tp?= To: Ian Eure , help-guix@gnu.org Subject: Re: Packaging Proton Bridge: Progress Report #1 Date: Mon, 09 Dec 2024 20:15:07 +0100 Message-ID: <6002705.MhkbZ0Pkbq@aisaka> In-Reply-To: <28ee1d75-d234-4dae-b822-ac787472833c@app.fastmail.com> MIME-Version: 1.0 On poniedzia=C5=82ek, 9 grudnia 2024 17:52:36 CET you wrote: > Hi Marek, >=20 > On Mon, Dec 9, 2024, at 4:47 PM, Marek Pa=C5=9Bnikowski wrote: > > Does this mean I will have to `make` the project before `building go`? >=20 > I'm not sure how the go-build-system interacts with stuff like this, or w= hat > complexity the Makefile may bring. Probably the simplest thing is to add= a > build phase which executes the utility script at the corresponding point = in > your build, but this is ultimately your judgement call. >=20 > -- Ian I copied and extended the invocation of "make" from the gnu-build-system: (arguments (list #:phases '(modify-phases %standard-phases (add-before 'build 'make-project (lambda* (#:key (make-flags (list "build-nogui")) (parallel-build? #t) #:allow-other-keys) (invoke "find" "." "-name" "Makefile") (invoke "ls" "-al" "./src/github.com/ProtonMail/proton-bridge/v3") (apply invoke "make" "-e" "-C" "./src/github.com/ProtonMail/proton-bridge/v3" "--debug=3Dbasic" `(,@(if parallel-build? `("-j" ,(number->string (parallel-job-count= ))) '()) ,@make-flags))))) #:embed-files '(list "children" "nodes" "text") #:unpack-path "github.com/ProtonMail/proton-bridge/v3" #:import-path "github.com/ProtonMail/proton-bridge/v3/cmd/Desktop- Bridge")) I am getting some kind of progress, pasted below. Before continuing, I wou= ld=20 appreciate confirmation whether I am on the right track. Some lines in the= =20 output state that some files do not exist. Having no experience actually=20 working with make files, I am not sure if this is expected. Should I not worry about the "file does not exist" message class? Should I change anything in my invocation of "make"? starting phase `make-project' =2E/src/github.com/flynn-archive/go-shlex/Makefile =2E/src/github.com/chzyer/logex/Makefile =2E/src/github.com/yuin/goldmark/Makefile =2E/src/github.com/yuin/goldmark/_benchmark/cmark/Makefile =2E/src/github.com/hashicorp/go-multierror/Makefile =2E/src/github.com/cpuguy83/go-md2man/Makefile =2E/src/github.com/vmihailenco/tagparser/v2/Makefile =2E/src/github.com/vmihailenco/msgpack/v5/Makefile =2E/src/github.com/getsentry/sentry-go/Makefile =2E/src/github.com/mattn/go-sqlite3/_example/mod_vtable/Makefile =2E/src/github.com/mattn/go-sqlite3/_example/custom_driver_name/Makefile =2E/src/github.com/mattn/go-sqlite3/_example/mod_regexp/Makefile =2E/src/github.com/prometheus/procfs/Makefile =2E/src/github.com/Masterminds/semver/v3/Makefile =2E/src/github.com/elastic/go-sysinfo/Makefile =2E/src/github.com/cloudflare/circl/Makefile =2E/src/github.com/pkg/errors/Makefile =2E/src/github.com/ProtonMail/proton-bridge/v3/Makefile =2E/src/google.golang.org/grpc/Makefile =2E/src/golang.org/x/text/collate/tools/colcmp/Makefile total 368 drwxr-xr-x 12 nixbld nixbld 4096 Jan 1 1970 . drwxr-xr-x 3 nixbld nixbld 4096 Dec 9 18:55 .. =2Dr--r--r-- 1 nixbld nixbld 26 Jan 1 1970 .gitattributes drwxr-xr-x 3 nixbld nixbld 4096 Jan 1 1970 .github =2Dr--r--r-- 1 nixbld nixbld 576 Jan 1 1970 .gitignore =2Dr--r--r-- 1 nixbld nixbld 1469 Jan 1 1970 .gitlab-ci.yml =2Dr--r--r-- 1 nixbld nixbld 98 Jan 1 1970 .gitmodules =2Dr--r--r-- 1 nixbld nixbld 10074 Jan 1 1970 .golangci.yml =2Dr--r--r-- 1 nixbld nixbld 131 Jan 1 1970 .grype.yaml =2Dr--r--r-- 1 nixbld nixbld 3052 Jan 1 1970 BUILDS.md =2Dr--r--r-- 1 nixbld nixbld 498 Jan 1 1970 CONTRIBUTING.md =2Dr--r--r-- 1 nixbld nixbld 18002 Jan 1 1970 COPYING_NOTES.md =2Dr--r--r-- 1 nixbld nixbld 118347 Jan 1 1970 Changelog.md =2Dr--r--r-- 1 nixbld nixbld 32473 Jan 1 1970 LICENSE =2Dr--r--r-- 1 nixbld nixbld 16157 Jan 1 1970 Makefile =2Dr--r--r-- 1 nixbld nixbld 4695 Jan 1 1970 README.md =2Dr--r--r-- 1 nixbld nixbld 141 Jan 1 1970 TODO.md drwxr-xr-x 2 nixbld nixbld 4096 Jan 1 1970 ci drwxr-xr-x 4 nixbld nixbld 4096 Jan 1 1970 cmd drwxr-xr-x 3 nixbld nixbld 4096 Jan 1 1970 dist drwxr-xr-x 3 nixbld nixbld 4096 Jan 1 1970 extern =2Dr--r--r-- 1 nixbld nixbld 6641 Jan 1 1970 go.mod =2Dr--r--r-- 1 nixbld nixbld 74635 Jan 1 1970 go.sum drwxr-xr-x 35 nixbld nixbld 4096 Jan 1 1970 internal drwxr-xr-x 14 nixbld nixbld 4096 Jan 1 1970 pkg drwxr-xr-x 2 nixbld nixbld 4096 Jan 1 1970 release-notes drwxr-xr-x 7 nixbld nixbld 4096 Jan 1 1970 tests drwxr-xr-x 14 nixbld nixbld 4096 Dec 9 18:55 utils GNU Make 4.4.1 Built for x86_64-unknown-linux-gnu Copyright (C) 1988-2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Reading makefiles... make: Entering directory '/tmp/guix-build-go-github-com-protonmail-proton- bridge-3.15.1.drv-0/src/github.com/ProtonMail/proton-bridge/v3' Updating makefiles.... Updating goal targets.... File 'build-nogui' does not exist. File 'proton-bridge' does not exist. File 'gofiles' does not exist. File 'internal/bridge/credits.go' does not exist. Must remake target 'internal/bridge/credits.go'. cd ./utils/ && ./credits.sh bridge File 'build-launcher' does not exist. Must remake target 'build-launcher'. go build -tags=3D'' -ldflags '-X github.com/ProtonMail/proton-bridge/v3/ internal/constants.Version=3D3.15.1+git -X github.com/ProtonMail/proton-bri= dge/ v3/internal/constants.Revision=3DNOGIT -X github.com/ProtonMail/proton-brid= ge/ v3/internal/constants.Tag=3DNOGIT -X github.com/ProtonMail/proton-bridge/v3/ internal/constants.BuildTime=3D2024-12-09T18:55:33+0000 -X "github.com/ ProtonMail/proton-bridge/v3/internal/constants.FullAppName=3DProton Mail Br= idge"=20 =2DX github.com/ProtonMail/proton-bridge/v3/internal/constants.BuildEnv=3Dd= ev' -o=20 "proton-bridge" "/tmp/guix-build-go-github-com-protonmail-proton- bridge-3.15.1.drv-0/src/github.com/ProtonMail/proton-bridge/v3/cmd/launcher= /" egrep: warning: egrep is obsolescent; using grep -E egrep: warning: egrep is obsolescent; using grep -E egrep: warning: egrep is obsolescent; using grep -E File 'build-nogui' does not exist. File 'proton-bridge' does not exist. File 'gofiles' does not exist. Must remake target 'gofiles'. Successfully remade target file 'gofiles'. Must remake target 'proton-bridge'. go build -tags=3D'' -ldflags '-X github.com/ProtonMail/proton-bridge/v3/ internal/constants.Version=3D3.15.1+git -X github.com/ProtonMail/proton-bri= dge/ v3/internal/constants.Revision=3DNOGIT -X github.com/ProtonMail/proton-brid= ge/ v3/internal/constants.Tag=3DNOGIT -X github.com/ProtonMail/proton-bridge/v3/ internal/constants.BuildTime=3D2024-12-09T18:55:33+0000 -X "github.com/ ProtonMail/proton-bridge/v3/internal/constants.FullAppName=3DProton Mail Br= idge"=20 =2DX github.com/ProtonMail/proton-bridge/v3/internal/constants.BuildEnv=3Dd= ev' -o=20 "proton-bridge" "./cmd/Desktop-Bridge/" File 'build-nogui' does not exist. # github.com/ProtonMail/proton-bridge/v3/internal/app internal/app/app.go:105:2: unknown field DisableDefaultText in struct liter= al=20 of type "github.com/urfave/cli/v2".BoolFlag internal/app/app.go:113:2: unknown field DisableDefaultText in struct liter= al=20 of type "github.com/urfave/cli/v2".BoolFlag internal/app/app.go:170:4: unknown field DisableDefaultText in struct liter= al=20 of type "github.com/urfave/cli/v2".BoolFlag internal/app/app.go:176:4: unknown field DisableDefaultText in struct liter= al=20 of type "github.com/urfave/cli/v2".BoolFlag internal/app/app.go:182:4: unknown field DisableDefaultText in struct liter= al=20 of type "github.com/urfave/cli/v2".BoolFlag internal/app/app.go:212:3: unknown field DisableDefaultText in struct liter= al=20 of type "github.com/urfave/cli/v2".BoolFlag make: *** [Makefile:111: proton-bridge] Error 1 make: Leaving directory '/tmp/guix-build-go-github-com-protonmail-proton- bridge-3.15.1.drv-0/src/github.com/ProtonMail/proton-bridge/v3' error: in phase 'make-project': uncaught exception: %exception #<&invoke-error program: "make" arguments: ("-e" "-C" "./src/ github.com/ProtonMail/proton-bridge/v3" "--debug=3Dbasic" "-j" "4" "build- nogui") exit-status: 2 term-signal: #f stop-signal: #f>=20 phase `make-project' failed after 74.2 seconds command "make" "-e" "-C" "./src/github.com/ProtonMail/proton-bridge/v3" "-- debug=3Dbasic" "-j" "4" "build-nogui" failed with status 2 =2D- Marek Pasnikowski --nextPart1811390.VLH7GnMWUR 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+OdJrPmC3Q7bYGxIHcRiZ8FAmdXQbsACgkQbYGxIHcR iZ/UgQ//cbgT8XPfPHfUVBbHS3TBSAtKjbazuEwv6ph4Kl/Kq/ngi/sp1HU2/F9h MSIxmfXya8/dqARIedS+gwK5F8niVeTDF6o168Qj7RsoSReq4eCr76RiDch/+HuS yE33tfvfI0Zf5MiIMPkNn0zB6OOVt0xY0XuAODuFV3ybSD43jrbLILwoABwXUPBg EfGMt42374Tgsn5ucoTo5IT6QZnuE8tRMLIRs11SZpEW6xZclPBbGcH+C0CMV6wX U5L6VSoDftvF76z9hVFub9ln7xCxy/fXrkhkr1E6pxdlvqa8147bxvORZAjaQNXy jjCF4CX+tzR2r5kPWS7oi8Os4Wbzst4nSTdp+ZmN5ksZf2EzQrUHgBvcOQIdtyr+ VKmPObTb/73nBreVL+oh+pVS9Mt7oY1Cs4WfU3KA8vdQliiNa3s7ujE2TYpKj4k2 3MG2reJHkYk5SCQwkx4CCndELWZPH8ZkeRJpXbV1v/583BeT+8qjONiH47nNmpyD FZXBHxm/+5oraTO6Txmv4h9xYxAtLOxctTGNIrvDg8p8Y99l0CR6MtwT+wRkgZ5H haqIsBlrQykL17F4BfaJ8aVoip3zh9zE52SMjs01az+6wZ91Y2R7+oqGYwzH9uUJ YtMp7hEDmypt1zTKpMTa53mqsN/LaAgIfh5VDULpox6MALy6wJQ= =rjqV -----END PGP SIGNATURE----- --nextPart1811390.VLH7GnMWUR--