From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: [PATCH] gnu: lynx: Fix GnuTLS support. Date: Fri, 07 Oct 2016 10:42:38 -0400 Message-ID: <877f9k8bkx.fsf@openmailbox.org> References: <87oa2x3rxc.fsf@openmailbox.org> <20161007012854.GB6335@jasmine> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsWMV-0000EA-71 for guix-devel@gnu.org; Fri, 07 Oct 2016 10:43:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsWMQ-00037W-VC for guix-devel@gnu.org; Fri, 07 Oct 2016 10:42:58 -0400 Received: from mail.openmailbox.org ([62.4.1.34]:54390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsWMQ-00037I-Hq for guix-devel@gnu.org; Fri, 07 Oct 2016 10:42:54 -0400 In-Reply-To: <20161007012854.GB6335@jasmine> (Leo Famulari's message of "Thu, 6 Oct 2016 21:28:54 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Famulari Cc: guix-devel@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Leo Famulari writes: > On Thu, Oct 06, 2016 at 08:48:31PM -0400, Kei Kebreau wrote: >> HTTPS connections using lynx work on my machine with this patch. Would >> someone else like to see about this? > > Thanks for working on this! > > It still fails for me, but in a different way than before [0]: > > ----- > $ lynx https://famulari.name=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 > > Looking up famulari.name > Making HTTPS connection to famulari.name > Retrying connection without TLS. > Looking up famulari.name > Making HTTPS connection to famulari.name > Alert!: Unable to make secure connection to remote host. > > lynx: Can't access startfile https://famulari.name/ > ----- > > I assume that I'm missing some environment variable on this Guix / > Debian system. Any ideas? > > If it works for you, I'd say go for it. > >> From c18ab7b9c24f07ab86529d7f5f08f4dd21cea549 Mon Sep 17 00:00:00 2001 >> From: Kei Kebreau >> Date: Thu, 6 Oct 2016 20:38:39 -0400 >> Subject: [PATCH] gnu: lynx: Fix GnuTLS support. >>=20 >> * gnu/packages/lynx.scm (lynx)[arguments]: Pass "--with-gnutls" in > > I think this commit message is truncated. > > [0] Without this patch, lynx says: > Alert!: This client does not contain support for HTTPS URLs. I get the same problem here. Lynx does mention that GnuTLS support is experimental. Your and Tobias' page work using OpenSSL instead. Try the new patch attached. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=0001-gnu-lynx-Support-HTTPS-SSL-connections.patch Content-Transfer-Encoding: quoted-printable From=20ee3a889e6902686de4d7c949afcb8cd4a810bd0f Mon Sep 17 00:00:00 2001 From: Kei Kebreau Date: Fri, 7 Oct 2016 10:36:11 -0400 Subject: [PATCH] gnu: lynx: Support HTTPS (SSL) connections * gnu/packages/lynx.scm (lynx)[inputs]: Add 'openssl' and remove 'gnutls'. [arguments]: Add configure flags for OpenSSL support; remove configure flags for GnuTLS support. =2D-- gnu/packages/lynx.scm | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/gnu/packages/lynx.scm b/gnu/packages/lynx.scm index 3182b3e..84e9038 100644 =2D-- a/gnu/packages/lynx.scm +++ b/gnu/packages/lynx.scm @@ -46,26 +46,28 @@ ("perl" ,perl))) (inputs `(("ncurses" ,ncurses) ("libidn" ,libidn) =2D ("gnutls" ,gnutls) + ("openssl" ,openssl) ("libgcrypt" ,libgcrypt) ("unzip" ,unzip) ("zlib" ,zlib) ("gzip" ,gzip) ("bzip2" ,bzip2))) (arguments =2D `(#:configure-flags '("--with-pkg-config" =2D "--with-screen=3Dncurses" =2D "--with-zlib" =2D "--with-bzlib" =2D "--with-gnutls" =2D ;; "--with-socks5" ; XXX TODO =2D "--enable-widec" =2D "--enable-ascii-ctypes" =2D "--enable-local-docs" =2D "--enable-htmlized-cfg" =2D "--enable-gzip-help" =2D "--enable-nls" =2D "--enable-ipv6") + `(#:configure-flags + (let ((openssl (assoc-ref %build-inputs "openssl"))) + `("--with-pkg-config" + "--with-screen=3Dncurses" + "--with-zlib" + "--with-bzlib" + ,(string-append "--with-ssl=3D" openssl) + ;; "--with-socks5" ; XXX TODO + "--enable-widec" + "--enable-ascii-ctypes" + "--enable-local-docs" + "--enable-htmlized-cfg" + "--enable-gzip-help" + "--enable-nls" + "--enable-ipv6")) #:tests? #f ; no check target #:phases (alist-replace 'install =2D-=20 2.10.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX97RfAAoJEOal7jwZRnoNhQwP/3/cZHNH8TwuMafS7qbp7Oy0 gBs5bNdasJmI/dQj3Hpk/FK99h1gJZlLQqI+I+UHzVQ7qPC4mUyD+vUQ5MT6Z4Lk p8SFekEcfDgViGE6W7pKm4FBQhnq7Vx06NhGjTy+DHBVQGjJHVWd1bmtLtbIiQxF 2SslXVivOixHF019eb09P0vs02LMIekCJOk/IGYhFfzNevBBFEZJIsnEs8ZsmyMQ 59V1XpXMxGcGO1mRfhusJT4zAu5joWfceRDluYwyIZPythpYondvvebGcXAU4coS Dl2d5Mf8odkUOun5Db8HOI1ZSD2MouTq8k6JKevL6H9qy3vpvVox+0BrnR1bbRHW m0soCNzuR6SPzzdcsMbIHjYyImmqGL/2o/FQDkVMFLp6wrptn1gxqUh5iYixZ6qg JOCbMW4NejtsY8tPm5pZ3MoVrKoTeEAu0gMXB/2uid+3vagGJS346ZKRvh6LWS8x WffRWI1gp/mnR5A51tncLOv/pFuBoz0eJS8pAJXDW4TJbnqIIvjlZwilxvdpPbZs gMKZDbukeHS8dIz9EiH4zCsLSpn5vAWp5enszqxbJiAAFXy3JVtqbIpKmT3EN4WN T3KndK4V/D+9PS+5HYy66gu/eZcXgzJ45wf6Mypxf/jXaer1tVPvMvIdjg+Kn0fK MPetQGL9P1bKzqDNhATM =eNiN -----END PGP SIGNATURE----- --==-=-=--