From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 19 22:22:54 2018 Received: (at submit) by debbugs.gnu.org; 20 Oct 2018 02:22:54 +0000 Received: from localhost ([127.0.0.1]:60070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDguj-0000SU-SW for submit@debbugs.gnu.org; Fri, 19 Oct 2018 22:22:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDguh-0000SF-UL for submit@debbugs.gnu.org; Fri, 19 Oct 2018 22:22:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDguc-0001E5-66 for submit@debbugs.gnu.org; Fri, 19 Oct 2018 22:22:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51864) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gDguc-0001Dx-2F for submit@debbugs.gnu.org; Fri, 19 Oct 2018 22:22:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDgub-0002l1-Ao for bug-guix@gnu.org; Fri, 19 Oct 2018 22:22:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDguY-00014b-2U for bug-guix@gnu.org; Fri, 19 Oct 2018 22:22:45 -0400 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]:34979) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDguX-000124-TY for bug-guix@gnu.org; Fri, 19 Oct 2018 22:22:41 -0400 Received: by mail-io1-xd34.google.com with SMTP id 79-v6so4298647iou.2 for ; Fri, 19 Oct 2018 19:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:user-agent:mime-version; bh=RuSwuiA0NkZoSty+CBiSHjGAQZ4i2ljk2mAhXbI6+20=; b=P6fgIRlFoTOBCHKv3af6v6FLnS3N0RMA+o824XYSWSGMD6Gv7T2bShoK/uurEptVGC gzWYo9YogQro9MzjV2cbid/arlNmwrMiLGTCKiXJkqpGiICAsykQSzzmC3fQslzf1T6Z a/bbOvt8inAwj8KCrEjWcnfyBnoRAjRbGFWxioUzRQeKTGHmmuxyTWBBRgSuj7m/6z0M U7sZnGsPxwft7jsdY4P2tpB+MokJQdOX90l9mbmBRVLzZoSjK/11utZ1Z9ZLjiGSPP3S gs0tTmu5rmhR0Vz8JA+eTrnMDp/c0R2MNsFMptMLFC1656fH28P3M3b15AOlCTMjUneq 5CEA== 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:subject:date:message-id:user-agent :mime-version; bh=RuSwuiA0NkZoSty+CBiSHjGAQZ4i2ljk2mAhXbI6+20=; b=g7FKMVBq+5ycNRfOOdxz/ygSoFMSOCg/Imh8R+tNL8fSZvl+DY52DpphqkXnlA8861 BEbJpbL+ISEUXAhAf6fhBl+/enpkU+ETMrYCmpMjgSFdJuWOeTgmbh2bniOyn8LXUMpy uFUKu55Ndro0HsGzz8jubED309KkN+dCAWkmhdxw7daPZKbQPhIRWLf8wmlJcaYoeHry H380JRfDZBlRsKZnKVKkKYw3ombhh7zYmDqEDWUficOE0KIZIPvemhze+YxVBQQZ5eP7 f75RRYkJq8iF53KYfo1Zbsw0cRfciTJmlZc5KQlaQKqkMc6h1kUgxyGRpp4wOyoA2Hq+ OcgA== X-Gm-Message-State: AGRZ1gICpMd/h5h41REsZSTOOZxg20MoqM/EUeVsxXqvGGzXPuMq0qbs tSkgEI/P1qQxZmf2aMuxrUuqCbY8 X-Google-Smtp-Source: AJdET5fdCcRvHhq8U7hYQH9wT+bXzbUyrfg2BisFgnMDC8AFhXXmbW4kcbprzu3kRng6EPcEJv9Qxg== X-Received: by 2002:a6b:7104:: with SMTP id q4-v6mr3812103iog.138.1540002160988; Fri, 19 Oct 2018 19:22:40 -0700 (PDT) Received: from apteryx (76-10-140-126.dsl.teksavvy.com. [76.10.140.126]) by smtp.gmail.com with ESMTPSA id w189-v6sm2162862itb.40.2018.10.19.19.22.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Oct 2018 19:22:39 -0700 (PDT) From: Maxim Cournoyer To: bug-guix Subject: [libssh] fatal: dumb http transport does not support shallow capabilities Date: Fri, 19 Oct 2018 22:22:38 -0400 Message-ID: <87zhv94as1.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hello, Today I stumbled upon libssh that wouldn't build, due to the following git error: --8<---------------cut here---------------start------------->8--- fatal: dumb http transport does not support shallow capabilities" --8<---------------cut here---------------end--------------->8--- There are now substitutes served from Berlin, so it's a bit more difficult to reproduce, but the following worked for Ludovic and myself: guix build --check /gnu/store/f0i7bdcg1lksr9dhz0cidi3ym8r8a5wl-libssh-0.7.6-checkout.drv The output looks like: --8<---------------cut here---------------start------------->8--- guix build --check /gnu/store/f0i7bdcg1lksr9dhz0cidi3ym8r8a5wl-libssh-0.7.6-checkout.drv building /gnu/store/f0i7bdcg1lksr9dhz0cidi3ym8r8a5wl-libssh-0.7.6-checkout.drv... Initialized empty Git repository in /gnu/store/gqyjgpvzqy55dzibm59530fsx21dpiz4-libssh-0.7.6-checkout/.git/ fatal: dumb http transport does not support shallow capabilities --8<---------------cut here---------------end--------------->8--- Leo, would you have an idea? Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 20 10:05:24 2018 Received: (at 33100) by debbugs.gnu.org; 20 Oct 2018 14:05:24 +0000 Received: from localhost ([127.0.0.1]:33331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDrsZ-0004Wf-Uc for submit@debbugs.gnu.org; Sat, 20 Oct 2018 10:05:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDrsX-0004WS-RB for 33100@debbugs.gnu.org; Sat, 20 Oct 2018 10:05:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDrsR-0000D9-Ad for 33100@debbugs.gnu.org; Sat, 20 Oct 2018 10:05:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDrsR-0000By-6A; Sat, 20 Oct 2018 10:05:15 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=58614 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gDrsQ-0007LU-JQ; Sat, 20 Oct 2018 10:05:15 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Maxim Cournoyer Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities References: <87zhv94as1.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 29 =?utf-8?Q?Vend=C3=A9miaire?= an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 20 Oct 2018 16:05:13 +0200 In-Reply-To: <87zhv94as1.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 19 Oct 2018 22:22:38 -0400") Message-ID: <87in1w90iu.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33100 Cc: 33100@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello! Maxim Cournoyer skribis: > guix build --check /gnu/store/f0i7bdcg1lksr9dhz0cidi3ym8r8a5wl-libssh-0.7= .6-checkout.drv > building /gnu/store/f0i7bdcg1lksr9dhz0cidi3ym8r8a5wl-libssh-0.7.6-checkou= t.drv... > Initialized empty Git repository in /gnu/store/gqyjgpvzqy55dzibm59530fsx2= 1dpiz4-libssh-0.7.6-checkout/.git/ > fatal: dumb http transport does not support shallow capabilities On closer inspection, it seems that there=E2=80=99s nothing =E2=80=9Cfatal= =E2=80=9D here: if you let it run for a while (1 or 2 minutes), it ends up silently cloning the whole repo and the derivation build eventually succeeds. Could you check if that=E2=80=99s the case for you? berlin.guixsd.org has a substitute for this checkout, which suggests it went fine there. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 20 23:24:33 2018 Received: (at 33100-done) by debbugs.gnu.org; 21 Oct 2018 03:24:33 +0000 Received: from localhost ([127.0.0.1]:33698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gE4Lx-00046K-JG for submit@debbugs.gnu.org; Sat, 20 Oct 2018 23:24:33 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:52016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gE4Lw-000469-HW for 33100-done@debbugs.gnu.org; Sat, 20 Oct 2018 23:24:33 -0400 Received: by mail-it1-f195.google.com with SMTP id 74-v6so8439494itw.1 for <33100-done@debbugs.gnu.org>; Sat, 20 Oct 2018 20:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=zyYolyMiBfP1hQsaKO9Pt3KGjSuJHh42qUEv6B+ewbo=; b=h7dF1OS/awxRFQ+Dx6im+4s/4/EZiaPZTpbwHR9LMzFAt3Tm9jq//7YhXoPSQhamsy HJkepZenGWPjZ9yeXkEVmCcTtuyWGVtEOEIhi3df0/OhpwzRK9p6lLEgiexkTlzGAm09 Mg0dhbFClInDD2jf+KUAhIRsV1nfumSNZOPDcj/kgIFHuZ1puGVc/uywyaszauTOiMc4 FLxwJ80XIUhYWW5ObLE8QdN2mpK0609W/2Q5I3vGnhd3AOwmsIdq/Y92kHOaWSKKNU4N pAXJdcLpiCyPyaTU3cx3uyCHBgyR1eaILMWTenpz7OGoxPSSF0SjaeNo04+OAPvHDIqG KY7Q== 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:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=zyYolyMiBfP1hQsaKO9Pt3KGjSuJHh42qUEv6B+ewbo=; b=QmarkQlKnBVnuaaSC36lnJqFTtrJST9/Bbv/QhC5saCFkj66phZ9lIbTWWs4buLnNs GDh7lIo/IzQPFe/rExcZ4ghoPM/7hUBGv/Ic10Il3BL6x0NmYSDw4ZVV70xOU7mAqbg0 VhDOERCg71ezpwnDHjnLBWZq4jFz1tgtZoWCoGGIOzC+rePpBEPVSHyMqMt7w2pGjt3u Gkm6KDkvDqpAGyS49YQmX/EueoVmY41eYXqGvAVsbhCpOwlfBfueR7AerLvpCSS+OjSp ZrXmeEuzt0vHNxXgpJsxkpjV8bsaxBwEXOlkw3VKiVPqGc1kuV9+GL19f0+DgvYMWQUt KAKg== X-Gm-Message-State: ABuFfoiEcUbCeO+ksMf1FYzHXzMO6DNJA0UodUCPajqFMoECD4nMrnQK DiXO+CAcvUaiNRGGBpoXtd97tHmt X-Google-Smtp-Source: ACcGV63RFAXEEY3HdZCYWvcVZBzbLA2MVv+ld2bBoJOuilhMVkABZyT3tdNHFdfP/drsYvyNNni9DQ== X-Received: by 2002:a02:6d1d:: with SMTP id m29-v6mr2522797jac.8.1540092266608; Sat, 20 Oct 2018 20:24:26 -0700 (PDT) Received: from apteryx (76-10-140-126.dsl.teksavvy.com. [76.10.140.126]) by smtp.gmail.com with ESMTPSA id d124-v6sm9405562iof.57.2018.10.20.20.24.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 20 Oct 2018 20:24:25 -0700 (PDT) From: Maxim Cournoyer To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> Date: Sat, 20 Oct 2018 23:24:24 -0400 In-Reply-To: <87in1w90iu.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 20 Oct 2018 16:05:13 +0200") Message-ID: <87va5w3rtj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hello! > > Maxim Cournoyer skribis: > >> guix build --check /gnu/store/f0i7bdcg1lksr9dhz0cidi3ym8r8a5wl-libssh-0.= 7.6-checkout.drv >> building /gnu/store/f0i7bdcg1lksr9dhz0cidi3ym8r8a5wl-libssh-0.7.6-checko= ut.drv... >> Initialized empty Git repository in /gnu/store/gqyjgpvzqy55dzibm59530fsx= 21dpiz4-libssh-0.7.6-checkout/.git/ >> fatal: dumb http transport does not support shallow capabilities > > On closer inspection, it seems that there=E2=80=99s nothing =E2=80=9Cfata= l=E2=80=9D here: if you > let it run for a while (1 or 2 minutes), it ends up silently cloning the > whole repo and the derivation build eventually succeeds. It did end up working fine, although it took a large amout of time for doing what seems to be a checkout (4 min 46 s). I did some experiments and this is really the time it took to do a full clone of the libssh project. --8<---------------cut here---------------start------------->8--- time git clone git://git.libssh.org/projects/libssh.git libssh Cloning into 'libssh'... remote: Enumerating objects: 28264, done. remote: Counting objects: 100% (28264/28264), done. remote: Compressing objects: 100% (11718/11718), done. remote: Total 28264 (delta 20985), reused 21830 (delta 16350)s=20=20=20=20 Receiving objects: 100% (28264/28264), 5.21 MiB | 263.00 KiB/s, done. Resolving deltas: 100% (20985/20985), done. real 4m19.419s user 0m3.272s sys 0m0.540s --8<---------------cut here---------------end--------------->8--- It's a bit of a shame, given that the shallow clone takes about 2 seconds (!): --8<---------------cut here---------------start------------->8--- time git clone --depth 1 git://git.libssh.org/projects/libssh.git libssh Cloning into 'libssh'... remote: Enumerating objects: 367, done. remote: Counting objects: 100% (367/367), done. remote: Compressing objects: 100% (358/358), done. remote: Total 367 (delta 39), reused 53 (delta 1) Receiving objects: 100% (367/367), 704.23 KiB | 728.00 KiB/s, done. Resolving deltas: 100% (39/39), done. real 0m2.028s user 0m0.160s sys 0m0.071s --8<---------------cut here---------------end--------------->8--- Based on the discussion here: https://github.com/CocoaPods/CocoaPods/issues/6270, it would seem this means that the libssh git server doesn't support the newer "smart HTTP transport" and the git client bails out (IIUC). At least in our case the guile-ssh library seems to already correctly fallback to doing a full clone. Perhaps just clearer messages would have helped here also ('Failed to do a shallow git clone due to ~error message~, falling back to a full clone'). Such a change would need to be made in guile-git IIUC. I'll close this bug now; thank you! Maxim From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 21 15:10:23 2018 Received: (at 33100) by debbugs.gnu.org; 21 Oct 2018 19:10:24 +0000 Received: from localhost ([127.0.0.1]:34577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEJ7H-00044P-LQ for submit@debbugs.gnu.org; Sun, 21 Oct 2018 15:10:23 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:46271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEJ7F-00044E-66 for 33100@debbugs.gnu.org; Sun, 21 Oct 2018 15:10:22 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CB30721ACF; Sun, 21 Oct 2018 15:10:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 21 Oct 2018 15:10:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=3no95mdOHi3hf6/BIys1Gx2u CTMudM4z3CTGDJXuh5o=; b=JkqgXn0RxF08vRj+k6L2QFJu1vCBcUyvzmRcybLq UatuiJrWyZJ3Xjn/9nb+H6B6AzZpKhfflhe6b32uuMSAic0aj3RfdprOji66dTnk dO6U5ABUoQNfToHAKs05UjXsqRYPdtS+lNF3vp2XONX/GoYX5y++OYl7frXvysz9 58M= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=3no95m dOHi3hf6/BIys1Gx2uCTMudM4z3CTGDJXuh5o=; b=Kjt5CoFC3DR2jYij31yS93 +w5/rgbyA+NsqK11KCgdJ4LvL/SU+WB8Hr17K2Uv8bmSq7OIRdvk62PDYIYXVm9+ /80Et1B59iauxrWuocyBOvBh/O0o+914e7z6rSNYIPHlwlUuhBFfPutTsmW4f3eE Bq6GLCr8YprZeh/VCXk8lJNH2IY+1PsoI8JnyNK8bK6XZzm6nwoqC0IxTVu898iT olPW+Ip51EELzXBITs0/kXNqWuLmh+iXTdi6LC9IgadmIvWNyk1MBJoKcURZeIKe fbq2St2jtB41O2GpWO34Gdi0hYd33TI9NdzHUmo1XMf6Qwa8TzbjkAWEOYvcRQZg == X-ME-Sender: X-ME-Proxy: Received: from localhost (c-76-124-202-137.hsd1.pa.comcast.net [76.124.202.137]) by mail.messagingengine.com (Postfix) with ESMTPA id 54716102DD; Sun, 21 Oct 2018 15:10:20 -0400 (EDT) Date: Sun, 21 Oct 2018 15:10:18 -0400 From: Leo Famulari To: 33100@debbugs.gnu.org, maxim.cournoyer@gmail.com Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities Message-ID: <20181021191018.GA18445@jasmine.lan> References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: <87va5w3rtj.fsf@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33100 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 20, 2018 at 11:24:24PM -0400, Maxim Cournoyer wrote: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > > On closer inspection, it seems that there=E2=80=99s nothing =E2=80=9Cfa= tal=E2=80=9D here: if you > > let it run for a while (1 or 2 minutes), it ends up silently cloning the > > whole repo and the derivation build eventually succeeds. >=20 > It did end up working fine, although it took a large amout of time for > doing what seems to be a checkout (4 min 46 s). I did some experiments > and this is really the time it took to do a full clone of the libssh > project. Great, you figured it out :) More explanation: Git has a few different server protocols: git, dumb HTTP, smart HTTP, and SSH: https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols The dumb HTTP protocol is slow and does not show any progress status or other informative message while it works, but if you monitor your network traffic you can see it working. For obvious reasons, it's rare to see the dumb HTTP protocol deployed nowadays, but you may still find it on legacy installations. --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlvMzxcACgkQJkb6MLrK fwhhIBAAmTI0bBzOCc/7cZ7QeiqvvhdijEbhVi9lEejD7We7LPqNxlwOvabF8xqo 5RUvXl1EzsQNgZ+eOiJvd5UmtTzeFHJ40dSicN+7EGyK2hzCt43IroRjKf51Vjl2 f7zPqSldMGs6ZV6EEjFvkERo5V6A7Tg3fLVO4ivNucnJbmK/FgL/OY/7SOWFQwTS nqPLKav98zo58LNZRpyEPm4uxkkOW/w8svPuRRxIbC82ris8YueIpUk7CHfyqwJW foVSurk3OsGECqOiicY0xNkSl5+qAKsnu3OLdUJSauPW74Y18MCD0foy4DrGyFWz fCNgNbts8G+KThPjb3VGskoUqvEjaM9egAfcW1b9Sk+LkjIknfO+fdpPcjjL3PrA 1EiClmc8KqonzhSL8RlFx0fHpYGza+Z6c7n1R6gJH332BcsO0nJTQpVi4l1UsFBO U5Xp3fXGdF39lQSCvpAdePFJWUrY14S5Mby3pTOgIawB0uH1Jx5aoj9AY/Mw2fUz xFoRt/VyqSKoWLDCQGyORAYVlLeJPgEltIgysu7Nw7p1VV0R5RQc+U1/TYHeUawc 3cvrEb3SK3UxsC/g7ZWTrxOJH/gJT+VUYquZjzACsC0efDkgd5UoAnbe1rN3JJFn KNL62ROCQZaFkvdc69XO8PGMydeykvTskn+lnAFWXfKfgoO1pz4= =cHdi -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 21 17:42:20 2018 Received: (at 33100) by debbugs.gnu.org; 21 Oct 2018 21:42:20 +0000 Received: from localhost ([127.0.0.1]:34759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gELUK-0007Sd-Ah for submit@debbugs.gnu.org; Sun, 21 Oct 2018 17:42:20 -0400 Received: from mail-it1-f172.google.com ([209.85.166.172]:39294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gELUI-0007SQ-Ku for 33100@debbugs.gnu.org; Sun, 21 Oct 2018 17:42:19 -0400 Received: by mail-it1-f172.google.com with SMTP id m15so10196002itl.4 for <33100@debbugs.gnu.org>; Sun, 21 Oct 2018 14:42:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=hRaIZN1nW4YFO7O9RKWIih8lOZoj3dOKhjkcL+qAZ+E=; b=imb2+wL8bLToqUzWDEi+CUcooP8a0Z3MKlqkNfz9txEI+rG7FnoYt9YGGwOm0nGglT UAp8TGseD2+NevUiC8xCg6t4GCTgaYLlMvLum0CVgzlc05d5QTVCo6l8+XnvuELg0kLO hlPIxPsxnLFah9s2fGgLnRNWpYeKgObHSwNkKgURY7PjCmbn+GcNFJanh/6O90Ligicu 54MuGJZ4pd+HxRqcNX8bueL5+e1l2b8+XiuOlaMRRCRk2BYbOytAMsDQ266YMUDDYOKr Ig//qBAI6kkEfYqRKQfvvof5vNth1hJ/5zGOkS//JTldsDfytmTfX/3l9XZRKpsqRO02 b2MA== 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:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=hRaIZN1nW4YFO7O9RKWIih8lOZoj3dOKhjkcL+qAZ+E=; b=SQCfde3Y3sMOqS+FVcgVPHeSEw10i+PPhxlFKrhytwfpG3ZxFb4Gl124MG0WiwtdCV qmAES2i2cEpx5rAowZ1FTzC5MAFWjKhlzUqqruFgZfFvHQYyr9av2aFgoOOmz/Pc5AHc Utgi73MWi859NDykWinPRa7B/9GuBFIhsFm/v1yze32UZywFEMe12MazNWEw16qOStqb OIRiHD7O1PKNUKGGPbR0rqKjfqqCys+fYFcXIUqMp4zFv5svrTlhdf7X4ECdqkxkrcW7 JV9AN76ooDm8AyepHi1C+bhviyf8x/R2/9/UN2YBqgo/4btrbmVUTv5g2US7MNknTRow RcOw== X-Gm-Message-State: ABuFfojRtDZfHtIryTzkYe2iP5TNJiWlFtBiFTZHX9c/CwyD32gEGocg I9kIyThkyGgRAMbTsvFpx1bvOJCh X-Google-Smtp-Source: ACcGV63w5HwqPgjFCecXMIFUP6PHZmvCvB8wM9r7W8Ia+1rNaXXCvyWvzrhLKMGem5TVNlxgeEyzow== X-Received: by 2002:a02:29c5:: with SMTP id p188-v6mr33902116jap.110.1540158132555; Sun, 21 Oct 2018 14:42:12 -0700 (PDT) Received: from apteryx (76-10-140-126.dsl.teksavvy.com. [76.10.140.126]) by smtp.gmail.com with ESMTPSA id w20-v6sm9079342ioa.82.2018.10.21.14.42.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Oct 2018 14:42:11 -0700 (PDT) From: Maxim Cournoyer To: Leo Famulari Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> <20181021191018.GA18445@jasmine.lan> Date: Sun, 21 Oct 2018 17:42:10 -0400 In-Reply-To: <20181021191018.GA18445@jasmine.lan> (Leo Famulari's message of "Sun, 21 Oct 2018 15:10:18 -0400") Message-ID: <87ftwz3rkd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33100 Cc: 33100@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Leo, Leo Famulari writes: > On Sat, Oct 20, 2018 at 11:24:24PM -0400, Maxim Cournoyer wrote: >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> > On closer inspection, it seems that there=E2=80=99s nothing =E2=80=9Cf= atal=E2=80=9D here: if you >> > let it run for a while (1 or 2 minutes), it ends up silently cloning t= he >> > whole repo and the derivation build eventually succeeds. >>=20 >> It did end up working fine, although it took a large amout of time for >> doing what seems to be a checkout (4 min 46 s). I did some experiments >> and this is really the time it took to do a full clone of the libssh >> project. > > Great, you figured it out :) > > More explanation: > > Git has a few different server protocols: git, dumb HTTP, smart HTTP, > and SSH: > > https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols > > The dumb HTTP protocol is slow and does not show any progress status or > other informative message while it works, but if you monitor your > network traffic you can see it working. > > For obvious reasons, it's rare to see the dumb HTTP protocol deployed > nowadays, but you may still find it on legacy installations. Thanks for the extra bits of information :) Cheers, Maxim From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 22 05:55:47 2018 Received: (at 33100-done) by debbugs.gnu.org; 22 Oct 2018 09:55:47 +0000 Received: from localhost ([127.0.0.1]:35142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEWw7-0008KG-GA for submit@debbugs.gnu.org; Mon, 22 Oct 2018 05:55:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44045) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEWw5-0008K1-9f for 33100-done@debbugs.gnu.org; Mon, 22 Oct 2018 05:55:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEWvw-0007oa-Pb for 33100-done@debbugs.gnu.org; Mon, 22 Oct 2018 05:55:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEWvp-0007lz-Tb; Mon, 22 Oct 2018 05:55:31 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=41628 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gEWvo-0001vP-2o; Mon, 22 Oct 2018 05:55:29 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Maxim Cournoyer Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 Brumaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 22 Oct 2018 11:55:26 +0200 In-Reply-To: <87va5w3rtj.fsf@gmail.com> (Maxim Cournoyer's message of "Sat, 20 Oct 2018 23:24:24 -0400") Message-ID: <875zxupapd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello, Maxim Cournoyer skribis: > It did end up working fine, although it took a large amout of time for > doing what seems to be a checkout (4 min 46 s). I did some experiments > and this is really the time it took to do a full clone of the libssh > project. > > time git clone git://git.libssh.org/projects/libssh.git libssh > Cloning into 'libssh'... > remote: Enumerating objects: 28264, done. > remote: Counting objects: 100% (28264/28264), done. > remote: Compressing objects: 100% (11718/11718), done. > remote: Total 28264 (delta 20985), reused 21830 (delta 16350)s=20=20=20=20 > Receiving objects: 100% (28264/28264), 5.21 MiB | 263.00 KiB/s, done. > Resolving deltas: 100% (20985/20985), done. > > real 4m19.419s > user 0m3.272s > sys 0m0.540s > > > It's a bit of a shame, given that the shallow clone takes about 2 > seconds (!): > > time git clone --depth 1 git://git.libssh.org/projects/libssh.git libssh > Cloning into 'libssh'... > remote: Enumerating objects: 367, done. > remote: Counting objects: 100% (367/367), done. > remote: Compressing objects: 100% (358/358), done. > remote: Total 367 (delta 39), reused 53 (delta 1) > Receiving objects: 100% (367/367), 704.23 KiB | 728.00 KiB/s, done. > Resolving deltas: 100% (39/39), done. > > real 0m2.028s > user 0m0.160s > sys 0m0.071s > > Based on the discussion here: > https://github.com/CocoaPods/CocoaPods/issues/6270, it would seem this > means that the libssh git server doesn't support the newer "smart HTTP > transport" and the git client bails out (IIUC). At least in our case the > guile-ssh library seems to already correctly fallback to doing a full > clone. Switching to the git:// transport would seem like a reasonable workaround=E2=80=94we=E2=80=99d lose encryption and authentication, but the= latter is covered by the content hash in the =E2=80=98origin=E2=80=99 anyway. WDYT, Leo? > Perhaps just clearer messages would have helped here also ('Failed to do > a shallow git clone due to ~error message~, falling back to a full clone'= ). I agree, and that=E2=80=99s something to suggest to the Git folks. :-) Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 22 13:07:42 2018 Received: (at 33100-done) by debbugs.gnu.org; 22 Oct 2018 17:07:42 +0000 Received: from localhost ([127.0.0.1]:36418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEdg5-0004IP-Hu for submit@debbugs.gnu.org; Mon, 22 Oct 2018 13:07:42 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:52391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEdg2-0004IE-NW for 33100-done@debbugs.gnu.org; Mon, 22 Oct 2018 13:07:39 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6F30220DE4; Mon, 22 Oct 2018 13:07:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 22 Oct 2018 13:07:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=nBQCxabaAieGKwgIw4igXSSX HyHc6TkWkpdhBFw1Ut4=; b=1T10tj2X3s9x5XndALP6TDxcB9CO0GvVlKCkkN8G f0mxL84bs6nRX+tV0PU8Wozd7+/jgMWN0emDPLASvmPiQilPMhRT0gDJUR7KWr/N wqS44MGUeiU5YGg7d+CM6iWlcaaFGKwvfTX3QEGDYSfiwGuu050JUhSXqHo6cj2a KxU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=nBQCxa baAieGKwgIw4igXSSXHyHc6TkWkpdhBFw1Ut4=; b=EaMQG+LGSdF3mCKrPy4rDi RApgeiKvoDUM4OQ9DxmC1480DozvW8uoosLyOlI3pUCdnNUDSGi/2JHlfJr3uOca xRghBqQQypxQBtTz86iYUX3/XUat3rGdA+pst8F1kfYkhfeBlOHS2uZmnL++ALiv bTYk4yJU6rfeA6vg5wy7dYnpReTn8FQjO1GoPqV0FEiP2srz5kYRrjHv1sf/jaU4 NkVZhFwd/93ct2RemV/070hPq3FKsRFkvw3I8NBViKOq4yRFTMj2NBsgnIB4M6OZ 0mc81etlIJI0Y9yHEM7VYkFBRh33VjLquzOuBa/oIFpi1EWsjB4qbZs2ilS8ZSZw == X-ME-Sender: X-ME-Proxy: Received: from localhost (c-76-124-202-137.hsd1.pa.comcast.net [76.124.202.137]) by mail.messagingengine.com (Postfix) with ESMTPA id ACB21102F0; Mon, 22 Oct 2018 13:07:35 -0400 (EDT) Date: Mon, 22 Oct 2018 13:07:34 -0400 From: Leo Famulari To: Ludovic =?iso-8859-1?Q?Court=E8s?= Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities Message-ID: <20181022170734.GB6300@jasmine.lan> References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> <875zxupapd.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NKoe5XOeduwbEQHU" Content-Disposition: inline In-Reply-To: <875zxupapd.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --NKoe5XOeduwbEQHU Content-Type: multipart/mixed; boundary="VrqPEDrXMn8OVzN4" Content-Disposition: inline --VrqPEDrXMn8OVzN4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 22, 2018 at 11:55:26AM +0200, Ludovic Court=C3=A8s wrote: > Maxim Cournoyer skribis: > > It did end up working fine, although it took a large amout of time for > > doing what seems to be a checkout (4 min 46 s). I did some experiments > > and this is really the time it took to do a full clone of the libssh > > project. [...] > > It's a bit of a shame, given that the shallow clone takes about 2 > > seconds (!): Yeah, it's incredibly slow. The repo is not even 10 MB. At first, I too thought the HTTPS clone had stalled. Protocol duration ------------------------ https:// 217 sec git:// 10 sec git:// shallow 1.5 sec And of course, the shallow clone is 3.6 MB instead of 10 MB. > Switching to the git:// transport would seem like a reasonable > workaround=E2=80=94we=E2=80=99d lose encryption and authentication, but t= he latter is > covered by the content hash in the =E2=80=98origin=E2=80=99 anyway. >=20 > WDYT, Leo? Overall, I think the slowness doesn't matter too much, since we offer substitutes for the patched source code. However, here is a patch. Please feel free to apply it! I'll ask the libssh team to support "smart" HTTP Git. --VrqPEDrXMn8OVzN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-gnu-libssh-Fetch-the-source-code-more-efficiently.patch" Content-Transfer-Encoding: quoted-printable =46rom 683713dd8f5d67e3f077d5d13c23e5556d8ad779 Mon Sep 17 00:00:00 2001 =46rom: Leo Famulari Date: Mon, 22 Oct 2018 13:00:55 -0400 Subject: [PATCH] gnu: libssh: Fetch the source code more efficiently. * gnu/packages/ssh.scm (libssh)[source]: Use the git:// protocol. --- gnu/packages/ssh.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gnu/packages/ssh.scm b/gnu/packages/ssh.scm index e806fc80f..b93cb03a1 100644 --- a/gnu/packages/ssh.scm +++ b/gnu/packages/ssh.scm @@ -71,8 +71,14 @@ (source (origin (method git-fetch) (uri (git-reference - (url "https://git.libssh.org/projects/libssh.git") - (commit (string-append "libssh-" version)))) + ;; git.libssh.org does not support the fast "smart" H= TTP + ;; Git protocol. The "dumb" HTTP Git protocol is extr= emely + ;; slow, and does not support shallow clones, so we u= se the + ;; plain Git protocol despite its flaws. This offers = an + ;; incredible speedup and reduces the size of the the + ;; source by more than half. + (url "git://git.libssh.org/projects/libssh.git") + (commit (string-append "libssh-" version)))) (patches (search-patches "libssh-hostname-parser-bug.patch")) (sha256 (base32 --=20 2.19.1 --VrqPEDrXMn8OVzN4-- --NKoe5XOeduwbEQHU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlvOA9YACgkQJkb6MLrK fwj2nRAAyULtNR3TnVyjEzaCsgkSZOISogcmCR7po6YqjG0dRCTTmdzu/q4rfot0 10QKPLQOM8c7mFCeYCc2LJDaXEaeYnjiCrtwfd10/PyvHSyZeJBnDDo5xxaT42UQ T3AbC2acA2R/F41L4upH3tW0Xa0szFu7T8A1qZ+NjZjlJZ/hivO/rsVKiL03PCTi ICfPFijxkh//8OIAva4BYrqdcHurgKfwxuvFl/mt7ynR4NcppIL/YI9L5j9vq7mZ WeNJW+uCi59GTJU5CUWgvPqZ5QSwkgtKUBpSW4XoyBZzyQ7tNEUP0rMy2iF8y0AT 4ohqKMzR3/7anJ93HFfwcoQue+F9bMVGFP5Rk0/Bdmv2kxFxNE9mx2llDFbJAbQF gVJjesMoVUHnZWLp9dszWNfdK38wcu51E+9fU8DUsayYkfmSUbvgkv5OnxLc4ruE pNb/yXlEhYm21oJcl7Ju2W/yRZh26owS0n35yU/pAX6XyrsljLbuj0e0nal5/ZJV wh5O+swksHcRC4Pp4KKf43uKi2dHCuTnpY90sWWhAPUyb+tJb8I8FTCvIM4j/fuN vvEIoY3nqOM0amx7o7R1KCH83E3f1RaQFW8bgdaEONOfpJgnnQ36NdeR5vYtpye4 TlB96uIbw6SlFWcBdLNR+wokzAycGDwzmJy8mA1qCiSaBPTGRY4= =K/th -----END PGP SIGNATURE----- --NKoe5XOeduwbEQHU-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 09:01:17 2018 Received: (at 33100-done) by debbugs.gnu.org; 24 Oct 2018 13:01:17 +0000 Received: from localhost ([127.0.0.1]:39206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFImj-0000KA-DM for submit@debbugs.gnu.org; Wed, 24 Oct 2018 09:01:17 -0400 Received: from mail-it1-f180.google.com ([209.85.166.180]:56298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFImi-0000Jy-BM for 33100-done@debbugs.gnu.org; Wed, 24 Oct 2018 09:01:16 -0400 Received: by mail-it1-f180.google.com with SMTP id c23-v6so6030051itd.5 for <33100-done@debbugs.gnu.org>; Wed, 24 Oct 2018 06:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=MylYNHrzqSirBUtitPbasJRR6RDR4YlJY7G0TKwz2aQ=; b=Eln8IsfGyM0lv3+dOlSlC7prJ0HCO7Nltsw1l9Utd0MKeQ6xR+IP5sQVo3gYgaWz5A ZGNnot6Yp5M+rIArJYzQC9dykmkDTK0MwzJ6sQFdmpaEKk5dqhEz5xoC0L56pEcpYJCy 8SoCnpwRomntUPaHvUW1WZ2erInhn6pZvn5Hki4CzlNUqTvvTzeOSjKnjsS+nTbOMv+2 jEJciqMNdDqRUdvpnjWBCwLEmbkYv+46UwjeluiSmH9T+YrnwR5kOIKz/xOihCvj8mpK TFUl4F+SGWUGIYMgJyfKKDRAhUpt0lHqt8YV74MSbGBwZRNp9U+rGG2vJxUJMwE10/d0 V5NQ== 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:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=MylYNHrzqSirBUtitPbasJRR6RDR4YlJY7G0TKwz2aQ=; b=Q02qPTARRJGfY56zsaK59Dmlrwwrua2gZMFsQf2F5zrVs3VGjF/70RJBN4tY6N8VAv 4kNPiqiMKAtAt1UIsKrVmnDgtZPTnYKJYmkiTnKrAyKpKyNU1cJOlixDOpzdiyO02SHD jU95trWJl6EMC/xkeqNlMQ8ttYYnaHxiBZ5LmMljBUUHDXfX7+pXLrkXDDfl2+k7T1Dl 75o9NU9Go4oW6Sd/qTssQlR9JWpZWzVvs2rGUKW45kYyVQ8VAwMCVaXmYh+tlbf77/If zUW/JGVe7eyq79ahn3rCbgM35M1xM6ujuRdboJZGnw7aokYl5nJEiN5Dkrkv1PQM2NfB ClmQ== X-Gm-Message-State: AGRZ1gJ/24ZzMeH54MnfbjledaR/4KuNuby9jnZ+lwIG+YmhkwL3KpBl X45Xe8Qat6Cl2oFqEYtIaxYEvPZG X-Google-Smtp-Source: AJdET5fIZFGUZebvuY4oWW/sG4LFetbFywlGVCp6plfZd/l14WI07DNqpeDIy0cLrTq2vEgbxgP7bQ== X-Received: by 2002:a02:958a:: with SMTP id b10-v6mr1037971jai.130.1540386070094; Wed, 24 Oct 2018 06:01:10 -0700 (PDT) Received: from apteryx (76-10-140-126.dsl.teksavvy.com. [76.10.140.126]) by smtp.gmail.com with ESMTPSA id h128-v6sm1756611iof.38.2018.10.24.06.01.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Oct 2018 06:01:08 -0700 (PDT) From: Maxim Cournoyer To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> <875zxupapd.fsf@gnu.org> Date: Wed, 24 Oct 2018 09:01:07 -0400 In-Reply-To: <875zxupapd.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 22 Oct 2018 11:55:26 +0200") Message-ID: <87o9bj33e4.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludovic, ludo@gnu.org (Ludovic Court=C3=A8s) writes: [...] >> Perhaps just clearer messages would have helped here also ('Failed to do >> a shallow git clone due to ~error message~, falling back to a full clone= '). > > I agree, and that=E2=80=99s something to suggest to the Git folks. :-) Upon further inspection, we can do better on our side, specifically by printing a message of the fallback occurring when calling git-fetch. The patch below implements this simple change. What do you think? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-build-git-fetch-Print-message-when-falling-back-to-a.patch >From 06ba66d1949ba59573518f471ad3cbacefea6ea2 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 24 Oct 2018 08:49:50 -0400 Subject: [PATCH] build: git-fetch: Print message when falling back to a full checkout. Otherwise the user might believe that git-fetch stalled, observing the lack of output following a 'fatal' git error message (see: https://debbugs.gnu.org/33100). * guix/build/git.scm (git-fetch): Print message when falling back to a full checkout. --- guix/build/git.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/guix/build/git.scm b/guix/build/git.scm index 14d415a6f..df8f1548b 100644 --- a/guix/build/git.scm +++ b/guix/build/git.scm @@ -45,6 +45,7 @@ recursively. Return #t on success, #f otherwise." (if (zero? (system* git-command "fetch" "--depth" "1" "origin" commit)) (invoke git-command "checkout" "FETCH_HEAD") (begin + (format #t "Failed to do a shallow fetch; retrying a full fetch...~%") (invoke git-command "fetch" "origin") (invoke git-command "checkout" commit))) (when recursive? -- 2.19.0 --=-=-= Content-Type: text/plain Maxim --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 10:11:25 2018 Received: (at 33100-done) by debbugs.gnu.org; 24 Oct 2018 14:11:25 +0000 Received: from localhost ([127.0.0.1]:40369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFJsZ-0002Jq-3w for submit@debbugs.gnu.org; Wed, 24 Oct 2018 10:11:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFJsX-0002Jd-Bp for 33100-done@debbugs.gnu.org; Wed, 24 Oct 2018 10:11:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFJsM-00078k-Qf for 33100-done@debbugs.gnu.org; Wed, 24 Oct 2018 10:11:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFJsM-00078e-Mw; Wed, 24 Oct 2018 10:11:10 -0400 Received: from dhcp-64-71.ens-lyon.fr ([140.77.64.71]:46744 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gFJsL-0002H1-JE; Wed, 24 Oct 2018 10:11:10 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Maxim Cournoyer Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> <875zxupapd.fsf@gnu.org> <87o9bj33e4.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 Brumaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 24 Oct 2018 16:11:07 +0200 In-Reply-To: <87o9bj33e4.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 24 Oct 2018 09:01:07 -0400") Message-ID: <87va5r1ll0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hi, Maxim Cournoyer skribis: > Upon further inspection, we can do better on our side, specifically by > printing a message of the fallback occurring when calling git-fetch. The > patch below implements this simple change. > > What do you think? > > From 06ba66d1949ba59573518f471ad3cbacefea6ea2 Mon Sep 17 00:00:00 2001 > From: Maxim Cournoyer > Date: Wed, 24 Oct 2018 08:49:50 -0400 > Subject: [PATCH] build: git-fetch: Print message when falling back to a f= ull > checkout. > > Otherwise the user might believe that git-fetch stalled, observing the la= ck of > output following a 'fatal' git error message (see: > https://debbugs.gnu.org/33100). > > * guix/build/git.scm (git-fetch): Print message when falling back to a fu= ll > checkout. Oh indeed, I had overlooked that. Go for it! Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 10:15:31 2018 Received: (at 33100-done) by debbugs.gnu.org; 24 Oct 2018 14:15:31 +0000 Received: from localhost ([127.0.0.1]:40374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFJwZ-0002QW-Gg for submit@debbugs.gnu.org; Wed, 24 Oct 2018 10:15:31 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:56961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFJwW-0002QM-DW for 33100-done@debbugs.gnu.org; Wed, 24 Oct 2018 10:15:28 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E540921EF9; Wed, 24 Oct 2018 10:15:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 24 Oct 2018 10:15:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=L3NydGxnHgsUurkBut+QdfvY ycECx8huHBrXAFMwWDE=; b=PkR/3U3S78ohDq5bZWvQk9YQhiD+at0TdH16ndZM W+cNFOf2w8pSR1ix+v0Kf757gt2p0flEt4YSud0WQVj9ZYRTFPZi51Dsd/DKynZb GM+oVvnYbB+A1TOT6cXF4Ih/d6h+Z1GBG6R2kQZQxHXQoQzz/tSxHC3TrVTCx/5H sFc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=L3NydG xnHgsUurkBut+QdfvYycECx8huHBrXAFMwWDE=; b=vC7fmZD5vItJXXdZ9cExXm 2RWdlLYdqtZOjRb/ksO15BqarXnCYjRqIs6lTKgllBL3z9qioP7hh3tG4nhXJAYq wyqGDyevMu4OJJ2IygBShHVUVjYwe3dby1RMI0/70LLrrvDljnahll1RSAzxSGHz 8L/wHlIv3MYbQhbvaPSwlPtxNqDsTtjZ+Y/T5B2l1UNf60MPi/fvDNR7euOSC1ON Qi9bRAxW3Pa5Kl6jpVohld9vajw3TLGGc9N3++3dXdiSwQe+yQGH/kUy6za3iZn2 7yb8U9JRKZjNfcXI0GxwI74oHVxwUU8yheQEDiMobjebZ6yHjhzjevjdv9FYEcyA == X-ME-Sender: X-ME-Proxy: Received: from localhost (unknown [104.254.17.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 65085102F6; Wed, 24 Oct 2018 10:15:24 -0400 (EDT) Date: Wed, 24 Oct 2018 10:15:23 -0400 From: Leo Famulari To: Maxim Cournoyer Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities Message-ID: <20181024141523.GB5988@jasmine.lan> References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> <875zxupapd.fsf@gnu.org> <87o9bj33e4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="EuxKj2iCbKjpUGkD" Content-Disposition: inline In-Reply-To: <87o9bj33e4.fsf@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org, Ludovic =?iso-8859-1?Q?Court=E8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --EuxKj2iCbKjpUGkD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 24, 2018 at 09:01:07AM -0400, Maxim Cournoyer wrote: > From 06ba66d1949ba59573518f471ad3cbacefea6ea2 Mon Sep 17 00:00:00 2001 > From: Maxim Cournoyer > Date: Wed, 24 Oct 2018 08:49:50 -0400 > Subject: [PATCH] build: git-fetch: Print message when falling back to a f= ull > checkout. >=20 > Otherwise the user might believe that git-fetch stalled, observing the la= ck of > output following a 'fatal' git error message (see: > https://debbugs.gnu.org/33100). >=20 > * guix/build/git.scm (git-fetch): Print message when falling back to a fu= ll > checkout. I like it, but it doesn't seem to actually print anything for me when I trigger the failing case, for example by fetching the libssh source over HTTP. --EuxKj2iCbKjpUGkD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlvQfnsACgkQJkb6MLrK fwhSphAA3awEUDSHPvFghTiah6x2ryHL7zBvj8uw8lzWqfiWaIEDfcJUbiKhdq6D 3cyzMPXJOzwGRA0iQy52rsRrBo5NT33Q3T9guKg86Je3+DcQP1e+iBpJaOHr4S3B lL38G34H1+jD7JVTROXN7Hh5EJf4vy7cMKAjU11R+/cVFrpwLfOCD+V4yUn75Rrs IIni4vi391TsOGUdJzZCZzEwlhP7B7x3X0NWGmIwM1ii//1BTiabqcAcD/GpCZ5m yT7ZTawJuOcz9sBwC1evpQFH3ZG08FB9RE862bRmV3JzNRb7c8f0fq5BJWwnrh76 1dp2Ad+7ANPNVfIn2z/wOQtX/Gl3inqz9gCUefiFq9qGDpPWXMLRXdplWGAW1mOy 2rC2VIl1OB7Cvg/VxYyYjkVeOwnhpRewS1/B7S7xuk60KZNY01vrOE0FabgHi5D6 e8UNvBKCp0AgzsoM69SH8DlKAQk5kK606gl2/qyyMGD7Fz5EsXTP6bbsOsc3nLzE 08MLu8CtacwCEJFD5XUScNmF2B+HvGq2MPJaf118qBJcSFXeuaZZpUv/MRL6UJHt EBSxhuDNEIYWa5cMmkrFA8C2/aHaITFH3hDik1JIpDxYN5IWCOB6GJsE9C2WWHLw 2nnu1hzZV2BWyEL67KRAXYaGiKikeC34Mtc2qRgcs7/UYc7idkw= =mxbW -----END PGP SIGNATURE----- --EuxKj2iCbKjpUGkD-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 17:33:22 2018 Received: (at 33100-done) by debbugs.gnu.org; 24 Oct 2018 21:33:22 +0000 Received: from localhost ([127.0.0.1]:40799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFQmI-0000YB-3p for submit@debbugs.gnu.org; Wed, 24 Oct 2018 17:33:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFQmE-0000Xu-T3 for 33100-done@debbugs.gnu.org; Wed, 24 Oct 2018 17:33:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFQm2-0003D1-F1 for 33100-done@debbugs.gnu.org; Wed, 24 Oct 2018 17:33:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFQm2-0003Cu-8E; Wed, 24 Oct 2018 17:33:06 -0400 Received: from 50.135.159.77.rev.sfr.net ([77.159.135.50]:33608 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gFQm1-0003Cd-Ux; Wed, 24 Oct 2018 17:33:06 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Leo Famulari Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> <875zxupapd.fsf@gnu.org> <87o9bj33e4.fsf@gmail.com> <20181024141523.GB5988@jasmine.lan> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 Brumaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 24 Oct 2018 23:33:03 +0200 In-Reply-To: <20181024141523.GB5988@jasmine.lan> (Leo Famulari's message of "Wed, 24 Oct 2018 10:15:23 -0400") Message-ID: <87h8hbyqr4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Leo Famulari skribis: > On Wed, Oct 24, 2018 at 09:01:07AM -0400, Maxim Cournoyer wrote: >> From 06ba66d1949ba59573518f471ad3cbacefea6ea2 Mon Sep 17 00:00:00 2001 >> From: Maxim Cournoyer >> Date: Wed, 24 Oct 2018 08:49:50 -0400 >> Subject: [PATCH] build: git-fetch: Print message when falling back to a = full >> checkout. >>=20 >> Otherwise the user might believe that git-fetch stalled, observing the l= ack of >> output following a 'fatal' git error message (see: >> https://debbugs.gnu.org/33100). >>=20 >> * guix/build/git.scm (git-fetch): Print message when falling back to a f= ull >> checkout. > > I like it, but it doesn't seem to actually print anything for me when I > trigger the failing case, for example by fetching the libssh source over > HTTP. If might be that current-output-port is fully buffered. What if you add: (setvbuf (current-output-port) 'line) before the =E2=80=98format=E2=80=99 call? Thanks, Ludo=E2=80=99, who is found guilty of not actually running the code. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 21:02:49 2018 Received: (at 33100-done) by debbugs.gnu.org; 25 Oct 2018 01:02:49 +0000 Received: from localhost ([127.0.0.1]:41072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFU2y-0005XR-Vu for submit@debbugs.gnu.org; Wed, 24 Oct 2018 21:02:49 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:37083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFU2w-0005Vs-Pu for 33100-done@debbugs.gnu.org; Wed, 24 Oct 2018 21:02:47 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 724772217E; Wed, 24 Oct 2018 21:02:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 24 Oct 2018 21:02:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=buzOoBj+O+COG7GW9xY4J8+lV5iAVE6Q/YU0L/FP4SY=; b=VryR205lpmUY YY76cN6bOYU8ifU9YEazWVIAfySI7K1iWMYflLzb3uIag4rsQ2RnXVdk05H8foE8 h5IRgATI7sCVMoPWP+H4reEjBlNTH6IB0RbrI0xLUKlKpyiOZI/HPjf5klT8uoTv cEfBYdql6Sk8lHExc0n3DMHaQKvAKpc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=buzOoBj+O+COG7GW9xY4J8+lV5iAVE6Q/YU0L/FP4 SY=; b=FWZhp1SLFfsUmjoUPfng7sVnVaSttMLg9gO923jboi+MnU+NcEd2O2NtJ s9f2MGY36xA45xCM7x0L9IoM2u7EEaJSecTdpgBYEt/IaMieJlg5skgGYgtRGvxp otlpGG3zB/BPlFCQS+BvLu3mSM2HwcXoDweyPI53ecn481Up/tw2CL69LmZXKq6g qFFM9qE8AFCGEkujI0rwqW9CHR3sOULEUCKLif1VhD5kpoYTv39GwQXESH+/e4cv s+yqNqClTTK8GIrXqou2r+AXqze6rBzxPM1cY+cUlDT7vNg6DQo2SOwr/+w6TU9G 6u/u/x8TgX92p3TOS8pzo7V2MX+tQ== X-ME-Sender: X-ME-Proxy: Received: from localhost (c-76-124-202-137.hsd1.pa.comcast.net [76.124.202.137]) by mail.messagingengine.com (Postfix) with ESMTPA id 9D422102E9; Wed, 24 Oct 2018 21:02:43 -0400 (EDT) Date: Wed, 24 Oct 2018 21:02:41 -0400 From: Leo Famulari To: Ludovic =?iso-8859-1?Q?Court=E8s?= Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities Message-ID: <20181025010241.GA16007@jasmine.lan> References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> <875zxupapd.fsf@gnu.org> <87o9bj33e4.fsf@gmail.com> <20181024141523.GB5988@jasmine.lan> <87h8hbyqr4.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87h8hbyqr4.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Wed, Oct 24, 2018 at 11:33:03PM +0200, Ludovic Courtès wrote: > If might be that current-output-port is fully buffered. What if you > add: > > (setvbuf (current-output-port) 'line) > > before the ‘format’ call? Yeah, this lets' the message through. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 24 21:44:50 2018 Received: (at 33100-done) by debbugs.gnu.org; 25 Oct 2018 01:44:50 +0000 Received: from localhost ([127.0.0.1]:41088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFUhe-0000Gh-2j for submit@debbugs.gnu.org; Wed, 24 Oct 2018 21:44:50 -0400 Received: from mail-it1-f180.google.com ([209.85.166.180]:36702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFUhc-0000GU-RS for 33100-done@debbugs.gnu.org; Wed, 24 Oct 2018 21:44:49 -0400 Received: by mail-it1-f180.google.com with SMTP id h14-v6so2753726itf.1 for <33100-done@debbugs.gnu.org>; Wed, 24 Oct 2018 18:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=bZAy+D+giEVcyLl04aNktt+e9L9pbxkQHkw8IoykrS4=; b=B6aA3tn8Qj3d+X7R8OdErLuu9K9loMoMB5/2lDCXYGGpTuZcy79jQsQ13GMmnnYDnO rL9STsTOIj7qdGNhE7gqEkb84DpJuKIvL59hjy2R+Y+BhTOCoTbmu5DJcX8uioEN1Kbl gmGYHLIR6MIlGBsG/0wammaYJv9YMX/5GvFsV1H1UJaYogxNGZJGe+vVPWDDUAu/RnSy 3CtnnR+7j4t1/EfTCFezYj973vExAJKZE1IvH2iluwsNYS7nBFbxk+l7AjBa9ET04MQR ra2iRUZZqj1xLzqJ6b+7ZPWs0iuxNf105L8s0Zw/oFGq0fdOP9GUNvBASARGCLStMByt 6QZg== 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:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=bZAy+D+giEVcyLl04aNktt+e9L9pbxkQHkw8IoykrS4=; b=IuSPx1cPt6oFqQMaCDRkyje1BhkrdY6kKstEujATFrQckThwh5YMLT8ozrguEt+6Il 2ZlYS7mbtMyFXjHmJx24VlDVDE6b9m26JMU63wzufrMIo+rgDJ9Iqb/kP3vrMuJURTzI lOcXpA9kcI1azBeayIMoQ+Fs72Y5zxjcCvHkQkOA3Q+CJARKL+245S5XX+j2x3oYQAc+ kLwAYWw1VSJP8opb4+WxYbHMdDaUXkZDp9ZscFUpGioBgNttl1+CzVYEkA9nAWkuMCbG 5vYnTJZwTLfjpJdB7DuH58B6VuYiQAf5TlmwJCrw5v1q/KZp4208i34e2tueZKbPk/k5 2uTw== X-Gm-Message-State: AGRZ1gLv2bRkTSjHV9xsabl+6uoUX1GHTN1n7+ABEfSOmi0er5N34WAh gLd6bx9HiFWbWtMHfUxBgjItLZ4K X-Google-Smtp-Source: AJdET5fNPW8LNHPh7GEgU5dKcethVQqbOktp5RQY3pbngliOxToo8VYGkASGb5LmZJCPyGu0FH20DQ== X-Received: by 2002:a24:1989:: with SMTP id b131-v6mr2727933itb.105.1540431882927; Wed, 24 Oct 2018 18:44:42 -0700 (PDT) Received: from apteryx (76-10-140-126.dsl.teksavvy.com. [76.10.140.126]) by smtp.gmail.com with ESMTPSA id d19-v6sm2142360itd.15.2018.10.24.18.44.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Oct 2018 18:44:41 -0700 (PDT) From: Maxim Cournoyer To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> <875zxupapd.fsf@gnu.org> <87o9bj33e4.fsf@gmail.com> <20181024141523.GB5988@jasmine.lan> <87h8hbyqr4.fsf@gnu.org> Date: Wed, 24 Oct 2018 21:44:40 -0400 In-Reply-To: <87h8hbyqr4.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 24 Oct 2018 23:33:03 +0200") Message-ID: <87k1m63ilz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org, Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Leo Famulari skribis: > >> On Wed, Oct 24, 2018 at 09:01:07AM -0400, Maxim Cournoyer wrote: >>> From 06ba66d1949ba59573518f471ad3cbacefea6ea2 Mon Sep 17 00:00:00 2001 >>> From: Maxim Cournoyer >>> Date: Wed, 24 Oct 2018 08:49:50 -0400 >>> Subject: [PATCH] build: git-fetch: Print message when falling back to a= full >>> checkout. >>>=20 >>> Otherwise the user might believe that git-fetch stalled, observing the = lack of >>> output following a 'fatal' git error message (see: >>> https://debbugs.gnu.org/33100). >>>=20 >>> * guix/build/git.scm (git-fetch): Print message when falling back to a = full >>> checkout. >> >> I like it, but it doesn't seem to actually print anything for me when I >> trigger the failing case, for example by fetching the libssh source over >> HTTP. > > If might be that current-output-port is fully buffered. What if you > add: > > (setvbuf (current-output-port) 'line) > > before the =E2=80=98format=E2=80=99 call? > > Thanks, > Ludo=E2=80=99, who is found guilty of not actually running the code. What is preferable, between your solution or using (force-output)? I'll send a revised patch accordingly. Thank you, Maxim From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 25 08:25:04 2018 Received: (at 33100-done) by debbugs.gnu.org; 25 Oct 2018 12:25:04 +0000 Received: from localhost ([127.0.0.1]:41258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFehE-0001B0-De for submit@debbugs.gnu.org; Thu, 25 Oct 2018 08:25:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFehC-0001AM-P4 for 33100-done@debbugs.gnu.org; Thu, 25 Oct 2018 08:25:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFeh2-0005Fb-1W for 33100-done@debbugs.gnu.org; Thu, 25 Oct 2018 08:24:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFeh1-0005FV-U6; Thu, 25 Oct 2018 08:24:51 -0400 Received: from dhcp-64-71.ens-lyon.fr ([140.77.64.71]:52298 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gFeh1-00034t-JX; Thu, 25 Oct 2018 08:24:51 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Maxim Cournoyer Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> <875zxupapd.fsf@gnu.org> <87o9bj33e4.fsf@gmail.com> <20181024141523.GB5988@jasmine.lan> <87h8hbyqr4.fsf@gnu.org> <87k1m63ilz.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 Brumaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 25 Oct 2018 14:24:43 +0200 In-Reply-To: <87k1m63ilz.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 24 Oct 2018 21:44:40 -0400") Message-ID: <87lg6musc4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org, Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Maxim Cournoyer skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Leo Famulari skribis: >> >>> On Wed, Oct 24, 2018 at 09:01:07AM -0400, Maxim Cournoyer wrote: >>>> From 06ba66d1949ba59573518f471ad3cbacefea6ea2 Mon Sep 17 00:00:00 2001 >>>> From: Maxim Cournoyer >>>> Date: Wed, 24 Oct 2018 08:49:50 -0400 >>>> Subject: [PATCH] build: git-fetch: Print message when falling back to = a full >>>> checkout. >>>>=20 >>>> Otherwise the user might believe that git-fetch stalled, observing the= lack of >>>> output following a 'fatal' git error message (see: >>>> https://debbugs.gnu.org/33100). >>>>=20 >>>> * guix/build/git.scm (git-fetch): Print message when falling back to a= full >>>> checkout. >>> >>> I like it, but it doesn't seem to actually print anything for me when I >>> trigger the failing case, for example by fetching the libssh source over >>> HTTP. >> >> If might be that current-output-port is fully buffered. What if you >> add: >> >> (setvbuf (current-output-port) 'line) >> >> before the =E2=80=98format=E2=80=99 call? >> >> Thanks, >> Ludo=E2=80=99, who is found guilty of not actually running the code. > > What is preferable, between your solution or using (force-output)? I=E2=80=99d go for line buffering since you only need to do it once for all. Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 26 22:06:02 2018 Received: (at 33100-done) by debbugs.gnu.org; 27 Oct 2018 02:06:03 +0000 Received: from localhost ([127.0.0.1]:44478 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGDzG-0003WI-L5 for submit@debbugs.gnu.org; Fri, 26 Oct 2018 22:06:02 -0400 Received: from mail-it1-f178.google.com ([209.85.166.178]:33293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGDzF-0003Vq-BF for 33100-done@debbugs.gnu.org; Fri, 26 Oct 2018 22:06:01 -0400 Received: by mail-it1-f178.google.com with SMTP id h6-v6so5854723ith.0 for <33100-done@debbugs.gnu.org>; Fri, 26 Oct 2018 19:06:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=UwU84hzpCurw2Vfbq7qXuPUzATORfKacBous9HNDmp4=; b=IR8Gmi0WADGCT8Ir9npkPn5+D025keerWtMz/aiFwphdF8nNwkt+MOpTjeU38VlH9r JWmWO3Ymoi+7vfjtA5zPiRzfsabGbiPaK/yL6F+I935jeaiHWZE2PuO+xh5ZWQVaSxRT DTwxMFDbeeBc//sLd51w0JY2doWrQKLbID8ZdZsm19ocjYWT2AZs++7NlrfvurCc+N+Y 31YNd1yJmmFuyTBD3/coF+0ntVSEdqqi1L9CMY4/eGBnidYhCiKeWcJCS3bmlvcIxIL5 SYWmYKxvj6mT0yHl0HjUHaJzGIb27xPVaqpPAfr0yBJMaxaLE0yY01UhqLlRS3vBvq4q SLqg== 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:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=UwU84hzpCurw2Vfbq7qXuPUzATORfKacBous9HNDmp4=; b=Nv4jXItQSamGH9Rxbz4o3QQaa0tzOfVVTsLrUPVi6AAdexQoLcH7qV624LaYv1BD8j mFH7GPWrpSg5/dTwsuIaSwJlow3bxohiRpasMzSVQKRCDSaL9/DFvWHfvkgcNMJcqBVh UFjl6AntuDJeRC0LOY4pOYonq95DnWzViaMtZf1kCk7J9pW4cwI4hLXXvB+ifodUbMkf 9Q8BiSqYzoFQgMZLymv7RrmZONabuYKu3+ijHabqu6us4OEuG5ilBt1P2GB9QYjsPj6V 0KZh7Uu0Qpu07YfzR1xZoH3h5Wj3k+vtR2V4ipja4F077bGh1AB6IkJgWCjGfl+Jz/W+ zwwA== X-Gm-Message-State: AGRZ1gJMF65WvmQmYaDA3W8H/rB6EkMocsFNCcB/DfCVLqEUZ5uuMPL2 iuuefAhW2ocoFtTVCtjyjWY20HyG X-Google-Smtp-Source: AJdET5eOXcQYmYpw28nEUCYnQ2FMwRwyX0VuA3inl8mczy1Tx2A/vOqWs8Hk35mgJbHgd4z0dyUoWA== X-Received: by 2002:a02:a914:: with SMTP id n20-v6mr4439860jam.90.1540605955654; Fri, 26 Oct 2018 19:05:55 -0700 (PDT) Received: from apteryx (76-10-140-126.dsl.teksavvy.com. [76.10.140.126]) by smtp.gmail.com with ESMTPSA id g10-v6sm4371979iom.10.2018.10.26.19.05.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Oct 2018 19:05:54 -0700 (PDT) From: Maxim Cournoyer To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> <875zxupapd.fsf@gnu.org> <87o9bj33e4.fsf@gmail.com> <20181024141523.GB5988@jasmine.lan> <87h8hbyqr4.fsf@gnu.org> <87k1m63ilz.fsf@gmail.com> <87lg6musc4.fsf@gnu.org> Date: Fri, 26 Oct 2018 22:05:52 -0400 In-Reply-To: <87lg6musc4.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 25 Oct 2018 14:24:43 +0200") Message-ID: <878t2kuosf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org, Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello! ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>>> I like it, but it doesn't seem to actually print anything for me when I >>>> trigger the failing case, for example by fetching the libssh source ov= er >>>> HTTP. >>> >>> If might be that current-output-port is fully buffered. What if you >>> add: >>> >>> (setvbuf (current-output-port) 'line) >>> >>> before the =E2=80=98format=E2=80=99 call? >>> >>> Thanks, >>> Ludo=E2=80=99, who is found guilty of not actually running the code. >> >> What is preferable, between your solution or using (force-output)? > > I=E2=80=99d go for line buffering since you only need to do it once for a= ll. I finally got around to reproducing the problem and testing the fix; it was costly to build using --no-substitutes. Is it OK to push this patch into master? Thanks, Maxim --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-git-download-Print-a-message-when-falling-back-to-a-.patch >From 44782db3f63a29cdbd98cddb77eab8a473806765 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 24 Oct 2018 08:49:50 -0400 Subject: [PATCH] git-download: Print a message when falling back to a full fetch. Otherwise the user might believe that git-fetch stalled, observing the lack of output following a 'fatal' git error message (see: https://debbugs.gnu.org/33100). * guix/build/git.scm (git-fetch): Print message when falling back to a full fetch. --- guix/build/git.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guix/build/git.scm b/guix/build/git.scm index 14d415a6f..2d1700a9b 100644 --- a/guix/build/git.scm +++ b/guix/build/git.scm @@ -45,6 +45,8 @@ recursively. Return #t on success, #f otherwise." (if (zero? (system* git-command "fetch" "--depth" "1" "origin" commit)) (invoke git-command "checkout" "FETCH_HEAD") (begin + (setvbuf (current-output-port) 'line) + (format #t "Failed to do a shallow fetch; retrying a full fetch...~%") (invoke git-command "fetch" "origin") (invoke git-command "checkout" commit))) (when recursive? -- 2.19.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 27 10:45:58 2018 Received: (at 33100-done) by debbugs.gnu.org; 27 Oct 2018 14:45:58 +0000 Received: from localhost ([127.0.0.1]:45586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGPqg-0002jC-3Z for submit@debbugs.gnu.org; Sat, 27 Oct 2018 10:45:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38317) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGPqe-0002iz-5Y for 33100-done@debbugs.gnu.org; Sat, 27 Oct 2018 10:45:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGPqY-0003ma-7i for 33100-done@debbugs.gnu.org; Sat, 27 Oct 2018 10:45:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGPqY-0003mR-3u; Sat, 27 Oct 2018 10:45:50 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38772 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gGPqX-00075O-R1; Sat, 27 Oct 2018 10:45:50 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Maxim Cournoyer Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> <875zxupapd.fsf@gnu.org> <87o9bj33e4.fsf@gmail.com> <20181024141523.GB5988@jasmine.lan> <87h8hbyqr4.fsf@gnu.org> <87k1m63ilz.fsf@gmail.com> <87lg6musc4.fsf@gnu.org> <878t2kuosf.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 Brumaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 27 Oct 2018 16:45:48 +0200 In-Reply-To: <878t2kuosf.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 26 Oct 2018 22:05:52 -0400") Message-ID: <877ei3a1nn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org, Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hi Maxim, Maxim Cournoyer skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >>>>> I like it, but it doesn't seem to actually print anything for me when= I >>>>> trigger the failing case, for example by fetching the libssh source o= ver >>>>> HTTP. >>>> >>>> If might be that current-output-port is fully buffered. What if you >>>> add: >>>> >>>> (setvbuf (current-output-port) 'line) >>>> >>>> before the =E2=80=98format=E2=80=99 call? >>>> >>>> Thanks, >>>> Ludo=E2=80=99, who is found guilty of not actually running the code. >>> >>> What is preferable, between your solution or using (force-output)? >> >> I=E2=80=99d go for line buffering since you only need to do it once for = all. > > I finally got around to reproducing the problem and testing the fix; it > was costly to build using --no-substitutes. > > Is it OK to push this patch into master? Definitely, thank you! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 28 22:46:04 2018 Received: (at 33100-done) by debbugs.gnu.org; 29 Oct 2018 02:46:05 +0000 Received: from localhost ([127.0.0.1]:49593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGxZ6-0001An-JT for submit@debbugs.gnu.org; Sun, 28 Oct 2018 22:46:04 -0400 Received: from mail-it1-f180.google.com ([209.85.166.180]:36319) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGxZ4-00014M-N1 for 33100-done@debbugs.gnu.org; Sun, 28 Oct 2018 22:46:02 -0400 Received: by mail-it1-f180.google.com with SMTP id h14-v6so7758550itf.1 for <33100-done@debbugs.gnu.org>; Sun, 28 Oct 2018 19:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=SioJL+HYBrHPuS+YbZ4x3rB97LrurguPRBQf5O9zylE=; b=cI58KI971QSql72g+iBNW3OWZAPBwwsFwG0Fa8lvqvwvfA/tCRgssRuoCQ5rS1dtaG 66EC4jfzAmBLf4u6cFtmL82NGOl+4S1ok14bh8r1NK4jimBunROm9vStHcNrFTxuQIUS S3DfBXkXpryaxQY/SsLi6XExeJmTCy5iok7CB3+ADKDASxg1PBYcMYH+WO7ZDzY42UtJ 5U/P/De/fPsb4Wq/lM9Il/7yqsV8hIkStRFPAZ0LyZhqhGQSWkfO1c9DuT86742gbjoO wja4vbXpifJoVca/J19ZccPbiFxdr0yG7VI9dcdDBU+LogCKqr1mpzN0MFL1q2ytNL8J Tv+w== 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:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=SioJL+HYBrHPuS+YbZ4x3rB97LrurguPRBQf5O9zylE=; b=AX31CIGy085AWHP6AH+CIukL/IKkzwVaFf2IL3uAu+507l7Em23zBobfd1Kd1lTV89 +AkxS1iprSDN3glq9RgQ4k5+rJGMQuolSo7+ZeGgPg5rhfBBjjw7Ud4PXrkm3lgxf1jf GCz7Dkeq5icmvCrmHAbk/3bi5rliD8Hsx/+6jLsb2Dij7cOixGVAO5VOijym5djKv+RB iyMOWiNxuuZ8Rhp4abjW8qyjoQH5THrzy1crmTUt3Eoj2fqm/iYjR1DX1dwJ1e5bIyt2 G3XnaetxwHXAQ541hJ3hDmLtaR9ZFtDGupUmp7KYFpHCZN/4sT1oZnNmcyJD1n/KbjCy d89Q== X-Gm-Message-State: AGRZ1gJVWdeMQu+6jdLQ36PfmbhTV2IykqixwaLH1h+nUDwPuh16kmlX AyavLYktJkpYdzA3xG3XN62QXn+I X-Google-Smtp-Source: AJdET5evZ56LD/WIei2t5eh5xVMASzu4J4CkE4l+OW2PwMWuSeV+80o+LIm4BaGM4IAse3YwRdYz5Q== X-Received: by 2002:a24:b648:: with SMTP id d8-v6mr8459480itj.115.1540781156947; Sun, 28 Oct 2018 19:45:56 -0700 (PDT) Received: from apteryx (76-10-140-126.dsl.teksavvy.com. [76.10.140.126]) by smtp.gmail.com with ESMTPSA id p16-v6sm5778516itc.42.2018.10.28.19.45.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Oct 2018 19:45:55 -0700 (PDT) From: Maxim Cournoyer To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#33100: [libssh] fatal: dumb http transport does not support shallow capabilities References: <87zhv94as1.fsf@gmail.com> <87in1w90iu.fsf@gnu.org> <87va5w3rtj.fsf@gmail.com> <875zxupapd.fsf@gnu.org> <87o9bj33e4.fsf@gmail.com> <20181024141523.GB5988@jasmine.lan> <87h8hbyqr4.fsf@gnu.org> <87k1m63ilz.fsf@gmail.com> <87lg6musc4.fsf@gnu.org> <878t2kuosf.fsf@gmail.com> <877ei3a1nn.fsf@gnu.org> Date: Sun, 28 Oct 2018 22:45:54 -0400 In-Reply-To: <877ei3a1nn.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 27 Oct 2018 16:45:48 +0200") Message-ID: <87k1m1v5b1.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 33100-done Cc: 33100-done@debbugs.gnu.org, Leo Famulari X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, ludo@gnu.org (Ludovic Court=C3=A8s) writes: [...] >> Is it OK to push this patch into master? > > Definitely, thank you! > > Ludo=E2=80=99. Pushed as commit 2f18b7329! Thank you, Maxim From unknown Wed Sep 10 09:57:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 26 Nov 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator