From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.user Subject: Re: How to build GNUTLS Guile bindings on Xubuntu Date: Thu, 15 Nov 2018 02:28:02 -0500 Message-ID: <87zhuaiyua.fsf@netris.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542266837 32324 195.159.176.226 (15 Nov 2018 07:27:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2018 07:27:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: guile-user@gnu.org To: Zelphir Kaltstahl Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Nov 15 08:27:13 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gNC3U-0008G1-Gl for guile-user@m.gmane.org; Thu, 15 Nov 2018 08:27:12 +0100 Original-Received: from localhost ([::1]:36591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNC5a-0004Lo-Ls for guile-user@m.gmane.org; Thu, 15 Nov 2018 02:29:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNC58-0004LV-2a for guile-user@gnu.org; Thu, 15 Nov 2018 02:28:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNC54-000428-TI for guile-user@gnu.org; Thu, 15 Nov 2018 02:28:54 -0500 Original-Received: from world.peace.net ([64.112.178.59]:59730) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gNC52-0003yc-Js for guile-user@gnu.org; Thu, 15 Nov 2018 02:28:50 -0500 Original-Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gNC4w-00047Q-1q; Thu, 15 Nov 2018 02:28:42 -0500 In-Reply-To: (Zelphir Kaltstahl's message of "Thu, 15 Nov 2018 01:49:13 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.112.178.59 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14991 Archived-At: Hi Zelphir, Zelphir Kaltstahl writes: > I read in the docs at > https://www.gnu.org/software/guile/manual/html_node/Web-Client.html that > Guile will dynamically make use of GNUTLS for HTTPS requests. However, I > don't seem to have the bindings installed. There is a link to a guide on > the same docs page, but the link is dead: > https://www.gnu.org/software/guile/manual/gnutls-guile/Guile-Preparations.html#Guile-Preparations > . More searching showed me the following: > > There seems to have been some bug which prevented some tests on Debian > from completing: > > Bug discussions seem to indicate the bug was fixed?: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821457 > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805863 > > Then there is a commit removing Guile bindings from the gnutls-dev > package on Debian: > > https://salsa.debian.org/gnutls-team/gnutls/commit/ebb7130b47dc08311c1de2c189758a73bbaeca27#58ef006ab62b83b4bec5d81fe5b32c3b4c2d1cc2_35_35 If you look closely, those two bugs were "fixed" by the above commit, i.e. by simply disabling the Guile bindings in Debian's GnuTLS package. > Apart from that, I could not find a download link or repository of the > bindings, like I could for other libraries I so far used in Guile and > run configure make make install in it. So I do not know how to get the > bindings for my system, so that my Guile will be able to make requests > using HTTPS as well as HTTP. The bindings in question are not a separate package. They are built and installed by GnuTLS itself, unless explicitly disabled by passing "--disable-guile" to the GnuTLS configure script, as Debian now does. > The bindings seem to be available on GUIX: > > https://gitlab.digitalcourage.de/htgoebel/guix/commit/1dbe3a8db0a3e5a8e5f9b30e6f6a6bbfb699275b Note that the repository above is not the official Guix repository, but rather someone's personal variant. Here's the same commit in the official Guix repository: https://git.sv.gnu.org/cgit/guix.git/commit/?id=1dbe3a8db0a3e5a8e5f9b30e6f6a6bbfb699275b > How can I make it work on a Xubuntu 18.04? Yes, an easy solution would be to install Guix on top of Xubuntu, and installing the 'guile' and 'gnutls' packages from Guix. Note that the binaries from Guix are self-contained and independent of the host system, in the sense that they are installed in different directories (within /gnu/store) and don't use any libraries from the host system, not even the C library. Guix installs only in /gnu, /var/guix, /var/log/guix, /etc/guix, ~/.config/guix, and ~/.guix-profile. You must set your environment variables to point within ~/.guix-profile, e.g. add ~/.guix-profile/bin to your PATH, to enable the use of software from Guix. If you'd like to try it, the instructions are here: https://www.gnu.org/software/guix/manual/en/html_node/Installation.html Mark