From: Christopher Baines <mail@cbaines.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 37412@debbugs.gnu.org
Subject: [bug#37412] [PATCH 1/2] gnu: Add guix-data-service.
Date: Tue, 24 Sep 2019 20:34:55 +0100 [thread overview]
Message-ID: <877e5xqyhs.fsf@cbaines.net> (raw)
In-Reply-To: <87impk5957.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 3026 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
> Christopher Baines <mail@cbaines.net> skribis:
>
>> * gnu/packages/web.scm (guix-data-service): New variable.
>
> [...]
>
>> + (native-inputs
>> + `(("autoconf" ,autoconf)
>> + ("automake" ,automake)
>> + ("emacs-with-modules" ,(directory-union
>> + "emacs-union"
>> + (list emacs-no-x
>> + emacs-htmlize)))
>
> Should it be ‘emacs-minimal’?
It probably could be, but at the moment this doesn't work with the Emacs
Lisp code that's run at package build time to convert the README to HTML
[1].
1: https://git.savannah.gnu.org/cgit/guix/data-service.git/tree/Makefile.am#n35
Do you know if there's a way to remove the need for the autoloading
behaviour from the guix-emacs.el file? The error I get when using
emacs-minimal suggests htmlize isn't being found.
>> + (native-search-paths
>> + ;; XXX guile-git requires this to be set, maybe there's a better way
>> + (list (search-path-specification
>> + (variable "GIT_SSL_CAINFO")
>> + (file-type 'regular)
>> + (separator #f)
>> + (files '("etc/ssl/certs/ca-certificates.crt")))))
>
> Like I wrote, I’d rather remove the search path and add the environment
> variable…
Yeah, I'm actually unsure if this is doing anything. I'll remove it.
>> + (start #~(make-forkexec-constructor
>> + (list #$(file-append package
>> + "/bin/guix-data-service")
>> + "--pid-file=/var/run/guix-data-service/pid"
>> + #$(string-append "--port=" (number->string port))
>> + #$(string-append "--host=" host)
>> + ;; Perform any database migrations when the
>> + ;; service is started
>> + "--update-database")
>> +
>> + #:user #$user
>> + #:group #$group
>> + #:pid-file "/var/run/guix-data-service/pid"
>> + ;; Allow time for migrations to run
>> + #:pid-file-timeout 60
>> + #:environment-variables
>> + `(,(string-append
>> + "GUIX_LOCPATH=" #$glibc-utf8-locales "/lib/locale")
>> + "LC_ALL=en_US.utf8")
>> + #:log-file "/var/log/guix-data-service/web.log"))
>
> … here. ↑
So, this shepherd service which serves requests doesn't do any Git
access, and the process jobs shepherd service defined below actually
already sets it:
"GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt"
So yeah, I think I can just remove the native-search-paths bit from the
package definition.
> But anyway, these are details so I think you can go ahead and push as
> you see fit.
Great, thanks for taking a look Ludo!
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]
prev parent reply other threads:[~2019-09-24 19:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-15 18:18 [bug#37412] [PATCH 0/2] Add package and service for the Guix Data Service Christopher Baines
2019-09-15 18:21 ` [bug#37412] [PATCH 1/2] gnu: Add guix-data-service Christopher Baines
2019-09-15 18:21 ` [bug#37412] [PATCH 2/2] services: Add the Guix Data Service Christopher Baines
2019-09-16 7:53 ` Ludovic Courtès
2019-09-22 12:15 ` Christopher Baines
2019-09-15 20:45 ` [bug#37412] [PATCH 1/2] gnu: Add guix-data-service Alex ter Weele
2019-09-15 21:29 ` Christopher Baines
2019-09-16 7:48 ` Ludovic Courtès
2019-09-22 10:18 ` Christopher Baines
2019-09-22 21:04 ` Ludovic Courtès
2019-09-25 7:46 ` bug#37412: " Christopher Baines
2019-09-16 7:55 ` [bug#37412] " Ludovic Courtès
2019-09-22 10:10 ` Christopher Baines
2019-09-22 12:03 ` Christopher Baines
2019-09-22 12:03 ` [bug#37412] [PATCH 2/2] services: Add the Guix Data Service Christopher Baines
2019-09-22 21:11 ` [bug#37412] [PATCH 1/2] gnu: Add guix-data-service Ludovic Courtès
2019-09-24 19:34 ` Christopher Baines [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877e5xqyhs.fsf@cbaines.net \
--to=mail@cbaines.net \
--cc=37412@debbugs.gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).