* [bug#28356] [PATCH 0/1] doc: Replace server-list with server-blocks. @ 2017-09-05 11:13 Oleg Pykhalov 2017-09-05 11:15 ` [bug#28356] [PATCH 1/1] " Oleg Pykhalov 0 siblings, 1 reply; 5+ messages in thread From: Oleg Pykhalov @ 2017-09-05 11:13 UTC (permalink / raw) To: 28356 From 2799970350073812c2d458d9750649cdf7f23315 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov <go.wigust@gmail.com> Date: Tue, 5 Sep 2017 14:09:56 +0300 Subject: [PATCH 0/1] Replace server-list with server-blocks. Following documentation example I got this error --8<---------------cut here---------------start------------->8--- natsu@magnolia ~/src/guix$ guix system build --fallback /home/natsu/dotfiles/guix/system-magnolia.scm /home/natsu/dotfiles/guix/system-magnolia.scm:241:28: error: extraneous field initializers (server-list) --8<---------------cut here---------------end--------------->8--- Oleg Pykhalov (1): doc: Replace server-list with server-blocks. doc/guix.texi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.14.1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#28356] [PATCH 1/1] doc: Replace server-list with server-blocks. 2017-09-05 11:13 [bug#28356] [PATCH 0/1] doc: Replace server-list with server-blocks Oleg Pykhalov @ 2017-09-05 11:15 ` Oleg Pykhalov 2017-09-07 5:58 ` Christopher Baines 0 siblings, 1 reply; 5+ messages in thread From: Oleg Pykhalov @ 2017-09-05 11:15 UTC (permalink / raw) To: bug#28356 [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: [PATCH 1/1] doc: Replace server-list with server-blocks. --] [-- Type: text/x-patch, Size: 2409 bytes --] From 2799970350073812c2d458d9750649cdf7f23315 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov <go.wigust@gmail.com> Date: Tue, 5 Sep 2017 14:04:14 +0300 Subject: [PATCH 1/1] doc: Replace server-list with server-blocks. * doc/guix.texi (Web Services): Replace 'server-list' with 'server-blocks'. --- doc/guix.texi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index e7a88e19f..9ac52535b 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -14038,7 +14038,7 @@ A simple example configuration is given below. @example (service nginx-service-type (nginx-configuration - (server-list + (server-blocks (list (nginx-server-configuration (server-name '("www.example.com")) (root "/srv/http/www.example.com") @@ -14086,7 +14086,7 @@ The directory to which NGinx will write log files. The directory in which NGinx will create a pid file, and write temporary files. -@item @code{server-list} (default: @code{'()}) +@item @code{server-blocks} (default: @code{'()}) A list of @dfn{server blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-server-configuration>}. @@ -14097,7 +14097,7 @@ HTTPS. @example (service nginx-service-type (nginx-configuration - (server-list + (server-blocks (list (nginx-server-configuration (server-name '("www.example.com")) (root "/srv/http/www.example.com") @@ -14122,7 +14122,7 @@ requests with two servers. (service nginx-service-type (nginx-configuration - (server-list + (server-blocks (list (nginx-server-configuration (server-name '("www.example.com")) (root "/srv/http/www.example.com") @@ -14144,7 +14144,7 @@ requests with two servers. @item @code{config-file} (default: @code{#f}) If the @var{config-file} is provided, this will be used, rather than generating a configuration file from the provided @code{log-directory}, -@code{run-directory}, @code{server-list} and @code{upstream-list}. For +@code{run-directory}, @code{server-blocks} and @code{upstream-list}. For proper operation, these arguments should match what is in @var{config-file} to ensure that the directories are created when the service is activated. -- 2.14.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#28356] [PATCH 1/1] doc: Replace server-list with server-blocks. 2017-09-05 11:15 ` [bug#28356] [PATCH 1/1] " Oleg Pykhalov @ 2017-09-07 5:58 ` Christopher Baines 2017-09-07 7:46 ` Oleg Pykhalov 0 siblings, 1 reply; 5+ messages in thread From: Christopher Baines @ 2017-09-07 5:58 UTC (permalink / raw) To: Oleg Pykhalov; +Cc: bug#28356 [-- Attachment #1: Type: text/plain, Size: 3369 bytes --] On Tue, 05 Sep 2017 14:15:30 +0300 Oleg Pykhalov <go.wigust@gmail.com> wrote: > From 2799970350073812c2d458d9750649cdf7f23315 Mon Sep 17 00:00:00 2001 > From: Oleg Pykhalov <go.wigust@gmail.com> > Date: Tue, 5 Sep 2017 14:04:14 +0300 > Subject: [PATCH 1/1] doc: Replace server-list with server-blocks. > > * doc/guix.texi (Web Services): Replace 'server-list' with > 'server-blocks'. --- > doc/guix.texi | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/doc/guix.texi b/doc/guix.texi > index e7a88e19f..9ac52535b 100644 I'm having problems applying this: error: sha1 information is lacking or useless (doc/guix.texi). error: could not build fake ancestor I think this might be happening, as I don't have something locally that coresponds to e7a88e19f. Is this patch on some version of guix.texi that hasn't made it in to the master branch yet? > --- a/doc/guix.texi > +++ b/doc/guix.texi > @@ -14038,7 +14038,7 @@ A simple example configuration is given below. > @example > (service nginx-service-type > (nginx-configuration > - (server-list > + (server-blocks > (list (nginx-server-configuration > (server-name '("www.example.com")) > (root "/srv/http/www.example.com") > @@ -14086,7 +14086,7 @@ The directory to which NGinx will write log > files. The directory in which NGinx will create a pid file, and write > temporary files. > > -@item @code{server-list} (default: @code{'()}) > +@item @code{server-blocks} (default: @code{'()}) > A list of @dfn{server blocks} to create in the generated > configuration file, the elements should be of type > @code{<nginx-server-configuration>}. > @@ -14097,7 +14097,7 @@ HTTPS. > @example > (service nginx-service-type > (nginx-configuration > - (server-list > + (server-blocks > (list (nginx-server-configuration > (server-name '("www.example.com")) > (root "/srv/http/www.example.com") > @@ -14122,7 +14122,7 @@ requests with two servers. > (service > nginx-service-type > (nginx-configuration > - (server-list > + (server-blocks > (list (nginx-server-configuration > (server-name '("www.example.com")) > (root "/srv/http/www.example.com") > @@ -14144,7 +14144,7 @@ requests with two servers. > @item @code{config-file} (default: @code{#f}) > If the @var{config-file} is provided, this will be used, rather than > generating a configuration file from the provided > @code{log-directory}, -@code{run-directory}, @code{server-list} and > @code{upstream-list}. For +@code{run-directory}, > @code{server-blocks} and @code{upstream-list}. For proper operation, > these arguments should match what is in @var{config-file} to ensure > that the directories are created when the service is activated. Thanks for spotting this. Obviously I missed it when removing the nginx-service procedure. It looks like this is also a problem elsewhere in the docs, as I can see a few more instances of server-list. Also, it looks like upstream-list has exactly the same problem. I think it would be good to fix all of the server-list bits in this patch at least. Could you add them? [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 963 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#28356] [PATCH 1/1] doc: Replace server-list with server-blocks. 2017-09-07 5:58 ` Christopher Baines @ 2017-09-07 7:46 ` Oleg Pykhalov 2017-09-10 11:02 ` bug#28356: " Christopher Baines 0 siblings, 1 reply; 5+ messages in thread From: Oleg Pykhalov @ 2017-09-07 7:46 UTC (permalink / raw) To: Christopher Baines; +Cc: bug#28356 [-- Attachment #1: Type: text/plain, Size: 1531 bytes --] Hello Christopher, Christopher Baines <mail@cbaines.net> writes: > On Tue, 05 Sep 2017 14:15:30 +0300 > Oleg Pykhalov <go.wigust@gmail.com> wrote: > >> From 2799970350073812c2d458d9750649cdf7f23315 Mon Sep 17 00:00:00 2001 >> From: Oleg Pykhalov <go.wigust@gmail.com> >> Date: Tue, 5 Sep 2017 14:04:14 +0300 >> Subject: [PATCH 1/1] doc: Replace server-list with server-blocks. >> >> * doc/guix.texi (Web Services): Replace 'server-list' with >> 'server-blocks'. --- >> doc/guix.texi | 10 +++++----- >> 1 file changed, 5 insertions(+), 5 deletions(-) >> >> diff --git a/doc/guix.texi b/doc/guix.texi >> index e7a88e19f..9ac52535b 100644 > > I'm having problems applying this: > > error: sha1 information is lacking or useless (doc/guix.texi). > error: could not build fake ancestor > > I think this might be happening, as I don't have something locally that > coresponds to e7a88e19f. Is this patch on some version of guix.texi > that hasn't made it in to the master branch yet? Yes, sorry for that. >> … > Thanks for spotting this. Obviously I missed it when removing the > nginx-service procedure. > > It looks like this is also a problem elsewhere in the docs, as I can > see a few more instances of server-list. Also, it looks like > upstream-list has exactly the same problem. I think it would be good to > fix all of the server-list bits in this patch at least. Could you add > them? Sure, I replaced all instances in which Emacs (query-replace) found in doc/guix.texi. [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: 0001-doc-Replace-server-list-with-server-blocks.patch --] [-- Type: text/x-patch, Size: 2687 bytes --] From 0f4ec7e7cfbf5619ce029e6dc17819d5be104b87 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov <go.wigust@gmail.com> Date: Tue, 5 Sep 2017 14:04:14 +0300 Subject: [PATCH] doc: Replace server-list with server-blocks. * doc/guix.texi (Web Services): Replace 'server-list' with 'server-blocks'. --- doc/guix.texi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 3e9593d0c..b06108524 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -14037,7 +14037,7 @@ A simple example configuration is given below. @example (service nginx-service-type (nginx-configuration - (server-list + (server-blocks (list (nginx-server-configuration (server-name '("www.example.com")) (root "/srv/http/www.example.com") @@ -14085,7 +14085,7 @@ The directory to which NGinx will write log files. The directory in which NGinx will create a pid file, and write temporary files. -@item @code{server-list} (default: @code{'()}) +@item @code{server-blocks} (default: @code{'()}) A list of @dfn{server blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-server-configuration>}. @@ -14096,7 +14096,7 @@ HTTPS. @example (service nginx-service-type (nginx-configuration - (server-list + (server-blocks (list (nginx-server-configuration (server-name '("www.example.com")) (root "/srv/http/www.example.com") @@ -14121,7 +14121,7 @@ requests with two servers. (service nginx-service-type (nginx-configuration - (server-list + (server-blocks (list (nginx-server-configuration (server-name '("www.example.com")) (root "/srv/http/www.example.com") @@ -14143,9 +14143,9 @@ requests with two servers. @item @code{file} (default: @code{#f}) If a configuration @var{file} is provided, this will be used, rather than generating a configuration file from the provided @code{log-directory}, -@code{run-directory}, @code{server-list} and @code{upstream-list}. For -proper operation, these arguments should match what is in @var{file} to -ensure that the directories are created when the service is activated. +@code{run-directory}, @code{server-blocks} and @code{upstream-list}. For +proper operation, these arguments should match what is in @var{file} to ensure +that the directories are created when the service is activated. This can be useful if you have an existing configuration file, or it's not possible to do what is required through the other parts of the -- 2.14.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#28356: [PATCH 1/1] doc: Replace server-list with server-blocks. 2017-09-07 7:46 ` Oleg Pykhalov @ 2017-09-10 11:02 ` Christopher Baines 0 siblings, 0 replies; 5+ messages in thread From: Christopher Baines @ 2017-09-10 11:02 UTC (permalink / raw) To: Oleg Pykhalov; +Cc: 28356-done [-- Attachment #1: Type: text/plain, Size: 1828 bytes --] On Thu, 07 Sep 2017 10:46:29 +0300 Oleg Pykhalov <go.wigust@gmail.com> wrote: > Hello Christopher, > > Christopher Baines <mail@cbaines.net> writes: > > > On Tue, 05 Sep 2017 14:15:30 +0300 > > Oleg Pykhalov <go.wigust@gmail.com> wrote: > > > >> From 2799970350073812c2d458d9750649cdf7f23315 Mon Sep 17 00:00:00 > >> 2001 From: Oleg Pykhalov <go.wigust@gmail.com> > >> Date: Tue, 5 Sep 2017 14:04:14 +0300 > >> Subject: [PATCH 1/1] doc: Replace server-list with server-blocks. > >> > >> * doc/guix.texi (Web Services): Replace 'server-list' with > >> 'server-blocks'. --- > >> doc/guix.texi | 10 +++++----- > >> 1 file changed, 5 insertions(+), 5 deletions(-) > >> > >> diff --git a/doc/guix.texi b/doc/guix.texi > >> index e7a88e19f..9ac52535b 100644 > > > > I'm having problems applying this: > > > > error: sha1 information is lacking or useless (doc/guix.texi). > > error: could not build fake ancestor > > > > I think this might be happening, as I don't have something locally > > that coresponds to e7a88e19f. Is this patch on some version of > > guix.texi that hasn't made it in to the master branch yet? > > Yes, sorry for that. > > >> … > > Thanks for spotting this. Obviously I missed it when removing the > > nginx-service procedure. > > > > It looks like this is also a problem elsewhere in the docs, as I can > > see a few more instances of server-list. Also, it looks like > > upstream-list has exactly the same problem. I think it would be > > good to fix all of the server-list bits in this patch at least. > > Could you add them? > > Sure, I replaced all instances in which Emacs (query-replace) found in > doc/guix.texi. Awesome, I've now pushed this, along with another patch that fixes the same issue for upstream-list/upstream-blocks. [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 963 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-09-10 11:03 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-09-05 11:13 [bug#28356] [PATCH 0/1] doc: Replace server-list with server-blocks Oleg Pykhalov 2017-09-05 11:15 ` [bug#28356] [PATCH 1/1] " Oleg Pykhalov 2017-09-07 5:58 ` Christopher Baines 2017-09-07 7:46 ` Oleg Pykhalov 2017-09-10 11:02 ` bug#28356: " Christopher Baines
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/guix.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).