From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 21 09:06:50 2017 Received: (at 27155) by debbugs.gnu.org; 21 Jun 2017 13:06:50 +0000 Received: from localhost ([127.0.0.1]:58972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNfLO-0006eX-KX for submit@debbugs.gnu.org; Wed, 21 Jun 2017 09:06:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48435) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dNfLN-0006eJ-54 for 27155@debbugs.gnu.org; Wed, 21 Jun 2017 09:06:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNfLD-0003k5-T8 for 27155@debbugs.gnu.org; Wed, 21 Jun 2017 09:06:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNfLD-0003ju-Pb; Wed, 21 Jun 2017 09:06:39 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:32868 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dNfLC-0001W5-Qx; Wed, 21 Jun 2017 09:06:39 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: bug#27155: [PATCH 0/2] Support service extensions on the "final" service values References: <87mv9m7g0t.fsf@elephly.net> <87bmq07m0y.fsf@gnu.org> <87mv99rx8w.fsf@member.fsf.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 Messidor an 225 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-unknown-linux-gnu Date: Wed, 21 Jun 2017 15:06:34 +0200 In-Reply-To: <87mv99rx8w.fsf@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIn?= =?utf-8?B?cw==?= message of "Fri, 16 Jun 2017 01:12:15 +0800") Message-ID: <87h8z9ij6t.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27155 Cc: Ricardo Wurmus , 27155@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi! iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: > Maybe allow a service to override extensions specified by its > type? > > It can be: > > (define etc-service-type > (service-type > (name 'etc) > (default-extensions (list ...)) > (extension-points (list ...)))) > > (define builtin-etc-service > (... %base-services)) > > (define my-etc-service > (service etc-service-type > (service-value builtin-etc-service) > #:extensions > (list (service-extension > activation-service-type > activate-my-etc-files-in-my-way) > ...))) > > So we can change what service actually do, this is really powerful! The problem as I see it is that this would be redundant with extensions in service types. Also, the =E2=80=9Cetc=E2=80=9D service is one of the =E2=80=9Cspecial=E2= =80=9D services that are not in =E2=80=98%base-services=E2=80=99; instead they=E2=80=99re automatically add= ed by =E2=80=98essential-services=E2=80=99 in (gnu system). Thanks for your feedback, Ludo=E2=80=99.