From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cABOBfcljGO4FgEAbAwnHQ (envelope-from ) for ; Sun, 04 Dec 2022 05:45:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uKxfBPcljGM2LQEAG6o9tA (envelope-from ) for ; Sun, 04 Dec 2022 05:45:43 +0100 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 AC3CB11C2E for ; Sun, 4 Dec 2022 05:45:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1gs4-0007r6-N6; Sat, 03 Dec 2022 23:44:56 -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 1p1gs3-0007qj-Bg for guix-devel@gnu.org; Sat, 03 Dec 2022 23:44:55 -0500 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1gs1-0002xy-Lw; Sat, 03 Dec 2022 23:44:54 -0500 Received: by mail-qk1-x732.google.com with SMTP id j13so1187349qka.3; Sat, 03 Dec 2022 20:44:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=MbIH83LEZfCrIHK2Wr/s78sB3sDEUIOIGuj2hiLO0EA=; b=LD4oDppnkY4sDTcpw3e1QfAMboa3TmXxKYrFsAB0z7afVPGy5G7IfrkmCEfuCW0rBu TbiG5MQwihcrX0kpwdPWcj+EFnOhbourW69z/BXTqz6EJG2RSsdz205ECSTF91YpD/1j vievd/odvCcX7h1xrflYBpKOrEN9OcnZRkHFUmESLndS2N+kUrraCq7WGeS+CDIUsl6u zgZ73KbdhgDHfV5IC17O+Pq3XNGzp75Z7XGNDjxRz7WACmQerdcZ+Pd+z4VitPESJ3nz Q2LQDE7CqudWkYFNq7refiUEXT00wyR2xx5DR8Tgd2EPlFiSSD0ebSyhK8pr32+sNjj5 ophQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MbIH83LEZfCrIHK2Wr/s78sB3sDEUIOIGuj2hiLO0EA=; b=qAmYwPB1WL3RgtsHuOjwjTfRLyPOwxHipQJi7fpE3YKYMmg+JHXlNfFEyKEHm+xwHc /WO/2NrGsszJHCKOOvxVAfLq17rfixsLogt7psqpss9Kms7yc07tI5SwFtvNzOUhJXsh BrS5Q5Xclq6pZKzIgBVPhb2G5qLNDGiEiLmdu5RdfA0zfB1PEjB0mIYQ57xXzEfdrhoa F7ROec898/1znGfim/SzEa57f8l2RK+54leVDiDiaISBNaxI3CeskxJiQEsC0BiA0l70 m2P19OyKOEID2D6Tz17c0jo0C+Xc5roWRMZXQ421goPZxe7cjlX6KQCbxBJrMZYlNX9J L6nA== X-Gm-Message-State: ANoB5pnAIMrtztKijptqfx8y/zMz12ycJ4kxg8QReLOuPkkt0eesbHot HZLeBK9GQ2wXO45XMnTfbGzTecJt/D0= X-Google-Smtp-Source: AA0mqf7eOBjzj2V+AwgyJrq4IWRU8ng8kr4nP0ip1EgBT9iRmt2QmCmY0GC8gpa6K2K8gE2i7uCsfg== X-Received: by 2002:a05:620a:15f4:b0:6fc:5e75:8452 with SMTP id p20-20020a05620a15f400b006fc5e758452mr36195903qkm.565.1670129092026; Sat, 03 Dec 2022 20:44:52 -0800 (PST) Received: from hurd (dsl-157-235.b2b2c.ca. [66.158.157.235]) by smtp.gmail.com with ESMTPSA id s7-20020a05620a254700b006cbc6e1478csm9345773qko.57.2022.12.03.20.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Dec 2022 20:44:51 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Subject: Re: Potential minor API change notice References: <87o7sqsv16.fsf@gmail.com> <87zgca5e19.fsf@gnu.org> <87a649k93x.fsf@gmail.com> <871qpiw4xy.fsf@gnu.org> Date: Sat, 03 Dec 2022 23:44:50 -0500 In-Reply-To: <871qpiw4xy.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Fri, 02 Dec 2022 10:06:01 +0100") Message-ID: <87fsdv7p6l.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x732.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670129142; 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=MbIH83LEZfCrIHK2Wr/s78sB3sDEUIOIGuj2hiLO0EA=; b=hnpnFkNuBSl5JvQswJ/0+UY5nGZPRSDqSESoDZHCv9BchXJlBnR1jlKroKylU5t7o2OxGL YrY05Xwa8GeXjudrfYkHzRPhOlRd2Tjr8s04EmPAVhLOn72675Tlk66zyuD7aBDwmpuGDZ 2E0qeID0saFsP406pgs/pQ2B6nOiu+vWWBNGeGD9YPyfjJZQ0c25MblF9h5OeR7VslSXTZ x3p2yRTPAErEnEj3HBy6AKahgnabvwn69rvORtuFbRbbQ0oFE9mr1ZwBo5nNLHHZX0VrDo jUtyAlNTDPFoZ2IHNNvLEk0MSW/bISR+e1iZIFiZ0JWX3m0+bbgmwQE5pwbNRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670129142; a=rsa-sha256; cv=none; b=YhwgaLkvEn6SwSVvJNvRyfPEP/2xue4dY8RwHSHxGEQV81XZSSsCwzObawBgUHiP9SCntw iGrZRUXndmzCIbYckfVSQmPTNLqik30H5n1iWtqrbZThgsJ2gmSG4q3JOgmlLh2MM5pPYk jhmgYdaK3dxcIyulQtjfgMSLjTmLBF3chnH3jaTG5iUqUYOGM6R9uIajBmEQwmiCGzj405 TYCbeDHtW8cb4XFYPpIbXFmA6olOIlQAqmeppuuTr5sCmZ/xMYtUbRFiQtoo2wjlJeldBr Ze1/wfU7E4N9vHgtgPRyuCAP7k1NcN0y1tqUVjIICe3ppkxmUTMPwblzH3b9Eg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LD4oDppn; dmarc=pass (policy=none) header.from=gmail.com; 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: -7.46 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LD4oDppn; dmarc=pass (policy=none) header.from=gmail.com; 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: AC3CB11C2E X-Spam-Score: -7.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: cBG/dGOraAWX Hi Ludovic, Ludovic Court=C3=A8s writes: > Maxim Cournoyer skribis: > >> Ludovic Court=C3=A8s writes: >> >>> Hi, >>> >>> Maxim Cournoyer skribis: >>> >>>> This is a heads up to let you know that the >>>> %BASE-PACKAGES-DISK-UTILITIES public variable exported from (gnu syste= m) >>>> may be removed in the near future. >>> >>> If the patch eventually gets consensus, I would suggest making that >>> variable an alias using =E2=80=98define-deprecated=E2=80=99: that way p= eople will know >>> about it and code won=E2=80=99t break. >> >> An deprecated alias to what? > > To =E2=80=98%base-packages=E2=80=99 for example? It doesn=E2=80=99t real= ly matter. I've found that by setting the replacement to #f, it does what I want: --8<---------------cut here---------------start------------->8--- 1 file changed, 4 insertions(+) gnu/system.scm | 4 ++++ modified gnu/system.scm @@ -38,6 +38,7 @@ (define-module (gnu system) #:use-module (guix gexp) #:use-module (guix records) #:use-module (guix packages) + #:use-module (guix deprecation) #:use-module (guix derivations) #:use-module (guix profiles) #:use-module ((guix utils) #:select (substitute-keyword-arguments)) @@ -177,6 +178,7 @@ (define-module (gnu system) %base-packages-interactive %base-packages-linux %base-packages-networking + %base-packages-disk-utilities %base-packages-utils %base-firmware %default-kernel-arguments)) @@ -894,6 +896,8 @@ (define %base-packages-networking ;; many people are familiar with, so keep it around. iw wireless-tools)) =20 +(define-deprecated %base-packages-disk-utilities #f '()) + (define %base-packages ;; Default set of packages globally visible. It should include anything ;; required for basic administrator tasks. --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix system build ~/stow/guix/hurd.scm /home/maxim/stow/guix/hurd.scm:410:22: warning: '%base-packages-disk-utilit= ies' is deprecated --8<---------------cut here---------------end--------------->8--- I've sent a v2 to 59661 (you are in cc). --=20 Thanks, Maxim