From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?=E8=97=8D=E6=8C=BA=E7=91=8B?= Subject: bug#29642: guix 0.14.0 cannot use HTTPS with guile 2.0 Date: Sun, 10 Dec 2017 21:05:12 +0800 Message-ID: <358b5121-7f02-2c9d-878f-6ab550c6ae04@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO1J0-0008Kg-7G for bug-guix@gnu.org; Sun, 10 Dec 2017 08:06:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eO1Ix-0001hs-1m for bug-guix@gnu.org; Sun, 10 Dec 2017 08:06:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:45890) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eO1Iw-0001hT-Tc for bug-guix@gnu.org; Sun, 10 Dec 2017 08:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eO1Iw-0003SF-Hw for bug-guix@gnu.org; Sun, 10 Dec 2017 08:06:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eO1IG-0008J1-Hv for bug-guix@gnu.org; Sun, 10 Dec 2017 08:05:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eO1ID-0001ER-CY for bug-guix@gnu.org; Sun, 10 Dec 2017 08:05:20 -0500 Received: from mail-pf0-x22e.google.com ([2607:f8b0:400e:c00::22e]:35029) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eO1ID-0001Dx-5R for bug-guix@gnu.org; Sun, 10 Dec 2017 08:05:17 -0500 Received: by mail-pf0-x22e.google.com with SMTP id j124so9701382pfc.2 for ; Sun, 10 Dec 2017 05:05:16 -0800 (PST) Received: from [192.168.1.153] ([175.182.227.243]) by smtp.googlemail.com with ESMTPSA id 73sm25188544pfr.145.2017.12.10.05.05.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Dec 2017 05:05:14 -0800 (PST) Content-Language: en-US List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 29642@debbugs.gnu.org This problem happens on Fedora 27, which uses Guile 2.0.14. $ guix package -i hello The following package will be installed: hello 2.10 /gnu/store/pa4w02b89d6sq33840dxfl5vbqbwz5iy-hello-2.10 substitute: Backtrace: substitute: In ice-9/boot-9.scm: substitute: 160: 9 [catch #t # ...] substitute: In unknown file: substitute: ?: 8 [apply-smob/1 #] substitute: In ice-9/boot-9.scm: substitute: 66: 7 [call-with-prompt prompt0 ...] substitute: In ice-9/eval.scm: substitute: 432: 6 [eval # #] substitute: In ice-9/boot-9.scm: substitute: 2412: 5 [save-module-excursion #] substitute: 4089: 4 [#] substitute: 1734: 3 [%start-stack load-stack ...] substitute: 1739: 2 [#] substitute: In unknown file: substitute: ?: 1 [primitive-load "/usr/bin/guix"] substitute: In guix/ui.scm: substitute: 1452: 0 [run-guix-command substitute "--query"] substitute: substitute: guix/ui.scm:1452:12: In procedure run-guix-command: substitute: guix/ui.scm:1452:12: In procedure setvbuf: Wrong type argument in position 1 (expecting port that supports 'setvbuf'): # guix package: error: corrupt input while restoring archive from socket If I revert commit 866f37f, this problem can be avoided. The commit (download: Improve efficiency of 'write-request' over TLS.) added the following code to guix/build/download.scm: (cond-expand (guile-2.0 #f) (else (setvbuf record 'line))) The info page of guile doesn't list 'guile-2.0' feature. I know there is a feature called 'guile-2.2', but I cannot find 'guile-2.0'.