From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UDBFAzPrrmLqoAAAbAwnHQ (envelope-from ) for ; Sun, 19 Jun 2022 11:24:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OMoyAjPrrmK5PgEAG6o9tA (envelope-from ) for ; Sun, 19 Jun 2022 11:24:03 +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 B059232998 for ; Sun, 19 Jun 2022 11:24:02 +0200 (CEST) Received: from localhost ([::1]:50272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2r9x-0007zQ-0t for larch@yhetil.org; Sun, 19 Jun 2022 05:23:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2r9P-0007x4-1k for guix-devel@gnu.org; Sun, 19 Jun 2022 05:23:23 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:41717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2r9M-0001Qi-U8; Sun, 19 Jun 2022 05:23:22 -0400 Received: from hermia.goebel-consult.de ([87.176.142.69]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mt7x1-1nj7LJ2u41-00tWyE; Sun, 19 Jun 2022 11:23:16 +0200 Received: from [192.168.110.2] (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id D62325F535; Sun, 19 Jun 2022 11:23:17 +0200 (CEST) Message-ID: <257ef3b8-cbfb-20d6-2f2a-9ffa472606c2@crazy-compilers.com> Date: Sun, 19 Jun 2022 11:23:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: guix refresh to a specific version? Content-Language: en-US To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= Cc: guix-devel References: <8783d59a-e60f-6253-80d7-f25cd196e244@crazy-compilers.com> <8735g3fght.fsf@gnu.org> From: Hartmut Goebel Organization: crazy-compilers.com In-Reply-To: <8735g3fght.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:rGqC1o4MyWdWu38xihW9GB+geDdsWRk92jodZZH3LRXBExDx8mm Ly+lpOncEGBiRjEeiykCdNAMRVFvVJtO8epLVM1P6Oc5b9oBpbBUCkLtfEgj9IXzSzTxIZ8 c9dFYaKpjQiXC7naFGrXMGUehEkweTina7T1K+0fYNCK1J/O6RY3ixIi8h5oxRGChouHlnV R7vdcKcf27SHDOTltD8ww== X-UI-Out-Filterresults: notjunk:1;V03:K0:KgyOWma/ZpU=:8kw7GIGjiFtv+necwo+ciZ R00oJaNh7AhIyo59yiXB1wcrsPpcztFtLV1qGTxucsHdizcnnU/KtnPyHh0MNH/0s39LakCYs QF5dRKfBOoP0X8cwpncqMBF8LYWjv1Am/sA0cD8yVaAFWWQytCHIuUAjl8jtR8xSz+PBVpOVN 332Jlmswc5cbGI46crxeCS+hzNlRnxiCb9XQ01+Zooudgap8MyvB3C9NA+YGxRmwMcF0+3WYJ N0FB6zQ5Vlj510JeHjJiA07itimAAyXcNVrkIB+sqL1frH5ayzM8ROrAMtr81/SEXkDI4S/ne PHblJSYSH8d2mc9udHyKy2qIoT7xM4osQ/jg3tHkIDthUlP0a/IQjGflDSsUCieU9huOI/yD8 8vereRl87GGarVInHcdJ0BqMAkfpqw9EImwuu+e7VTO4oocfk/cemZPAL8uQJFoQw4VLS6i+4 FP8QRF5Q6Nf7Q91gsVQfXky+yrQeoVSLp0b66oiO8npqL50N5ayNI/UpsEhX7tRLHYFedRWKp WoGwPkoWSxPdBrZiHn1fjZl0Tt+ZzHpD/Va644T25HGR2F0Xe1tybQ9YXpiUJlZ5fI4fIMWhk /Ua8zcaCNF/nyvp/dtkTiduvkiU9wPgf1Aj4cCxTJwmreNqgTBvcuP/Sei+AA7mK5B/lAEw1N y49GCsHxLQuC2Rpqbs9wlLZem4L9Vxr+xEGsLQvdpH6A0RajoVVnZWxFqHopQJ8sQ3ir+ayE4 4opAUwbbA6h6QZSqgi3qn3wGEjrPxKMPmNql2rKmWLBnJ3WpIxePXOEdFxg= Received-SPF: none client-ip=217.72.192.73; envelope-from=h.goebel@crazy-compilers.com; helo=mout.kundenserver.de 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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655630642; 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; bh=XTEVwXx5SA1aGZyAkNU4qeNcwu9kpvJLJKfEFqYLmZ8=; b=AIHyJZpxfshFazPtz49DDsHQwSK7vupkAEd4keKm8c7H/hj3sEQEjTDdJLoBDOcGUvGipk fA+GD3YpOta4LF2zPfm97IkGF5bLcxb6J9RVpfBZDhxdIR4Pxiy/cFTjRmilevY0+4nvwZ lAeGUOQ/zhqqj3VCXZvokv+9hsCq8jQcOaJ1tbAGJBt8/B70CHYdGfoDbKnTj1iXmo7XQ+ 4Wm6IFHkG5wrUbUysejrDZuqCV0wvxqCkbPQ+H/XY614ImGlaR6FcR02mNjLGL+1jCQFmM IdDnn8Zz5855lp3cxhhxEL+/BuYFyOPvV/IGsNXz5f94yNrBbXPhgRAy/KochQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655630642; a=rsa-sha256; cv=none; b=MwZBbBiw8qBxyymHVdZwDwOOoURShHc+gxwCkzBGNmYC0ZBvRwdWKiq6A5CxhWBVzRQX9C p1Gbxu9d4erVpoOG01ci+etEvVt1X/9nw3nrcxWH0Bfc6vQg1hiw04eOx2YXABDm35x5LK 7yG+Fb8+8o+4Fo0Mc7oV9eOdVTH/5q2f2Qjd5nijJJZvP4/eAmUahUkcvsxOQHgkEJXeVK bgGDMrvg/aWtV8PKrZ0IGXpPaclVgb9J1y8vSdrn4qgzD/7wqqCbHawZShORYgcTOKr3SX XS2rZQU4ExsvZEj4Jca9Q8yMzpRUyjVhZgLKR/4PaK1mSxPjFtdOxXnRr9WeGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.29 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B059232998 X-Spam-Score: -0.29 X-Migadu-Scanner: scn1.migadu.com X-TUID: xupu9vWQ1G83 Hi, Am 17.06.22 um 17:37 schrieb Ludovic Courtès: > It’s currently not possible, but pretty much all the machinery is there, > in importers. It’s a low-hanging fruit that I think we should pick! I gave it a try and discovered that we need to discuss the interface and design: One can already specify a version, which defines the package to be updated. The respective place the code has the comment Take either the specified version or the latest one. and this was added by you (Ludo) in 4b9b3cbbc45afa3e374889847d4ab8673b8b2db2 (April 2015): refresh: Allow users to refer to specific package versions. * guix/scripts/refresh.scm (guix-refresh): Use 'specification->package'   instead of 'find-packages-by-name'.  This allows users to specify   things like "qt-4.8.6". Beside this, I'm unconfident about the implementation: Currently refresh passes around package objects and passes this to the updater. When updating to a specific version, we need to pass around both the package and the desired version, which implies case-handling at many places. Any idea how to solve this elegantly? -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |