From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qKlaFhxpk2DRXgAAgWs5BA (envelope-from ) for ; Thu, 06 May 2021 05:57:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kA15ERxpk2AsVAAAbx9fmQ (envelope-from ) for ; Thu, 06 May 2021 03:57:16 +0000 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 C619715F59 for ; Thu, 6 May 2021 05:57:15 +0200 (CEST) Received: from localhost ([::1]:34920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leV8S-00022k-WA for larch@yhetil.org; Wed, 05 May 2021 23:57:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leV8I-00022e-QN for guix-patches@gnu.org; Wed, 05 May 2021 23:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leV8I-0000gn-H2 for guix-patches@gnu.org; Wed, 05 May 2021 23:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leV8I-00089M-Fs for guix-patches@gnu.org; Wed, 05 May 2021 23:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#45476] [PATCH] gnu: syncthing: Update to 1.12.0. Resent-From: Tom Willemse Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 06 May 2021 03:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45476 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Famulari Cc: 45476@debbugs.gnu.org Received: via spool by 45476-submit@debbugs.gnu.org id=B45476.162027338031319 (code B ref 45476); Thu, 06 May 2021 03:57:02 +0000 Received: (at 45476) by debbugs.gnu.org; 6 May 2021 03:56:20 +0000 Received: from localhost ([127.0.0.1]:36352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leV7c-000895-BO for submit@debbugs.gnu.org; Wed, 05 May 2021 23:56:20 -0400 Received: from r0-4.smtpout1.paris1.alwaysdata.com ([188.72.70.8]:48199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leV7Y-00088z-CP for 45476@debbugs.gnu.org; Wed, 05 May 2021 23:56:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alwaysdata.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NYkp7CCnhXjzt05phQ2I0en7nSR3c+G1nzOZhZFEHkI=; b=gCUs4TWCOu2tp71S5YE2wnjz/ netYp6qAocjLSMxMQvQPrbUVj1KoBVqeoeJfiD2tQH/VY7ypYMY+qe8/K6hwSqzh3vWVdBcv0sKZg Hxda97bkskjkDzVky1mnmlp3E4NrC1hB7SWq3Aojo+rjui/bOCZhjHuDaBTs94ipI+1eg=; Received: from s0106441c12122d09.vf.shawcable.net ([174.1.63.31] helo=localhost) by smtpout1.paris1.alwaysdata.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1leV7U-0005dH-Fa; Thu, 06 May 2021 05:56:12 +0200 From: Tom Willemse In-Reply-To: (Leo Famulari's message of "Tue, 16 Feb 2021 15:50:36 -0500") References: <20201227212304.19409-1-dftxbs3e@free.fr> <87czx0olyn.fsf@ryuslash.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Wed, 05 May 2021 20:56:09 -0700 Message-ID: <874kfgy0py.fsf@ryuslash.org> MIME-Version: 1.0 Content-Type: text/plain X-alwaysdata-ID: 20686808 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620273436; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=NYkp7CCnhXjzt05phQ2I0en7nSR3c+G1nzOZhZFEHkI=; b=i6Fy1dkpVGMg0urYvxeIdrABPaRpGhP/R8B3TPegKr56vf7NRfwQJrw01+fDyGUBxPBuSG dWGxQCSTUPmXaT5/koS+End34+IE80U5Ilx5/Luq823ZvDrB80Ens9G7Di4UESxwtpF0fj 3Ha1wmo3KTLPpuLx9ba9wZDAw2xGUFyAB78YzJRd2teNhjiuwCUjK2BjUweGRpHQ5AlvlB c/sqYyq+4oZHB1obhM7ZIqC72uVB3IT1EaTqZXVJwi9gpaHDuIluVmrLaM5wMUHkVBeGN2 qXo8blyUspZsAYuFviWVaOgJVKTgRwY1x5+0DMWOeFR00z5mCH5WGuSLEiPKsw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620273436; a=rsa-sha256; cv=none; b=GC5axB5FXb3SoCzz2XMqp+RlyV1ZHKh3Oj5z0UcK0kOCE0lFjvJYeoQMz8AncPh6AZ9nXg QFfpEXIKMkYmmJ/rFJjG6DVyntjr1aOLp9JtoLDltsCusxOct5kP8uEEcmYX/67g2qmhiL kJxAzqB4WMSqu33B9z5UtqsRIGKbhHU+PdOoS9XRTM43a0HSMW8pw2BTNKuia+jtm16x9x 7CExX1fTySXyVQhATCtNgFl+hhO3jQ5pj4BuDIVXauueKlpeAb5a/Oh8FpXpXvvHZwPCPe L9c3fDTBXiR1o2WwOqmI8sdqBAmdpRZoCsOFkq4kmYFgUJfgr0UKKKnh9T5f7A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=alwaysdata.net header.s=default header.b=gCUs4TWC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=ryuslash.org (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 0.14 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=alwaysdata.net header.s=default header.b=gCUs4TWC; dmarc=fail reason="SPF not aligned (relaxed)" header.from=ryuslash.org (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: C619715F59 X-Spam-Score: 0.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: oUEJN0k/HVtv Hey Leo, Leo Famulari writes: > On Mon, Feb 15, 2021 at 05:11:44PM -0800, Tom Willemse wrote: >> I've been trying on my own to see if I could update Syncthing to 1.12.0 >> since I'm trying to switch from Archlinux to Guix. It's been a learning >> experience but I keep getting stuck since I ultimately don't know what >> I'm doing, I've only been using Guix off-and-on for a short while. >> >> I would really love for this to be done, and since I see in this thread >> that someone is needed to work on the go-build-system for this, I would >> be happy to try my best under the guidance of Leo. Unless you've posted >> to guix-devel already and have found someone else to do it, in which >> case I'd still be happy to help out in whichever way I can. >> >> Please let me know what I can do to help out with this. > > Thanks for your interest! > > As far as I know, nobody has started working on this problem yet. So I've been looking at this and I just wanted to run what I know so far by you. I don't know if someone else has since picked this up and finished this, but in case nobody has, this is what I have found so far. So we can set the GO111CACHE to on, and set the GOMODCACHE where we want it and potentially link in all of the inputs that it needs. For now other than getting everything to have the right name doesn't seem like such a big problem. But it's that name that I think might get in the way. So the Go mod cache is a directory structure in which each module a program (or library) depends on is contained. Each module is under a directory containing both the module's name and its version. For certain packages this means that it doesn't just contain any version, but it contains a partial hash of which submit it's based on and also the date on which it was committed. This doesn't seem impossible to do, we should have most of that information available, possibly we can get at the rest. The only thing I was thinking is that this might cause an explosion of packages to be maintained, because we won't be able to just have the latest version and have everything depend on that, we'll have to have all of the versions that any of the software in the packages requires. If there is some Guix magic that we could use here to make this maintainable I'd love to know, but for now it looks like the minimum we would need to maintain is a list of (version, hash, dependencies). On the other hand if this was expected and we want to do this, I can happily keep trying to get this to work. Cheers, Tom P.S.: I noticed that the original point of this issue was to update syncthing to 1.12.0. The current version in Guix is 1.15.1 (I think you were the one to update it), so technically that part of this issue is done.