* Attempt to 'get-bytevector-n!' from directory in union.scm?
@ 2014-02-09 11:04 Mark H Weaver
2014-02-09 21:00 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Mark H Weaver @ 2014-02-09 11:04 UTC (permalink / raw)
To: guix-devel
Any idea what happened here?
Mark
--8<---------------cut here---------------start------------->8---
mhw:~/guix$ guix package -u readline
The following package will be installed:
readline-6.2 out /nix/store/xgi8n7x2m1ngg0d9p9ig6gscvzpdzkwh-readline-6.2
The following derivation will be built:
/nix/store/2pkmji49pv87rk04zzv3nxjl3d57rph0-profile.drv
[... lots of other collision warnings ...]
Backtrace:
In unknown file:
?: 19 [apply-smob/1 #<catch-closure 101d1db0>]
In ice-9/boot-9.scm:
63: 18 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
432: 17 [eval # #]
In ice-9/boot-9.scm:
2320: 16 [save-module-excursion #<procedure 1018bd40 at ice-9/boot-9.scm:3961:3 ()>]
3966: 15 [#<procedure 1018bd40 at ice-9/boot-9.scm:3961:3 ()>]
1645: 14 [%start-stack load-stack ...]
1650: 13 [#<procedure 101dd2b8 ()>]
In unknown file:
?: 12 [primitive-load "/nix/store/y8v59kg2jdnbalxi1djz9bsdhk88l3r6-profile-guile-builder"]
In ice-9/eval.scm:
387: 11 [eval # ()]
432: 10 [eval # #]
In /nix/store/n670kdk9ysi9jlq3f6ki4glc34p35dc1-module-import/guix/build/union.scm:
202: 9 [union-build "/nix/store/dn29z8fpkh33sxgwwbxg0cn7ih523v65-profile" # # ...]
102: 8 [loop #]
In srfi/srfi-1.scm:
578: 7 [map #<procedure loop (tree)> (# # # # ...)]
In /nix/store/n670kdk9ysi9jlq3f6ki4glc34p35dc1-module-import/guix/build/union.scm:
101: 6 [loop #]
In srfi/srfi-1.scm:
578: 5 [map #<procedure resolve-collision (leaves)> (# # # # ...)]
In /nix/store/n670kdk9ysi9jlq3f6ki4glc34p35dc1-module-import/guix/build/union.scm:
187: 4 [resolve-collision #]
In ice-9/boot-9.scm:
793: 3 [call-with-input-file "/nix/store/25mp69n6i16b308sbyh42ic3qzld46li-ncurses-5.9/lib/terminfo" ...]
793: 2 [call-with-input-file "/nix/store/y9q8dwgs8lxww2khkk1hfji1jihkfcz3-ncurses-5.9/lib/terminfo" ...]
In /nix/store/n670kdk9ysi9jlq3f6ki4glc34p35dc1-module-import/guix/build/union.scm:
116: 1 [#<procedure 10469fb0 at /nix/store/n670kdk9ysi9jlq3f6ki4glc34p35dc1-module-import/guix/build/union.scm:111:13 (port2)> #<input: /nix/store/y9q8dwgs8lxww2khkk1hfji1jihkfcz3-ncurses-5.9/lib/terminfo 7>]
In unknown file:
?: 0 [get-bytevector-n! #<input: /nix/store/25mp69n6i16b308sbyh42ic3qzld46li-ncurses-5.9/lib/terminfo 6> ...]
ERROR: In procedure get-bytevector-n!:
ERROR: In procedure fport_fill_input: Is a directory
builder for `/nix/store/2pkmji49pv87rk04zzv3nxjl3d57rph0-profile.drv' failed with exit code 1
killing process 18700
guix package: error: build failed: build of `/nix/store/2pkmji49pv87rk04zzv3nxjl3d57rph0-profile.drv' failed
--8<---------------cut here---------------end--------------->8---
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Attempt to 'get-bytevector-n!' from directory in union.scm?
2014-02-09 11:04 Attempt to 'get-bytevector-n!' from directory in union.scm? Mark H Weaver
@ 2014-02-09 21:00 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2014-02-09 21:00 UTC (permalink / raw)
To: Mark H Weaver; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1681 bytes --]
Mark H Weaver <mhw@netris.org> skribis:
> In /nix/store/n670kdk9ysi9jlq3f6ki4glc34p35dc1-module-import/guix/build/union.scm:
> 202: 9 [union-build "/nix/store/dn29z8fpkh33sxgwwbxg0cn7ih523v65-profile" # # ...]
> 102: 8 [loop #]
> In srfi/srfi-1.scm:
> 578: 7 [map #<procedure loop (tree)> (# # # # ...)]
> In /nix/store/n670kdk9ysi9jlq3f6ki4glc34p35dc1-module-import/guix/build/union.scm:
> 101: 6 [loop #]
> In srfi/srfi-1.scm:
> 578: 5 [map #<procedure resolve-collision (leaves)> (# # # # ...)]
> In /nix/store/n670kdk9ysi9jlq3f6ki4glc34p35dc1-module-import/guix/build/union.scm:
> 187: 4 [resolve-collision #]
> In ice-9/boot-9.scm:
> 793: 3 [call-with-input-file "/nix/store/25mp69n6i16b308sbyh42ic3qzld46li-ncurses-5.9/lib/terminfo" ...]
> 793: 2 [call-with-input-file "/nix/store/y9q8dwgs8lxww2khkk1hfji1jihkfcz3-ncurses-5.9/lib/terminfo" ...]
> In /nix/store/n670kdk9ysi9jlq3f6ki4glc34p35dc1-module-import/guix/build/union.scm:
> 116: 1 [#<procedure 10469fb0 at /nix/store/n670kdk9ysi9jlq3f6ki4glc34p35dc1-module-import/guix/build/union.scm:111:13 (port2)> #<input: /nix/store/y9q8dwgs8lxww2khkk1hfji1jihkfcz3-ncurses-5.9/lib/terminfo 7>]
> In unknown file:
> ?: 0 [get-bytevector-n! #<input: /nix/store/25mp69n6i16b308sbyh42ic3qzld46li-ncurses-5.9/lib/terminfo 6> ...]
>
> ERROR: In procedure get-bytevector-n!:
> ERROR: In procedure fport_fill_input: Is a directory
The ‘lib/terminfo’ directory is apparently provided by two or more
packages, so there’s a collision, leading to a ‘resolve-collision’ call,
which in turns call ‘file=?’, which is not prepared to deal with
directories.
This patch should fix it:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1159 bytes --]
diff --git a/guix/build/union.scm b/guix/build/union.scm
index 1b09da4..6e2b296 100644
--- a/guix/build/union.scm
+++ b/guix/build/union.scm
@@ -103,8 +103,13 @@ single leaf."
(leaf leaf))))
(define (file=? file1 file2)
- "Return #t if the contents of FILE1 and FILE2 are identical, #f otherwise."
- (and (= (stat:size (stat file1)) (stat:size (stat file2)))
+ "Return #t if FILE1 and FILE2 are regular files and their contents are
+identical, #f otherwise."
+ (let ((st1 (stat file1))
+ (st2 (stat file2)))
+ (and (eq? (stat:type st1) 'regular)
+ (eq? (stat:type st2) 'regular)
+ (= (stat:size st1) (stat:size st2))
(call-with-input-file file1
(lambda (port1)
(call-with-input-file file2
@@ -117,7 +122,7 @@ single leaf."
(n2 (get-bytevector-n! port2 buf2 0 len)))
(and (equal? n1 n2)
(or (eof-object? n1)
- (loop)))))))))))
+ (loop))))))))))))
(define* (union-build output directories
#:key (log-port (current-error-port)))
[-- Attachment #3: Type: text/plain, Size: 227 bytes --]
However, could you check which are the colliding packages? Readline
doesn’t have lib/terminfo here. Or perhaps ‘guix package’ is wrongfully
trying to keep two copies of ncurses in the profile?
Thanks,
Ludo’.
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-09 21:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-09 11:04 Attempt to 'get-bytevector-n!' from directory in union.scm? Mark H Weaver
2014-02-09 21:00 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.