unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: cannot fetch narinfo with HTTP pipelining
Date: Wed, 8 Apr 2015 12:21:50 +0200	[thread overview]
Message-ID: <idjmw2izzr5.fsf@bimsb-sys02.mdc-berlin.net> (raw)
In-Reply-To: <87a8yj0wg1.fsf@gnu.org>


Ludovic Courtès writes:

> Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:
>
>> The numbers in the `bad-response' error message differ for different
>> operations.  In all cases the first number (here 403) is larger than the
>> second (here 15).  The second number is the reported content length.
>
> That rings a bell.
>
> Could you try this patch?

Thanks for the patch.  Unfortunately, guix fails to compile with the
patch applied:

~~~~~
[rwurmus@guix-builder:/localhome/rwurmus-tmp/guix] (621) $ make
make  all-recursive
make[1]: Entering directory `/localhome/rwurmus-tmp/guix'
Making all in po/guix
make[2]: Entering directory `/localhome/rwurmus-tmp/guix/po/guix'
make[2]: Leaving directory `/localhome/rwurmus-tmp/guix/po/guix'
Making all in po/packages
make[2]: Entering directory `/localhome/rwurmus-tmp/guix/po/packages'
make[2]: Leaving directory `/localhome/rwurmus-tmp/guix/po/packages'
make[2]: Entering directory `/localhome/rwurmus-tmp/guix'
/usr/bin/mkdir -p `dirname "guix/gnu-maintenance.go"` ;			\
unset GUILE_LOAD_COMPILED_PATH ;				\
LC_ALL=C							\
./pre-inst-env					\
/usr/bin/guild compile -L "." -L "."	\
  -Wformat -Wunbound-variable -Warity-mismatch			\
  --target="x86_64-unknown-linux-gnu"						\
  -o "guix/gnu-maintenance.go" "guix/gnu-maintenance.scm"
;;; note: source file ./guix/http-client.scm
;;;       newer than compiled /home/rwurmus/.cache/guile/ccache/2.0-LE-8-2.0/localhome/rwurmus-tmp/guix/guix/http-client.scm.go
Backtrace:
In system/base/compile.scm:
 216: 19 [read-and-compile #<input: guix/gnu-maintenance.scm 5> #:from ...]
 232: 18 [lp () #f #<module (#{ g114}#) ca1d80>]
 180: 17 [lp (#<procedure compile-tree-il (x e opts)>) (define-module # # ...) ...]
In ice-9/boot-9.scm:
2320: 16 [save-module-excursion #<procedure e509f0 at language/scheme/compile-tree-il.scm:29:3 ()>]
In language/scheme/compile-tree-il.scm:
  31: 15 [#<procedure e509f0 at language/scheme/compile-tree-il.scm:29:3 ()>]
In ice-9/psyntax.scm:
1091: 14 [expand-top-sequence ((define-module # # # ...)) () ((top)) ...]
 976: 13 [scan ((define-module (guix gnu-maintenance) #:use-module ...)) () ...]
 270: 12 [scan ((#(syntax-object let # ...) (#) (# #) ...)) () ...]
In ice-9/eval.scm:
 411: 11 [eval # ()]
In ice-9/boot-9.scm:
2870: 10 [define-module* (guix gnu-maintenance) #:filename ...]
2845: 9 [resolve-imports (((web uri)) ((web client)) ((web response)) ...)]
2783: 8 [resolve-interface (guix http-client) #:select ...]
2708: 7 [#<procedure 9a7440 at ice-9/boot-9.scm:2696:4 (name #:optional autoload version #:key ensure)> # ...]
2981: 6 [try-module-autoload (guix http-client) #f]
2320: 5 [save-module-excursion #<procedure fb3510 at ice-9/boot-9.scm:2982:17 ()>]
3001: 4 [#<procedure fb3510 at ice-9/boot-9.scm:2982:17 ()>]
In unknown file:
   ?: 3 [primitive-load-path "guix/http-client" ...]
In ice-9/eval.scm:
 432: 2 [eval # ()]
In unknown file:
   ?: 1 [scm-error misc-error #f ...]
In ice-9/boot-9.scm:
 106: 0 [#<procedure bde140 at ice-9/boot-9.scm:97:6 (thrown-k . args)> misc-error ...]

ice-9/boot-9.scm:106:20: In procedure #<procedure bde140 at ice-9/boot-9.scm:97:6 (thrown-k . args)>:
ice-9/boot-9.scm:106:20: No variable named make-delimited-input-port in #<interface (web response) f9bd80>
make[2]: *** [guix/gnu-maintenance.go] Error 1
make[2]: Leaving directory `/localhome/rwurmus-tmp/guix'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/localhome/rwurmus-tmp/guix'
make: *** [all] Error 2
~~~~~


That's odd because:

~~~~~
[rwurmus@guix-builder:/localhome/rwurmus-tmp/guix] (631) $ guile
GNU Guile 2.0.9
Copyright (C) 1995-2013 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,module (web response)
scheme@(web response)> make-delimited-input-port
$1 = #<procedure make-delimited-input-port (port len keep-alive?)>
scheme@(web response)> 
~~~~~

The only difference from master is the applied patch.

~~ Ricardo

  reply	other threads:[~2015-04-08 10:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08  9:02 cannot fetch narinfo with HTTP pipelining Ricardo Wurmus
2015-04-08 10:02 ` Ludovic Courtès
2015-04-08 10:21   ` Ricardo Wurmus [this message]
2015-04-08 11:54     ` Ludovic Courtès
2015-04-08 14:02       ` Ricardo Wurmus
2015-04-08 19:41         ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=idjmw2izzr5.fsf@bimsb-sys02.mdc-berlin.net \
    --to=ricardo.wurmus@mdc-berlin.de \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).