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: Fri, 16 Nov 2018 13:58:59 -0500 Message-ID: <87va4wzw4x.fsf@netris.org> References: <87zhuaiyua.fsf@netris.org> <1c3c23f5-c778-7878-3150-dc1db34be877@gmail.com> <87zhu94djv.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542394714 4293 195.159.176.226 (16 Nov 2018 18:58:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2018 18:58:34 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: guile-user@gnu.org, Zelphir Kaltstahl To: Alex Vong Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Nov 16 19:58:30 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 1gNjK1-0000yX-GC for guile-user@m.gmane.org; Fri, 16 Nov 2018 19:58:29 +0100 Original-Received: from localhost ([::1]:46417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNjM7-0005Z1-Sb for guile-user@m.gmane.org; Fri, 16 Nov 2018 14:00:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNjLP-0005Yq-Ek for guile-user@gnu.org; Fri, 16 Nov 2018 13:59:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNjLM-0003F2-8B for guile-user@gnu.org; Fri, 16 Nov 2018 13:59:55 -0500 Original-Received: from world.peace.net ([64.112.178.59]:49642) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gNjLM-000368-30 for guile-user@gnu.org; Fri, 16 Nov 2018 13:59:52 -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 1gNjLB-0005hq-86; Fri, 16 Nov 2018 13:59:41 -0500 In-Reply-To: <87zhu94djv.fsf@gmail.com> (Alex Vong's message of "Fri, 16 Nov 2018 16:44:20 +0800") 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:15001 Archived-At: Hi Alex, Alex Vong writes: > Zelphir Kaltstahl writes: > >> I took another look at the page you linked to. The issue is, that I >> would like to try Guix package manager to install GNUTLS + Guile >> bindings, but Guix itself has the requirement of GNUTLS + Guile >> bindings. See: >> https://www.gnu.org/software/guix/manual/en/html_node/Requirements.html#Requirements >> >> So I guess I would need to somehow get GNUTLS and Guile bindings working >> before getting Guix and then when I have Guix, I can probably somehow >> link to the Guix installed GNUTLS and Guile bindings. >> >> Now I don't know where I would get the Guile bindings from. Are they >> included in the releases on https://gnutls.org/ ? >> > As Mark has pointed out, if you use the binary installation of guix, > then you can install gnutls using guix. However, I prefer to build guix > from source. Therefore, I use the standard "configure, make, make > install" method with appropriate CPPFLAGS, CFLAGS, CXXFLAGS and LDFLAGS > (I include some hardending flags[0][1]): > > ./configure --with-included-libtasn1 --with-included-unistring --with-guile-site-dir=/usr/local/share/guile/site/2.2 > make > make check > make install > > The above works in Debian. Apart from it, you also have to build > scheme-bytestructure, guile-git and guile-sqlite3 from source using the > same method. Besides, it is important to keep gnutls up to date (since > it is a piece of security-sensitive software). Interesting. I haven't tried building Guix from source on Debian in a few years, but it's not clear to me how your suggestion above addresses the original problem that Zelphir mentioned, namely that Guix requires the Guile bindings for GnuTLS, which are not included in Debian. I don't see any mention of building those bindings above. Am I missing something? Mark