From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 wBrvHJxa+mNaBQEAbAwnHQ (envelope-from ) for ; Sat, 25 Feb 2023 19:59:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yKH7HJxa+mMA3QAA9RJhRA (envelope-from ) for ; Sat, 25 Feb 2023 19:59:40 +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 4B55CAC49 for ; Sat, 25 Feb 2023 19:59:40 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677351580; a=rsa-sha256; cv=none; b=Zny1F2enMg/CsDdzEwePDbUEJV2IAx9BEtb/6eTUmK3raspOug9KLH/nq/idRO18my6kGb d2VSRWHQvda235wQ+iMJo9KVGnME26VZdmaZSCIy8rAks4d/gRObET6vPevU0/IlnBxA0t iK3QIMxW+eydOAZmDpFgbnQbMY5RvtsGlveNS/To2Eo9HRHF0+Wxx2xKOoFKI4QYdR7SVx 31nh2192UaS6hQO0uB+drC9glHKHpF5z0FmG6JksPDJTEQyGjd3rnGVJtIXQ6V8bcchLlK oNAx+yu0eCuBq+4h8uQJGXZo+yLCQ6IkUzIIZHBEgSrAhZEPyAmvrZk1EF3SEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677351580; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=6WTJGHw7XN7HIa1lS2CvD3Opd5iuKQl+sUrFAvUZH3A=; b=JoG4OggaBPekmZ2BPrWGFLlG7xR+YVQ90+7WbapbIFRY2+lRWIBrp89/KDdtt6dQG26mq8 mK1PsTq1aHF9RlC5dvdZeSCGjXBF/TsuFW+mD7l6IxVx2FmKvOQRbrbemRuxEYPz047mjC n/DLrXJOkJnhp6qpRP0fODG7zrsXq3SREwJe1udXh57okD4HPtlJuI2zY0LuFnBX9Ph9OZ cbUU/1NDi4SD2VIVqfi8niYm9n95CMh6qfqR8ZDE1LME7CqDjmfdNCuNXykWm8+MAHjO6Y nbP5VqepH/BuedVN2nfW2Uc/BovAwBDrHCEr8DyrMYahYMeIFlkddAZ3VgX7rA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVzlF-0001sY-SD; Sat, 25 Feb 2023 13:59:09 -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 1pVzlD-0001rG-BH for guix-patches@gnu.org; Sat, 25 Feb 2023 13:59:07 -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 1pVzlD-0000cU-3A for guix-patches@gnu.org; Sat, 25 Feb 2023 13:59:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVzlC-0007xQ-Ug for guix-patches@gnu.org; Sat, 25 Feb 2023 13:59:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61789] [PATCH 04/27] services: base: Deprecate 'agetty-service' procedure. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Feb 2023 18:59:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61789 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61789@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 61789-submit@debbugs.gnu.org id=B61789.167735151530384 (code B ref 61789); Sat, 25 Feb 2023 18:59:06 +0000 Received: (at 61789) by debbugs.gnu.org; 25 Feb 2023 18:58:35 +0000 Received: from localhost ([127.0.0.1]:41453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVzkh-0007u0-A8 for submit@debbugs.gnu.org; Sat, 25 Feb 2023 13:58:35 -0500 Received: from smtpm8.myservices.hosting ([185.26.105.209]:45990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVzka-0007s3-EU for 61789@debbugs.gnu.org; Sat, 25 Feb 2023 13:58:28 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm8.myservices.hosting (Postfix) with ESMTP id BAB4A20D54 for <61789@debbugs.gnu.org>; Sat, 25 Feb 2023 19:58:18 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 6D2AF8009B; Sat, 25 Feb 2023 19:58:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id hDAKzevRLkUR; Sat, 25 Feb 2023 19:58:18 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-119-177.dsl.telepac.pt [85.242.119.177]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id EB67580098; Sat, 25 Feb 2023 19:58:17 +0100 (CET) From: Bruno Victal Date: Sat, 25 Feb 2023 18:57:50 +0000 Message-Id: <9e10d3396829a145398ae0e762d85e2a2c3fa3ec.1677350249.git.mirai@makinata.eu> X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: X-Migadu-Queue-Id: 4B55CAC49 X-Spam-Score: -2.68 X-Migadu-Spam-Score: -2.68 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: PnN7quzIFxWK * doc/guix.texi (Base Services): Replace agetty-service with agetty-service-type. * gnu/services/base.scm (agetty-service): Deprecate procedure. * gnu/system/examples/beaglebone-black.tmpl (operating-system)[services]: Use agetty-service-type. --- doc/guix.texi | 17 ++++++++--------- gnu/services/base.scm | 5 +++-- gnu/system/examples/beaglebone-black.tmpl | 14 +++++++------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 2225b25a47..cab42d46e4 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -18160,19 +18160,18 @@ Base Services @end table @end deftp -@deffn {Scheme Procedure} agetty-service @var{config} -Return a service to run agetty according to @var{config}, an -@code{} object, which specifies the tty to run, -among other things. -@end deffn +@defvar agetty-service-type +Type of the service that runs agetty, which implements virtual and +serial console log-in. The value for this service is a +@code{} object. +@end defvar @deftp {Data Type} agetty-configuration -This is the data type representing the configuration of agetty, which -implements virtual and serial console log-in. See the @code{agetty(8)} -man page for more information. +Data type representing the configuration of agetty, which specifies the +tty to run, among other things@footnote{See the @code{agetty(8)} +man page for more information.}. @table @asis - @item @code{tty} The name of the console this agetty runs on, as a string---e.g., @code{"ttyS0"}. This argument is optional, it will default to diff --git a/gnu/services/base.scm b/gnu/services/base.scm index c762485054..c5fd0cf5b4 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -162,7 +162,7 @@ (define-module (gnu services base) agetty-configuration agetty-configuration? - agetty-service + agetty-service ; deprecated agetty-service-type mingetty-configuration @@ -1210,7 +1210,8 @@ (define agetty-service-type "Provide console login using the @command{agetty} program."))) -(define* (agetty-service config) +(define-deprecated (agetty-service config) + agetty-service-type "Return a service to run agetty according to @var{config}, which specifies the tty to run, among other things." (service agetty-service-type config)) diff --git a/gnu/system/examples/beaglebone-black.tmpl b/gnu/system/examples/beaglebone-black.tmpl index 40d0a76a37..18bbb2723c 100644 --- a/gnu/system/examples/beaglebone-black.tmpl +++ b/gnu/system/examples/beaglebone-black.tmpl @@ -48,10 +48,10 @@ (services (append (list (service dhcp-client-service-type) ;; mingetty does not work on serial lines. ;; Use agetty with board-specific serial parameters. - (agetty-service - (agetty-configuration - (extra-options '("-L")) - (baud-rate "115200") - (term "vt100") - (tty "ttyO0")))) - %base-services))) + (service agetty-service-type + (agetty-configuration + (extra-options '("-L")) + (baud-rate "115200") + (term "vt100") + (tty "ttyO0")))) + %base-services))) -- 2.39.1