GNU bug report logs -
#27155
[PATCH 0/2] Support service extensions on the "final" service values
Previous Next
Full log
Message #40 received at 27155 <at> debbugs.gnu.org (full text, mbox):
Hi!
iyzsong <at> member.fsf.org (宋文武) 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 “etc” service is one of the “special” services that are not in
‘%base-services’; instead they’re automatically added by
‘essential-services’ in (gnu system).
Thanks for your feedback,
Ludo’.
This bug report was last modified 50 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.