From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:58748) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCqbT-0002jm-SL for guix-patches@gnu.org; Tue, 24 Sep 2019 15:36:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCqbS-0006C4-Mv for guix-patches@gnu.org; Tue, 24 Sep 2019 15:36:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59597) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCqbS-0006By-IR for guix-patches@gnu.org; Tue, 24 Sep 2019 15:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iCqbS-0004mV-Do for guix-patches@gnu.org; Tue, 24 Sep 2019 15:36:02 -0400 Subject: [bug#37412] [PATCH 1/2] gnu: Add guix-data-service. Resent-Message-ID: References: <87v9tt1l0h.fsf@cbaines.net> <20190922120337.3533-1-mail@cbaines.net> <87impk5957.fsf@gnu.org> From: Christopher Baines In-reply-to: <87impk5957.fsf@gnu.org> Date: Tue, 24 Sep 2019 20:34:55 +0100 Message-ID: <877e5xqyhs.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 37412@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Christopher Baines 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 =E2=80=98emacs-minimal=E2=80=99? 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=E2=80=99d rather remove the search path and add the envir= onment > variable=E2=80=A6 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=3D/var/run/guix-data-service/pid" >> + #$(string-append "--port=3D" (number->string port= )) >> + #$(string-append "--host=3D" 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=3D" #$glibc-utf8-locales "/lib/locale= ") >> + "LC_ALL=3Den_US.utf8") >> + #:log-file "/var/log/guix-data-service/web.log")) > > =E2=80=A6 here. =E2=86=91 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=3D/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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl2Kb99fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XdAcw/9HcYfWfSQ40DqlNU5ylV1VY3AmCf/2bSiTdQFPgy2fAMmrOuaMJJxlEIh be5VVrtf+MLCmAqyHKI2WTbeaaso7hBUFAK53dmy6koyTLuSbjNtRccLzWKRFymn SRq1NoigTm5WZuW5EZuzozmhty5qkQd0Wcmj2WmZR5ZyWChFyaP284LZPIACToFA g9L1aFT2cSUG8srGMDFKPhI+ge/f5u1fby+weitTpuH4k0sykT1CfUpfi/fk01ml xTFKxkSd3lJ8f4CFoqPDrepZohAV+ZfyrpRAFoKCaq96k0o3s4i5hVrr5UmWjC2X LxifKMFRSJgxf2gmIvnYx6ABqPXkcX0oJ1WC5dAcKsS80sJBog5qupaCRaEvgFKg LuSnq1uR/RBGJc35Ifej5jrhFIt6hYlfQK9Vswacew6kvjH8UMiQ9HmJo7ja/DaU Qs9nx3+B0EYRgqnwQHSenDOOjMgoqFBBO96mo5MzlL2FdnhgUj0TnXYyY4M0tEd3 3WmOrKdzJyFFH8l8/PSdGX++BiNPy1WjLq4cOW7Md4jAfZDkPW/VI9OzC8YDhcVp d82UNc9I4Dcb0Yo4sFwCTPRWGeXYiK8ULDbABL84AIMdWqsvqvaiKz4fK3CO2fKt r5e5TlwkDrJ7PsMkON0stqQ3CIo9npeQKawKbTZFQz4TdrzTtME= =gT0Y -----END PGP SIGNATURE----- --=-=-=--