|
From: | swedebugia |
Subject: | Fwd: Migration of (dhcp-client-service) |
Date: | Sun, 4 Nov 2018 23:16:52 +0100 |
-------- Forwarded Message --------
Hi In this commit http://git.savannah.gnu.org/cgit/guix.git/commit/?id=39d7fdce453b0ca23ecbed72048647debbaa58a6 you deprecated (dhcp-client-service) in favour of (service dhcp-client-service-type) I have 2 questions:
I would like us to be careful and document these types of
changes in a way that paves the way for newcomers to easily
understand what is going on. In this commit you updated the documentation with this: diff --git a/doc/guix.texi b/doc/guix.texi
index fde7892..f4f1994 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -11546,10 +11546,11 @@ The @code{(gnu services networking)} module provides services to configure
the network interface.
@cindex DHCP, networking service
address@hidden {Scheme Procedure} dhcp-client-service [#:dhcp @var{isc-dhcp}]
-Return a service that runs @var{dhcp}, a Dynamic Host Configuration
-Protocol (DHCP) client, on all the non-loopback network interfaces.
address@hidden deffn
address@hidden {Scheme Variable} dhcp-client-service-type
+This is the type of services that run @var{dhcp}, a Dynamic Host Configuration
+Protocol (DHCP) client, on all the non-loopback network interfaces. Its value
+is the DHCP client package to use, @code{isc-dhcp} by default.
address@hidden defvr
@deffn {Scheme Procedure} dhcpd-service-type
This type defines a service that runs a DHCP daemon. To create a
@@ -17168,7 +17169,7 @@ A helper function to quickly add php to an @code{nginx-server-configuration}.
A simple services setup for nginx with php can look like this:
@example
-(services (cons* (dhcp-client-service)
+(services (cons* (service dhcp-client-service-type)
(service php-fpm-service-type)
(service nginx-service-type
(nginx-server-configuration
Maybe we should have a list of deprecated features with version numbers to help users find the information about the change if they experience a hiccup. Cheers Swedebugia PS: I send this in private because it could perhaps be viewed
as criticism, tho I have no such intention. PPS: I noticed this change when I downloaded bare-bones.tmpl on a guix 0.15 VM image and tried reconfiguring and got an error about dhcp-client-service-type being unbound... |
[Prev in Thread] | Current Thread | [Next in Thread] |