diff --git a/gnutls-fix.patch b/gnutls-fix.patch new file mode 100644 index 0000000..e4b1943 --- /dev/null +++ b/gnutls-fix.patch @@ -0,0 +1,31 @@ +From 7f04197fef905790fd392f8d686d00ae95a0d04c Mon Sep 17 00:00:00 2001 +From: Eric Bavier +Date: Mon, 4 Dec 2017 10:33:31 -0600 +Subject: utils: Fix cond-expand for Guile 2.0. + +* guix/build/download.scm (tls-wrap): Use 'guile-2.2' feature instead. +--- + guix/build/download.scm | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/guix/build/download.scm b/guix/build/download.scm +index 4490d22..609a100 100644 +--- a/guix/build/download.scm ++++ b/guix/build/download.scm +@@ -308,10 +308,10 @@ host name without trailing dot." + (register-tls-record-port record port) + + ;; Write HTTP requests line by line rather than byte by byte: +- ;; . This is not possible on Guile 2.0. ++ ;; . This is possible with Guile >= 2.2. + (cond-expand +- (guile-2.0 #f) +- (else (setvbuf record 'line))) ++ (guile-2.2 (setvbuf record 'line)) ++ (else #f)) + + record))) + +-- +cgit v1.0-41-gc330 + diff --git a/guix.changes b/guix.changes index 3dc04ae..49fb7bb 100644 --- a/guix.changes +++ b/guix.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon May 28 13:29:04 UTC 2018 - sleep_walker@opensuse.org + +- add gnutls-fix.patch + GnuTLS built against guile 2.0 is breaking any HTTPS connection, + this upstream patch solves it + ------------------------------------------------------------------- Sat Mar 31 07:28:50 UTC 2018 - kasimir_@outlook.de diff --git a/guix.spec b/guix.spec index da8f94b..718eb06 100644 --- a/guix.spec +++ b/guix.spec @@ -45,6 +45,8 @@ Source11: armhf-linux-guile-2.0.11.tar.xz.sig Source12: aarch64-linux-guile-2.0.14.tar.xz Source13: aarch64-linux-guile-2.0.14.tar.xz.sig Source20: run_guix_daemon.sh +# PATCH-FIX-UPSTREAM -- HTTPS is not working correctly for GnuTLS built against Guile 2.0 -- sleep_walker@opensuse.org +Patch0: https://git.savannah.gnu.org/cgit/guix.git/patch/?id=7f04197fef905790fd392f8d686d00ae95a0d04c#./gnutls-fix.patch BuildRequires: gcc-c++ BuildRequires: gnutls-guile BuildRequires: guile-charting @@ -74,6 +76,7 @@ Purely functional package manager and a distribution thereof. %prep %setup -q +%patch0 -p1 # install service file to _unitdir sed -i 's@\$(libdir)/systemd/system@%{_unitdir}@' Makefile.in mkdir -p gnu/packages/bootstrap/{i686,x86_64,mips64el,armhf}-linux