From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Vong Newsgroups: gmane.lisp.guile.user Subject: Re: How to build GNUTLS Guile bindings on Xubuntu Date: Sat, 17 Nov 2018 07:19:44 +0800 Message-ID: <87r2fk4nlb.fsf@gmail.com> References: <87zhuaiyua.fsf@netris.org> <1c3c23f5-c778-7878-3150-dc1db34be877@gmail.com> <87zhu94djv.fsf@gmail.com> <87va4wzw4x.fsf@netris.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1542410306 30343 195.159.176.226 (16 Nov 2018 23:18:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2018 23:18:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: guile-user@gnu.org, Zelphir Kaltstahl To: Mark H Weaver Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Nov 17 00:18:22 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 1gNnNV-0007nC-1L for guile-user@m.gmane.org; Sat, 17 Nov 2018 00:18:21 +0100 Original-Received: from localhost ([::1]:47387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNnPb-00039S-Ht for guile-user@m.gmane.org; Fri, 16 Nov 2018 18:20:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNnPC-00038r-Ao for guile-user@gnu.org; Fri, 16 Nov 2018 18:20:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNnP8-00047y-VV for guile-user@gnu.org; Fri, 16 Nov 2018 18:20:06 -0500 Original-Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]:37914) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gNnP8-000474-Ov for guile-user@gnu.org; Fri, 16 Nov 2018 18:20:02 -0500 Original-Received: by mail-pl1-x643.google.com with SMTP id e5so1793348plb.5 for ; Fri, 16 Nov 2018 15:20:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=XZJBaRxizpHhLbyhlvnDpwIFNtw0nf88HxCCg+SjUTo=; b=W8PFSVvuvxdhTW3hnopGJPBzWSkLDyP6Wr9LE39Sy8j7AElulzez6C3YaZ22ofXUh4 plVd7ciB3GkDzEA9YhoPQuSMnDKYZ7XZWfyQTCwKkK3SInJpbbJEedIR16qtdyIbn3f9 A7VQ7WOBe6CTyzVxi3qLaZum0qhDzBiYnPM3HvjS9ayXOVErRuGf1FFwwC/7oJe2vjbk MduIS/eff6NMn6WmYk40UsCDRKHc/0MvYkvKwgt6y3+5z0aqz405y/nivz5tA0CGoU6E wX7dQKCS22kAN7hj0kFGB0uwVvEO0J0pCJGkZt7jDnBdCFn+OUslCTNRgm2nqOc5sis8 xDdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=XZJBaRxizpHhLbyhlvnDpwIFNtw0nf88HxCCg+SjUTo=; b=Zbx+WyQSVrE+zCLqXQZUnBCJ1zBTEltWb80cpfKB9wI7nTmZiI2/dafhqBt0ZQwJ5v mfl2KTjePsRl4hR9JTRWd+o2W+mjT9huQzC1o9/CZty6ZJeezIJAX0jMS/kMWJ+J54jr 2kjv1cJAjHFT7phpatpr0n1IX3uTUEXjha7i2xQptv6V1iPrVYpaeQGkypOybpYk7iAl nekN+OvB7PokKpUrRFfaUIDlgo5B9Bu2QACdjlWWMdfz/43C1TgvfTyV8rhxFXA8Wtgt 4uQPXVilSU/C4ay4cWeFEE55OQvHb99fKmVPpYr7c0SosanozpBOEByP4McgYDkzCV/Y Pp7g== X-Gm-Message-State: AGRZ1gLZUv8l2JuIsG9NewqshQVCgUKnditEwiNuzR0YArZjEDoPbvsk vCYQbuobuZAzYXh3maYDTAg= X-Google-Smtp-Source: AJdET5c+HFRUVZw98ISZbzzxWA2/eHqsv1DZUONKY+XIWhVWZbw8YKhcboFydNBKaxLTmB9uXb/Abw== X-Received: by 2002:a17:902:6b4a:: with SMTP id g10-v6mr5162028plt.19.1542410401518; Fri, 16 Nov 2018 15:20:01 -0800 (PST) Original-Received: from debian (42-3-197-124.static.netvigator.com. [42.3.197.124]) by smtp.gmail.com with ESMTPSA id t78-v6sm58849345pfk.59.2018.11.16.15.19.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Nov 2018 15:20:00 -0800 (PST) In-Reply-To: <87va4wzw4x.fsf@netris.org> (Mark H. Weaver's message of "Fri, 16 Nov 2018 13:58:59 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::643 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:15002 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello Mark, Mark H Weaver writes: > 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=3D/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? > Maybe what I wrote is not clear. What I mean is that since Debian build of gnutls does not include the guile bindings, we have to build gnutls from the source tarball ourselves. The flag "--with-guile-site-dir=3D/usr/local/share/guile/site/2.2" instructs the build script to install the guile bindings into "/usr/local/share/guile/site/2.2". > Mark --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQwb8uPLAHCXSnTBVZh71Au9gJS8gUCW+9QkQAKCRBh71Au9gJS 8s89AP9y5dnjJ1znu6Cck9CyMISem4vRkdxRB7tspp3TkXm5AwD/e8NXwP8oYlst 8fB63fTH/W6hdiAMXEd2kj+mnjFVAQQ= =0yIC -----END PGP SIGNATURE----- --=-=-=--