From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GJbyBB63smSe1wAASxT56A (envelope-from ) for ; Sat, 15 Jul 2023 17:11:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KPaqBB63smTCKQAAauVa8A (envelope-from ) for ; Sat, 15 Jul 2023 17:11:26 +0200 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 65EAF446FB for ; Sat, 15 Jul 2023 17:11:25 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; 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=1689433885; a=rsa-sha256; cv=none; b=PsEuTQTEByj5mkvM7c3qfrRlRh/G4XSzEAiGiKHkkjD9hxZv9T54qdChyhf31HfVdsbVTz Aif9KXxEmiXn/pDCEpP9B3VmPeT+cAIP9KPku+/WbQiLxOpb7XO+CxKvvOJ/BjqGBgt4mk mjWz4ZetBc6TU4TmHnLBXIN5q40QNkC9uTy9AOOLjpHEdNMSnAKbO8Grw4GCWitZaL/230 HjOxogTCir88vqWUUeQZfeZtmWKctt3SQI0EdsFoispYAwkv4oqKEtIxttqMcNE2aJm2vb ED74CeFoJ6GdoT/8j1btPhc13iCx7LIFj+6HDdRyzpjeLN5zf/Ia16urYaWpDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=1689433885; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=y6/xj2wawpPS+N8ltrOckNMofCE2vh/pyejSogoEE2o=; b=Hxq3y5ugsXjSAaRyyWli+wtTuj2GPujRHyV0ovaQrDGV43Mn9evb4fRpYj4gNsiTh1vuQb FmBGFCHy5VTE/Fidl4a0i5lKoxeglHqNQ6/+puyuIT5kmeJzupt3WE3u3zn0YAj++Y3q3e v7gc3HqPOt35e1tLCEIxbhWPUDzQK2kXlD4xRDW1NyZa+ujdAXP19q4MtY9R7OqteI7h1l joT2Zvvq8pla5Rxvag75yU5KI/6heeC4L841e692ykbm3ebuOHp8XW001QFnlLXl1e7OlF 4ougfmlqoUQIQNODJNmd5pOauhFNu04K+zqy61lKPXvn9flCkx4At9+evUh3dA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKgv5-0003lP-Lm; Sat, 15 Jul 2023 11:10:51 -0400 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 1qKguv-0003fj-Hp for help-guix@gnu.org; Sat, 15 Jul 2023 11:10:42 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKgur-0007Pd-VM for help-guix@gnu.org; Sat, 15 Jul 2023 11:10:41 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 0CCFB5FA for ; Sat, 15 Jul 2023 17:10:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jKy4pcr1M2mI for ; Sat, 15 Jul 2023 17:10:26 +0200 (CEST) Received: from Amsterdam (unknown [IPv6:2a0d:e487:134f:e495:221e:88ff:fe79:c89]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 2361015D for ; Sat, 15 Jul 2023 17:10:26 +0200 (CEST) Date: Sat, 15 Jul 2023 17:10:59 +0200 From: Paul Collignan To: help-guix@gnu.org Subject: Re: Packaging a rust program with a lot of crates Message-ID: Mail-Followup-To: help-guix@gnu.org References: <20230715160656.0120f6d4.koszko@koszko.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230715160656.0120f6d4.koszko@koszko.org> Received-SPF: pass client-ip=185.233.100.1; envelope-from=paul.collignan@aquilenet.fr; helo=hera.aquilenet.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Spam-Score: -0.91 X-Migadu-Scanner: mx2.migadu.com X-Spam-Score: -0.91 X-Migadu-Queue-Id: 65EAF446FB X-TUID: q8oBhmnuROhE Le Sat, Jul 15, 2023 at 04:06:56PM +0200, Wojtek Kosior a écrit : > Hi Paul! > > That's cool! Please keep in mind, tho that Guix is not an "easy" distro > for novice users. Be ready to spend even more time learning stuff :) Hi, thank you for your answer. > This way the Guix committers will see all the package additions as > separate patches but grouped together in one debbugs issue. There's no > need to wait for one patch to be accepted before sending another in > this case. Looks like I missed the cookbook. All this is described in it, I will look into it seriously before asking another question. Thank you for your summary which will make it easier for me to understand the steps to follow. > Anyway, you just touched one unfortunate truth — when you're a > beginner, any serious task can easily take weeks. > My suggestion is that you start with something easier first. Perhaps an > application that only has 1 or 2 dependencies? Will do, for sure. > > Last question, for my culture, is there a plan to "clean up" old > > packages and dependencies that are no longer used, or will the scm > > files grow indefinitely? > > There might be some misunderstanding here. Guix does allow > 1. for multiple versions of the same package to coexist > 2. and for multiple versions of the same package to share most of the > packaging code via inheritance. > However, the possibility 1. is only exercised for some strategic > packages like gcc. For casual packages, when upstream releases a new > version, some kind Guix contributor sends a patch that changes the > definition in the .scm file to now describe the new version. The old > version need not be explicitly deleted — its place is taken by the new > version :) It is a little bit different for Rust packages, as described in the documentation: "In the rust ecosystem it is common for multiple incompatible versions of a package to be used at any given time, so all package definitions should have a versioned suffix. The versioned suffix is the left-most non-zero digit" If I understand this correctly, one should keep all packages from 0.1 to 0.46 (for example, if the versions are numbered like this). But from 1.1 to 1.46 you only keep the last one. > Good luck and happy hacking ^^ Thanks again. I don't know why and how to explain it, but from a novice point of view guix is very appealing. Everything seems well organized, well explained, and it seems to be a very good framework to start learning.