From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:47499) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iD20u-0005hX-Es for guix-patches@gnu.org; Wed, 25 Sep 2019 03:47:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iD20s-0000bj-UX for guix-patches@gnu.org; Wed, 25 Sep 2019 03:47:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60193) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iD20s-0000be-Nu for guix-patches@gnu.org; Wed, 25 Sep 2019 03:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iD20s-0005N9-MQ for guix-patches@gnu.org; Wed, 25 Sep 2019 03:47:02 -0400 Subject: bug#37412: [PATCH 1/2] gnu: Add guix-data-service. Resent-To: guix-patches@gnu.org Resent-Message-ID: References: <87v9tt1l0h.fsf@cbaines.net> <20190915182127.10525-1-mail@cbaines.net> <87y2yofzqq.fsf@gnu.org> <87pnjs4osk.fsf@cbaines.net> <87muew59gn.fsf@gnu.org> From: Christopher Baines In-reply-to: <87muew59gn.fsf@gnu.org> Date: Wed, 25 Sep 2019 08:46:20 +0100 Message-ID: <875zlgrf77.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-done@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi Chris, > > Christopher Baines skribis: > >> Ludovic Court=C3=A8s writes: >> >>> Good morning, Chris! >>> >>> Christopher Baines skribis: >>> >>>> * gnu/packages/web.scm (guix-data-service): New variable. >>> >>> Woohoo! \o/ >>> >>>> + (inputs >>>> + `(("guile" ,guile-2.2) >>> >>> Guile should be =E2=80=98native-inputs=E2=80=99 because we use it for i= ts compiler >>> (which can act as a =E2=80=9Ccross-compiler=E2=80=9D with =E2=80=98--ta= rget=E2=80=99). >> >> This makes sense, but the scripts will still refer to the guile used to >> build the package, so building for a different architecture won't work >> right? Does the package somehow need to take as input two Guiles, one >> for build time, and one for runtime? > > Yes, we probably need to have Guile both as input and native input. > Well don=E2=80=99t lose your hair on it anyway. I've just gone with making it a native input for now. >>>> + (native-search-paths >>>> + ;; guile-git requires this to be set >>>> + (list (search-path-specification >>>> + (variable "GIT_SSL_CAINFO") >>>> + (file-type 'regular) >>>> + (separator #f) >>>> + (files '("etc/ssl/certs/ca-certificates.crt"))))) >>> >>> It=E2=80=99s a bit of a workaround for >>> , isn=E2=80=99t it? :-) >>> >>> What about either removing it, or adding an =E2=80=9CXXX=E2=80=9D to th= e comment? >> >> I can't quite remember, I think I added that a long while ago when >> trying to get the Guix service working. I'm not sure it's a great >> approach. I'll add XXX to the comment though. > > What about removing it altogether and instead setting GIT_SSL_CAINFO in > the service itself? Turns out I was already setting GIT_SSL_CAINFO in the service, so I've removed the native-search-paths from the package definition. I've now pushed both patches, thanks for taking a look! Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl2LG0xfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XeH3Q//Vk4SMCrj62VD40hxNPW768R9tu2SCEycpZPw5zfdA5Ct2lxQO+8PPYEe aEjw9fGkJsRc0Qq0h9wkW891vpKe4s5UKMCDBAhqtnN/YK0drVG8u4wi5+GnAqwA xNtIeTZWCXWC58MWhE0HZOqznYYvsTRhbg+784uQLVdyrWHsnuVMZLeSkS8rGkSL D9vS369wXSo812h7240Rk8t7DowVhFK6pIoWUDO/Sf6sxzH+cbMw6ntZ450xSpT2 Lirv1bJI0ycT89h2GRw33AWCz6Yd5PHWEaGH+D6Rp0+8GmQqNPesePDR6f+7yHrq nGuTkkk5YFhTYjZozCLO6g+lY3uZKMwUjHTWoVL9U7D2VlMjflVITQFY3ZX+N1KV iJ2B9XTZVogcyzPYb2uplzcwGOV0ABcsPqF3D5ajjgrfsY9CYvNuhzhhRBbu6bBE +dhPlDinmo1hUfTXznMEDKRFLZpICshk9y0z8oCDySX98cqqB59cBGdxSXpoOAlJ 7+Ne2rFGfuVqF2tCUgUHhaLbUb3Q8BGQpTKaR/4Vy9RPV2C6U+3yGu4bQURpDlSU My/UwwyrhmX2923FJZSm6eCMzwquDGBN865OM/I/hwQzLVcdjtpckfNP32UcP0Cm KKCiyhTZldqtJZXvoXVqbU79f9fpWLnKdw3LucurYJ+jJTYzjOM= =ToPc -----END PGP SIGNATURE----- --=-=-=--