From patchwork Sat Jan 7 15:06:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 45907 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1183227BBEB; Sat, 7 Jan 2023 15:08:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 19D7E27BBE9 for ; Sat, 7 Jan 2023 15:08:13 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEAnl-0004AN-3i; Sat, 07 Jan 2023 10:08:05 -0500 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 1pEAnj-00049N-Fq for guix-patches@gnu.org; Sat, 07 Jan 2023 10:08:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEAnj-0001Oh-73; Sat, 07 Jan 2023 10:08:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEAnj-00053s-2b; Sat, 07 Jan 2023 10:08:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60629] [PATCH 1/3] transformations: Add '--with-version'. References: <20230107150457.4446-1-ludo@gnu.org> In-Reply-To: <20230107150457.4446-1-ludo@gnu.org> Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, guix-patches@gnu.org Resent-Date: Sat, 07 Jan 2023 15:08:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60629 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60629@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , ludo@gnu.org X-Debbugs-Original-Xcc: ludo@gnu.org Received: via spool by 60629-submit@debbugs.gnu.org id=B60629.167310403019370 (code B ref 60629); Sat, 07 Jan 2023 15:08:03 +0000 Received: (at 60629) by debbugs.gnu.org; 7 Jan 2023 15:07:10 +0000 Received: from localhost ([127.0.0.1]:58688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEAmr-00052F-Gf for submit@debbugs.gnu.org; Sat, 07 Jan 2023 10:07:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEAmo-00051G-RA for 60629@debbugs.gnu.org; Sat, 07 Jan 2023 10:07:07 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEAmj-0001IA-HN; Sat, 07 Jan 2023 10:07:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=oVdMqzi0nLU+t5sZMKecTXZB6xN3pGVesSAI4am0Pe0=; b=P1h0AJvrBeQiHf KM0FhJGID4DjFr6HjKu8dzmRD91MKFng3XixANp/zC97dZrHkEEEugavQkK3bOpcymxlRu5G8/nDM For3HTXc1Ni+cj3oAvUXJMSCnvbBLo3FjqNOazqU7gj1wUy0xWTRHoS8oWVtC6rgY6XO9j5JOOt2/ rffYAnFDUk1V5Dkz0HxNgXJSiPmaa/teKCIJ5SMBiWOAtQWtGN1gVsEDaZisiKiuBqjA67Q8JUXwT lVzjXiW+1ReHsOhkGmKwobEhS9l7aXimCXZ3uen4o56Sa7JcItUmRP6IAOj2iyhthkMz/dlsAyyMn hlERa4wjSJEFWcgWy/0A==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEAmj-0003Kn-53; Sat, 07 Jan 2023 10:07:01 -0500 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Sat, 7 Jan 2023 16:06:47 +0100 Message-Id: <20230107150649.4488-1-ludo@gnu.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This is a followup to 8aeccc6240ec45f0bc7bed655e0c8149ae4253eb. * guix/transformations.scm (package-with-upstream-version): New procedure. (transform-package-latest)[package-with-latest-upstream]: Remove. Use 'package-with-upstream-version' instead. (transform-package-version): New procedure. (%transformations, %transformation-options) (show-transformation-options-help/detailed): Add '-with-version'. * tests/transformations.scm ("options->transformation, with-version"): New test. * doc/guix.texi (Package Transformation Options): Document '--with-version'. (Defining Package Variants): Mention it. --- doc/guix.texi | 19 ++++++++-- guix/transformations.scm | 78 +++++++++++++++++++++++++++------------ tests/transformations.scm | 19 +++++++++- 3 files changed, 89 insertions(+), 27 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 293c3016aa..d3af813b5a 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -8072,8 +8072,9 @@ vintage!): "0lappv4slgb5spyqbh6yl5r013zv72yqg2pcl30mginf3wdqd8k9")))))) @end lisp -The example above corresponds to what the @option{--with-source} package -transformation option does. Essentially @code{hello-2.2} preserves all +The example above corresponds to what the @option{--with-version} +or @option{--with-source} package transformations option do. +Essentially @code{hello-2.2} preserves all the fields of @code{hello}, except @code{version} and @code{source}, which it overrides. Note that the original @code{hello} variable is still there, in the @code{(gnu packages base)} module, unchanged. When @@ -12735,7 +12736,9 @@ Coreutils in the dependency graph is rebuilt. @cindex upstream, latest version @item --with-latest=@var{package} -So you like living on the bleeding edge? This option is for you! It +@itemx --with-version=@var{package}=@var{version} +So you like living on the bleeding edge? The @option{--with-latest} +option is for you! It replaces occurrences of @var{package} in the dependency graph with its latest upstream version, as reported by @command{guix refresh} (@pxref{Invoking guix refresh}). @@ -12751,6 +12754,16 @@ of Guile-JSON: guix build guix --with-latest=guile-json @end example +The @option{--with-version} works similarly except that it lets you +specify that you want precisely @var{version}, assuming that version +exists upstream. For example, to spawn a development environment with +SciPy built against version 1.22.4 of NumPy (skipping its test suite +because hey, we're not gonna wait this long), you would run: + +@example +guix shell python python-scipy --with-version=python-numpy=1.22.4 +@end example + There are limitations. First, in cases where the tool cannot or does not know how to authenticate source code, you are at risk of running malicious code; a warning is emitted in this case. Second, this option diff --git a/guix/transformations.scm b/guix/transformations.scm index bf9639020b..d6a2ef0708 100644 --- a/guix/transformations.scm +++ b/guix/transformations.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2016-2022 Ludovic Courtès +;;; Copyright © 2016-2023 Ludovic Courtès ;;; Copyright © 2021 Marius Bakke ;;; ;;; This file is part of GNU Guix. @@ -757,35 +757,61 @@ (define rewrite (rewrite obj) obj))) +(define* (package-with-upstream-version p #:optional version) + "Return package P changed to use the given upstream VERSION or, if VERSION +is #f, the latest known upstream version." + (let ((source (package-latest-release p #:version version))) + (cond ((not source) + (if version + (warning + (G_ "could not find version ~a of '~a' upstream~%") + version (package-name p)) + (warning + (G_ "could not determine latest upstream release of '~a'~%") + (package-name p))) + p) + ((string=? (upstream-source-version source) + (package-version p)) + p) + (else + (unless (pair? (upstream-source-signature-urls source)) + (warning (G_ "cannot authenticate source of '~a', version ~a~%") + (package-name p) + (upstream-source-version source))) + + ;; TODO: Take 'upstream-source-input-changes' into account. + (package + (inherit p) + (version (upstream-source-version source)) + (source source)))))) + (define (transform-package-latest specs) "Return a procedure that rewrites package graphs such that those in SPECS are replaced by their latest upstream version." - (define (package-with-latest-upstream p) - (let ((source (package-latest-release p))) - (cond ((not source) - (warning - (G_ "could not determine latest upstream release of '~a'~%") - (package-name p)) - p) - ((string=? (upstream-source-version source) - (package-version p)) - p) - (else - (unless (pair? (upstream-source-signature-urls source)) - (warning (G_ "cannot authenticate source of '~a', version ~a~%") - (package-name p) - (upstream-source-version source))) + (define rewrite + (package-input-rewriting/spec + (map (lambda (spec) + (cons spec package-with-upstream-version)) + specs))) - ;; TODO: Take 'upstream-source-input-changes' into account. - (package - (inherit p) - (version (upstream-source-version source)) - (source source)))))) + (lambda (obj) + (if (package? obj) + (rewrite obj) + obj))) +(define (transform-package-version specs) + "Return a procedure that rewrites package graphs such that those in SPECS +are replaced by the specified upstream version." (define rewrite (package-input-rewriting/spec (map (lambda (spec) - (cons spec package-with-latest-upstream)) + (match (string-tokenize spec %not-equal) + ((spec version) + (cons spec (cut package-with-upstream-version <> version))) + (_ + (raise (formatted-message + (G_ "~a: invalid upstream version specification") + spec))))) specs))) (lambda (obj) @@ -809,7 +835,8 @@ (define %transformations (with-debug-info . ,transform-package-with-debug-info) (without-tests . ,transform-package-tests) (with-patch . ,transform-package-patches) - (with-latest . ,transform-package-latest))) + (with-latest . ,transform-package-latest) + (with-version . ,transform-package-version))) (define (transformation-procedure key) "Return the transformation procedure associated with KEY, a symbol such as @@ -881,6 +908,8 @@ (define micro-architecture (parser 'with-patch)) (option '("with-latest") #t #f (parser 'with-latest)) + (option '("with-version") #t #f + (parser 'with-version)) (option '("help-transform") #f #f (lambda _ @@ -915,6 +944,9 @@ (define (show-transformation-options-help/detailed) (display (G_ " --with-latest=PACKAGE use the latest upstream release of PACKAGE")) + (display (G_ " + --with-version=PACKAGE=VERSION + use the given upstream VERSION of PACKAGE")) (display (G_ " --with-c-toolchain=PACKAGE=TOOLCHAIN build PACKAGE and its dependents with TOOLCHAIN")) diff --git a/tests/transformations.scm b/tests/transformations.scm index 5c136e1d48..1fa2c0bba8 100644 --- a/tests/transformations.scm +++ b/tests/transformations.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2016-2017, 2019-2022 Ludovic Courtès +;;; Copyright © 2016-2017, 2019-2023 Ludovic Courtès ;;; Copyright © 2021 Marius Bakke ;;; ;;; This file is part of GNU Guix. @@ -497,6 +497,23 @@ (define (package-name* obj) `((with-latest . "foo"))))) (package-version (t p))))) +(test-equal "options->transformation, with-version" + "1.0" + (mock ((guix upstream) %updaters + (delay (list (upstream-updater + (name 'dummy) + (pred (const #t)) + (description "") + (import (const (upstream-source + (package "foo") + (version "1.0") + (urls '("http://example.org"))))))))) + (let* ((p0 (dummy-package "foo" (version "7.7"))) + (p1 (dummy-package "bar" (inputs (list p0)))) + (t (options->transformation + `((with-version . "foo=1.0"))))) + (package-version (lookup-package-input (t p1) "foo"))))) + (test-equal "options->transformation, tune" '(cpu-tuning . "superfast") (let* ((p0 (dummy-package "p0")) From patchwork Sat Jan 7 15:06:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 45909 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B424A27BBEB; Sat, 7 Jan 2023 15:08:37 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 96CAB27BBE9 for ; Sat, 7 Jan 2023 15:08:36 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEAnk-0004A1-Io; Sat, 07 Jan 2023 10:08:04 -0500 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 1pEAnj-000491-3a for guix-patches@gnu.org; Sat, 07 Jan 2023 10:08:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEAni-0001OU-Qe; Sat, 07 Jan 2023 10:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEAni-00053k-LV; Sat, 07 Jan 2023 10:08:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60629] [PATCH 2/3] transformations: Let users know when '--with-latest' has no effect. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, guix-patches@gnu.org Resent-Date: Sat, 07 Jan 2023 15:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60629 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60629@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , ludo@gnu.org X-Debbugs-Original-Xcc: ludo@gnu.org Received: via spool by 60629-submit@debbugs.gnu.org id=B60629.167310402919363 (code B ref 60629); Sat, 07 Jan 2023 15:08:02 +0000 Received: (at 60629) by debbugs.gnu.org; 7 Jan 2023 15:07:09 +0000 Received: from localhost ([127.0.0.1]:58686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEAmq-000528-WA for submit@debbugs.gnu.org; Sat, 07 Jan 2023 10:07:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEAmp-00051S-Al for 60629@debbugs.gnu.org; Sat, 07 Jan 2023 10:07:07 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEAmk-0001IH-3x; Sat, 07 Jan 2023 10:07:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=yWrO1FNXjEuc2qiPkPE6qMCkvmsKfkHTYNCkMuIvsas=; b=r+34PlXScFZpB2lqSL4S /0ksZL/A/044Fk8jD2kGbhZti5XYdf9/7JamAVpZdG02/xtUePlXq1LnxWvzGMq9oLkgWVHLxPgD8 ctSHC97Si4m15YyJmsQG3vTn+4rwE1zlI9tfdYjLlgluQaBblFKtwOcyeFkLPEv1hwuaLI4+G/nIH nD5aK0tuFKu4gdWvJA+YINEC/IJGy2NSgQT56POVwOZz5E/OJryxdCb1qsDJKdUsY16sPJ1j1Nfai RZu5nZNSB0nt1td381p68grkzaoRSyLme9HMXYhMtyjhFvRuCwchZe/SoJkcQ06mTW0T64ImDLyJm SnXeIfnRWid5Pw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEAmj-0003Kn-OI; Sat, 07 Jan 2023 10:07:01 -0500 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Sat, 7 Jan 2023 16:06:48 +0100 Message-Id: <20230107150649.4488-2-ludo@gnu.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230107150649.4488-1-ludo@gnu.org> References: <20230107150649.4488-1-ludo@gnu.org> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * guix/transformations.scm (package-with-upstream-version): Print a message when VERSION is false and SOURCE has the same version as P. --- guix/transformations.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guix/transformations.scm b/guix/transformations.scm index d6a2ef0708..b8e2b3d52a 100644 --- a/guix/transformations.scm +++ b/guix/transformations.scm @@ -772,6 +772,9 @@ (define* (package-with-upstream-version p #:optional version) p) ((string=? (upstream-source-version source) (package-version p)) + (unless version + (info (G_ "~a is already the latest version of '~a'~%") + (package-version p) (package-name p))) p) (else (unless (pair? (upstream-source-signature-urls source)) From patchwork Sat Jan 7 15:06:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 45908 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BA12127BBEB; Sat, 7 Jan 2023 15:08:19 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4DA6927BBE9 for ; Sat, 7 Jan 2023 15:08:18 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEAnk-0004A7-Oy; Sat, 07 Jan 2023 10:08:04 -0500 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 1pEAnj-00049d-Sr for guix-patches@gnu.org; Sat, 07 Jan 2023 10:08:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEAnj-0001Or-KQ; Sat, 07 Jan 2023 10:08:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEAnj-00053z-G4; Sat, 07 Jan 2023 10:08:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60629] [PATCH 3/3] DRAFT news: Add entry for '--with-version'. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, guix-patches@gnu.org Resent-Date: Sat, 07 Jan 2023 15:08:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60629 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60629@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , ludo@gnu.org X-Debbugs-Original-Xcc: ludo@gnu.org Received: via spool by 60629-submit@debbugs.gnu.org id=B60629.167310403019376 (code B ref 60629); Sat, 07 Jan 2023 15:08:03 +0000 Received: (at 60629) by debbugs.gnu.org; 7 Jan 2023 15:07:10 +0000 Received: from localhost ([127.0.0.1]:58690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEAms-00052N-5E for submit@debbugs.gnu.org; Sat, 07 Jan 2023 10:07:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEAmp-00051e-TM for 60629@debbugs.gnu.org; Sat, 07 Jan 2023 10:07:08 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEAmk-0001IO-NL; Sat, 07 Jan 2023 10:07:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=CXhxT4E5x8TDKKAs5FMkqE5tMmScDx/w0Pe3FD/iq7U=; b=QGGjCtitp/uT4Cpq7FE7 fgvVEhS9njLaBgr/lFP6cxhTbHE7jvUOve3D4wkM8jEBqYtD36381/4GWFPBNUCNvO09hIVZfYZ7t 8ObYRxSmchm9uYhTy+r6MCyDoN6AqBCboDa8FTQDjXMLxP2Ae8uGIT3SYG0RAda4AX6yeyQnzGZgp gE4hgh5jrFOrd0+ltg5D7AlGcFhIsG0MLaK7IkY8GwfpkotjHqKXcrRhd++gt2fNrgPD5tEmKZ2qL g7XR+Yo7R0Gq6WWZJlUFD2ooRdZvMsv3VRNKLazr/3ReRR8yszYhUtJXFp18Ya1Zx7bbPFbXQTjxc BroS1Pgiv4I3hw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEAmk-0003Kn-BJ; Sat, 07 Jan 2023 10:07:02 -0500 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Sat, 7 Jan 2023 16:06:49 +0100 Message-Id: <20230107150649.4488-3-ludo@gnu.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230107150649.4488-1-ludo@gnu.org> References: <20230107150649.4488-1-ludo@gnu.org> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches DRAFT: Update commit. * etc/news.scm: Add entry. --- etc/news.scm | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/etc/news.scm b/etc/news.scm index 86451495fd..aa205ceffe 100644 --- a/etc/news.scm +++ b/etc/news.scm @@ -1,6 +1,6 @@ ;; GNU Guix news, for use by 'guix pull'. ;; -;; Copyright © 2019-2022 Ludovic Courtès +;; Copyright © 2019-2023 Ludovic Courtès ;; Copyright © 2019–2021 Tobias Geerinckx-Rice ;; Copyright © 2019, 2020 Miguel Ángel Arruga Vivas ;; Copyright © 2019, 2020 Konrad Hinsen @@ -26,6 +26,40 @@ (channel-news (version 0) + (entry (commit "XXX") + (title + (en "New @option{--with-version} package transformation option") + (fr "Nouvelle option de transformation @option{--with-version}")) + (body + (en "The new @option{--with-version} package transformation option +generalizes @option{--with-latest}: it gets the specified upstream release of +a package and uses it instead of the currently-packaged version. + +For example, the command below would spawn GNOME Clocks built against GTK +4.7.0, skipping its test suite: + +@example +guix shell gnome-clocks --with-version=gtk=4.7.0 \ + --without-tests=gtk -- gnome-clocks +@end example + +Run @command{info \"(guix) Package Transformation Options\"} for more info.") + (fr "La nouvelle option de transformation de paquets +@option{--with-version} généralise @option{--with-latest} : elle permet de +spécifier quelle version amont d'un logiciel utiliser à la place de celle +actuellement fournie. + +Par exemple, la commande ci-dessous démarre GNOME Clocks construit avec GTK +4.7.0, sans lancer sa suite de tests : + +@example +guix shell gnome-clocks --with-version=gtk=4.7.0 \ + --without-tests=gtk -- gnome-clocks +@end example + +Voir @command{info \"(guix.fr) Options de transformation de paquets\"} pour +plus de détails."))) + (entry (commit "dfc6957a5af7d179d4618eb19d4f555c519bc6f2") (title (en "New @code{customize-linux} procedure")