From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yDjfLg//e2H6VwEAgWs5BA (envelope-from ) for ; Fri, 29 Oct 2021 16:02:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kMOVKg//e2FXBgAA1q6Kng (envelope-from ) for ; Fri, 29 Oct 2021 14:02:55 +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 8013C22EA4 for ; Fri, 29 Oct 2021 16:02:55 +0200 (CEST) Received: from localhost ([::1]:51000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgST8-00087e-In for larch@yhetil.org; Fri, 29 Oct 2021 10:02:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgSSr-00085m-RJ for guix-devel@gnu.org; Fri, 29 Oct 2021 10:02:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36288) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgSSr-0005nr-6j; Fri, 29 Oct 2021 10:02:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Hjcq6wCDafDfSMog1aKV6flJsirUtGbX1AmnGSVVAcc=; b=A1cMSt4mQcslw/bNyF+U rWhH7hhZlLXQ3O07wmfylLfP6B+4ZgeqV1NEnH7OZZcmFCQSXJkfQTA3aRyEvzRwD72Fj4PLadj0g 0Pn3ptU9zMsMHjp//KvxfYxql7xR/shuQVlo3v9H+4jWPsJfMCs9Z0iOo2G31AiDfnHPf/4BvFZMI 9kSXimtWnz+cTL3oiH3Gy4fpsLvhVrnDrOp74o6YM4XvEC+naiG6a40VvXN6BAeYKUU2vPZ6WSOFr ZltO3wiwAupgpQ61X+dES17ilnZHXOqCwtoz/TJaRCFjo8723lhM8kFU+4yW65n3fMLsWn77iv01o 45LAptAlOLAG3g==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=51478 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgSSq-0004yI-MD; Fri, 29 Oct 2021 10:02:36 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Phil Beadling Subject: Re: --with-source version not honored? References: <87cznzbhss.fsf@beadling.co.uk> <87sfwuw2kr.fsf@gnu.org> <87mtn0f45b.fsf@beadling.co.uk> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 Brumaire an 230 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 29 Oct 2021 16:02:34 +0200 In-Reply-To: (Phil Beadling's message of "Sun, 24 Oct 2021 13:11:13 +0100") Message-ID: <87sfwk0w05.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635516175; 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:dkim-signature; bh=Hjcq6wCDafDfSMog1aKV6flJsirUtGbX1AmnGSVVAcc=; b=OTpVWi6JHEnv6S/w60tgnyikciIDO94qTtib5ImwvsQQIK17ipNm0kr4kYkc8Mrt8GETKd +0a0zR9KLNVDa+u5BAYE3fOQtxgvqywIjMXIshJbKJy0bPInEP4LLvQS7GlHMirL9/jlW/ /9pi8RZ57KO21oQ6+lsc26dht5LIPe9INR1sh9JjPumD4j1Waw8QlhbXx+TkrMukzFjSw9 YDA6huC2jN6MHntPx76HaxQ4nVnIqNaD1IXQruPc6gFSM4M/KtS29IIs22DSUWN69hnHAD Y6Y7t2be8+9rgUaW9AkFd7wZO6SKrNGiUetcbH2IAa+w+PlekR4QHeOi/Li8Tw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635516175; a=rsa-sha256; cv=none; b=Ry92NV4naT6XMY8rCI7VFeYS1jv+3YudvihulCu6SF8cfDcwHruHsaC1jJvD0xB/CzZW5K kPoVepkmwmEdKuPrpEnvBAhexSxBEXzoLgHpU4gzpDrab1BnOFBR+n5cnTvutp30eEZA60 3Pkm1LunPA4lYhqdpHy9WAyhodSWDG63TF60F4B80ubLGhCSPhYtar2kJuH0toCL9heXxA Gokv8luCA68r7saxa3fYsB7ps+unW5az5tLIe9V2xS6M4r7LYAy6xoLDetL0VzUwEqKBB/ 6Ol2gyfLLERjsmLK/iMslpQZX/tyZE7mH43QQL3Xcr7Zd2yFgnE2ETBgjAL1+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=A1cMSt4m; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=A1cMSt4m; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 8013C22EA4 X-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: Hi3Rbdoygk1S Hi, Phil Beadling skribis: > I was able to write a short manifest that avoided the overwriting of the > original "foobarpy" package in my case, and instead cleanly replace it wi= th > a newer version specified using "with-source". > > By setting, for example, GUIX_FOOBAR_VERSION=3D1.23 and > GUIX_TEST_PACKAGE=3Dmy-package - I can now create an environment which bu= ilds > the version of foobarpy I want from an https link generated from > GUIX_FOOBAR_VERSION, and then create a modified version of "my-package" > with foobarpy replaced, rather than overwritten. Nice! For the record, there=E2=80=99s a =E2=80=98--with-latest=E2=80=99 op= tion that I initially intended to be =E2=80=98--with-version=E2=80=99, but the importer/updater c= ode isn=E2=80=99t capable enough yet. > Anyway thought I'd share this here as a template for simple non-recursive > cases. I suspect it's not a massive effort to make it recursive, when I > have a moment I'll have a think about that too. Any thoughts on how to > improve are welcome! Thanks for sharing! Ludo=E2=80=99.