From unknown Fri Jun 13 10:47:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#50071 <50071@debbugs.gnu.org> To: bug#50071 <50071@debbugs.gnu.org> Subject: Status: [leo@famulari.name: Re: 02/02: gnu: syncthing: Prepare for cross-compiling.] Reply-To: bug#50071 <50071@debbugs.gnu.org> Date: Fri, 13 Jun 2025 17:47:11 +0000 retitle 50071 [leo@famulari.name: Re: 02/02: gnu: syncthing: Prepare for cr= oss-compiling.] reassign 50071 guix submitter 50071 Leo Famulari severity 50071 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 15 16:45:11 2021 Received: (at submit) by debbugs.gnu.org; 15 Aug 2021 20:45:11 +0000 Received: from localhost ([127.0.0.1]:47854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFN0E-0006K2-NZ for submit@debbugs.gnu.org; Sun, 15 Aug 2021 16:45:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:53680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFN08-0006JG-Js for submit@debbugs.gnu.org; Sun, 15 Aug 2021 16:45:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFN08-0000E6-BU for bug-guix@gnu.org; Sun, 15 Aug 2021 16:45:00 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:58625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFN06-0006cG-OI for bug-guix@gnu.org; Sun, 15 Aug 2021 16:45:00 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3C3E05C0069; Sun, 15 Aug 2021 16:44:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 15 Aug 2021 16:44:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=mesmtp; bh=yKl0o4HZiYVVQ1zccn0uIWq Vu8q+7xQr8vFfI1DT+wo=; b=f0Wlx8cilUJS0lBXmmofF3bUJZr3TqUOfEOO/qO CtYYWuuyfYJSqDUrDK7Z39uTWsHPUuX4LPyo23b7O9Q8xbpNtfV9u7ghgIPH/vfE FDtaXgUn3//gyVIS4sJO25CKJnPC7ooNohyrjewDcCxVh9d1Opi92bP6CvZVkqcB lDow= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=yKl0o4 HZiYVVQ1zccn0uIWqVu8q+7xQr8vFfI1DT+wo=; b=lq8MTHIQ0IUGeMxF9AvFxs +HE90Mgrs9DygaPLYD2MyvsNRIB8SvurKNz6D+MsT3h3BVrqXNIdS7pDqsUCRk3G UDPA9GGuKu2aaLHx+Iz3kDMEudwWHLCkq0xUMe+zfq/XCZ0wYSUw8/hDFykbVLnB Mg7uOtSWf18Hl8v2PXXH3bDaDeSglXszHZWhfJx/S4ph1EFqn7NAGtuH7t70jMCV HcMHnPTTD+xude1L0tK6wUeAPJ94QiJY49CR3ZZ+b3Cy0H9Zu/r4yhrxVIEA46zL Op7jkt6pUedH8nXPqf4eHR3H+FkQ+nYy0hSNdqJg86sLGd8K9k0O1CGEMu5AFXOA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrkeelgdduhedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugfgsehtkeertd dttdejnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhlrghr ihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeelkeelleejveffjeduleduueejgeefle eklefgteeiieevffeggeetfefhkefgieenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 15 Aug 2021 16:44:57 -0400 (EDT) Date: Sun, 15 Aug 2021 16:44:56 -0400 From: Leo Famulari To: bug-guix@gnu.org Subject: [leo@famulari.name: Re: 02/02: gnu: syncthing: Prepare for cross-compiling.] Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=66.111.4.27; envelope-from=leo@famulari.name; helo=out3-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_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) I meant to send this to bug-guix... ----- Forwarded message from Leo Famulari ----- Date: Sun, 15 Aug 2021 16:42:19 -0400 From: Leo Famulari To: guix-devel@gnu.org Cc: Efraim Flashner Subject: Re: 02/02: gnu: syncthing: Prepare for cross-compiling. On Mon, Apr 26, 2021 at 02:33:56PM -0400, guix-commits@gnu.org wrote: > efraim pushed a commit to branch master > in repository guix. > > commit b33f5d7ff0627424a06fd0416761cd81c350e20a > Author: Efraim Flashner > AuthorDate: Mon Apr 26 21:30:15 2021 +0300 > > gnu: syncthing: Prepare for cross-compiling. > > * gnu/packages/syncthing.scm (syncthing)[arguments]: Add custom > 'pre-build phase to not set a local GOBIN directory. Adjust custom > 'build and 'install phases accordingly. This commit broke splitting the package into two outputs "out" and "utils". When everything is working, the utils output should look like this: ------ $ tree /gnu/store/zansw6f7i61glpa2f5hsbpazwg6qfi2v-syncthing-1.15.1-utils /gnu/store/zansw6f7i61glpa2f5hsbpazwg6qfi2v-syncthing-1.15.1-utils ├── bin │   ├── stcompdirs │   ├── stcrashreceiver │   ├── stdisco │   ├── stdiscosrv │   ├── stevents │   ├── stfileinfo │   ├── stfinddevice │   ├── stfindignored │   ├── stgenfiles │   ├── stindex │   ├── strelaypoolsrv │   ├── strelaysrv │   ├── stsigtool │   ├── stvanity │   ├── stwatchfile │   ├── uraggregate │   └── ursrv └── share ├── doc │   └── syncthing-1.15.1 │   └── LICENSE └── man ├── man1 │   ├── stdiscosrv.1.gz │   └── strelaysrv.1.gz ├── man5 │   ├── syncthing-config.5.gz │   └── syncthing-stignore.5.gz └── man7 ├── syncthing-bep.7.gz ├── syncthing-device-ids.7.gz ├── syncthing-event-api.7.gz ├── syncthing-faq.7.gz ├── syncthing-globaldisco.7.gz ├── syncthing-localdisco.7.gz ├── syncthing-networking.7.gz ├── syncthing-relay.7.gz ├── syncthing-rest-api.7.gz ├── syncthing-security.7.gz └── syncthing-versioning.7.gz 8 directories, 33 files ------ The broken state looks like this: ------ $ tree /gnu/store/b1jz5rnwjgzvl7hd99rd1r5958rwxh5x-syncthing-1.15.1-utils /gnu/store/b1jz5rnwjgzvl7hd99rd1r5958rwxh5x-syncthing-1.15.1-utils └── share ├── doc │   └── syncthing-1.15.1 │   └── LICENSE └── man ├── man1 │   ├── stdiscosrv.1.gz │   └── strelaysrv.1.gz ├── man5 │   ├── syncthing-config.5.gz │   └── syncthing-stignore.5.gz └── man7 ├── syncthing-bep.7.gz ├── syncthing-device-ids.7.gz ├── syncthing-event-api.7.gz ├── syncthing-faq.7.gz ├── syncthing-globaldisco.7.gz ├── syncthing-localdisco.7.gz ├── syncthing-networking.7.gz ├── syncthing-relay.7.gz ├── syncthing-rest-api.7.gz ├── syncthing-security.7.gz └── syncthing-versioning.7.gz 7 directories, 16 files ------ ----- End forwarded message ----- From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 22 14:43:03 2021 Received: (at 50071) by debbugs.gnu.org; 22 Aug 2021 18:43:03 +0000 Received: from localhost ([127.0.0.1]:39788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHsQs-0007G5-Nr for submit@debbugs.gnu.org; Sun, 22 Aug 2021 14:43:03 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:34169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHsQm-0007Fe-NR for 50071@debbugs.gnu.org; Sun, 22 Aug 2021 14:42:57 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 860EB320076F; Sun, 22 Aug 2021 14:42:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 22 Aug 2021 14:42:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:subject:message-id:mime-version:content-type; s= mesmtp; bh=0MZGMlKoaZH7tuayTijIG0ayXF3zrakTGOdKE45ezwg=; b=gicly 9mp8WGUeBRhQDSLXJOe793ylBsePbPJjN9Nnype4pXpLEHq9B/vN7icMiwn+0I6Q Qy3E1H/b0TM7xSAFYU0cUONWvk9Otzcx1u0m0qrkakZur5Osp/SpyqeYuDlacX0Y Etym0Ezes8F4eLrCEC+FocdvK2BprRAWAow8n0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=0MZGMlKoaZH7tuayTijIG0ayXF3zr akTGOdKE45ezwg=; b=twKqTl87awyOSVr3XlkkqHwcyNyO0ocJFCIYmfCKY0zlP m7RtzzNn13vCoZ7u2stvyKXRc8w4tVepPt7izbyrGkyA/wKsUGrCARn5G/2f3+uc BVszsKgrywJEdqczOPjLESC0HN4IC8pR628dHFpDnZyPOkxoQx61UpmvSPKTQQeZ MBF/aBNTUY9KsRXlY+dV/RvvD8wyBwuUsuxq8GHeWCAAZE5aqntmIkTdefctHtrC 2OGeUvSRM+oC02NbsjCIuKZrjCM6LGncq5cIEtWqJjKvjm3sNaFKjwd4c5cOn+FM jXZiBlBkJ9k3xmkevY61tFn7vzkUYE1BidA0aMYLw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddtfedguddvkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtggusehttdertd dttddvnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhlrghr ihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeffhedtfeeftddvueeifeduueejvdekhe ffueeijefgvdetleegheegfeehheduudenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <50071@debbugs.gnu.org>; Sun, 22 Aug 2021 14:42:45 -0400 (EDT) Date: Sun, 22 Aug 2021 14:42:43 -0400 From: Leo Famulari To: 50071@debbugs.gnu.org Subject: Re: 02/02: gnu: syncthing: Prepare for cross-compiling. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 50071 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Quoting from Efraim on #guix: "the go cross-build error I was seeing is this: go install: cannot install cross-compiled binaries when GOBIN is set" From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 22 16:30:18 2021 Received: (at 50071) by debbugs.gnu.org; 22 Aug 2021 20:30:19 +0000 Received: from localhost ([127.0.0.1]:39858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHu6k-0001fT-H5 for submit@debbugs.gnu.org; Sun, 22 Aug 2021 16:30:18 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:47813) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHu6h-0001W6-5q for 50071@debbugs.gnu.org; Sun, 22 Aug 2021 16:30:16 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 08532320030E; Sun, 22 Aug 2021 16:30:08 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 22 Aug 2021 16:30:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=GEEjZPHy9iszVnOAPRbjx6HC 1i5aQSFB41R/KGInRJg=; b=g3K61mcXpPb/tDI+Q2BFqetYHGia0wGKA2G2jw2C Zy8F9rv0dkHq7hZjNn1lE7jv2ThutEMMh2u7sNRlr89ZvUArrTh3m01lD5LTbNz4 OcIy1mAu9uwAAI0db0LAo3xexnM19MbKx+Au+wbC/INdgf7wjseomZlUP8Ctp0pi YaU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=GEEjZP Hy9iszVnOAPRbjx6HC1i5aQSFB41R/KGInRJg=; b=OHJDQsTG4dLpFMSSGJSO77 E9gXh1EicQ2qUDNC3qADO0ohsLFetNkVFGyKIsWyGeWDBrK+tgjNz3bWlORqFElD AMmIN6+vQB+6MuiHrbofgqzphMqzz8V7BkBmmwKHTRUeprQUsDjzFFbrCWcVYpjp Ft2wFXjandi4F7EzArNyB6pcTe2RebP1VCQUAXYWqbEOAp8i7N4hkNtE0MmWlToO 583OK+lifE9+i8Dx4+ZrqBJes1+FS3hK+ml6Y5KTjQ8JN3ohHFHW7mTygpRKch6Y 6SYg7UeMFvqKjz8bgMOj2GqwFc3CixfziYsrhKjy72kqHyjh4i6jvc3KmSk8Y1qw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddtfedgudeglecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeekjefgvdekveelkedttdeiudekfe efvdfffeekueetkedtieejgfeffedtuedtkeenucffohhmrghinhepshihnhgtthhhihhn ghdrnhgvthenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <50071@debbugs.gnu.org>; Sun, 22 Aug 2021 16:30:08 -0400 (EDT) Date: Sun, 22 Aug 2021 16:30:03 -0400 From: Leo Famulari To: 50071@debbugs.gnu.org Subject: Re: 02/02: gnu: syncthing: Prepare for cross-compiling. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 50071 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sun, Aug 22, 2021 at 02:42:43PM -0400, Leo Famulari wrote: > Quoting from Efraim on #guix: > > "the go cross-build error I was seeing is this: go install: cannot install cross-compiled binaries when GOBIN is set" Upstream gives instructions on how to cross-compile Syncthing: ------ `go run build.go build` Builds just the named target, or syncthing by default, to the current directory. Use this when cross compiling, with parameters for what to cross compile to: go run build.go -goos linux -goarch 386 build. ------ https://docs.syncthing.net/dev/building.html#subcommands-and-options