From: ludo@gnu.org (Ludovic Courtès)
To: Andreas Enge <andreas@enge.fr>
Cc: guix-devel@gnu.org
Subject: Re: Error on installed qt-4 package
Date: Sat, 12 Oct 2013 21:50:34 +0200 [thread overview]
Message-ID: <8761t2b75h.fsf@gnu.org> (raw)
In-Reply-To: <20131012131630.GA6939@debian> (Andreas Enge's message of "Sat, 12 Oct 2013 15:16:30 +0200")
[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]
Andreas Enge <andreas@enge.fr> skribis:
> $ guix build qt
> substitute-binary: ;;; note: source file /usr/local/guix-git/bin/guix
> substitute-binary: ;;; newer than compiled /root/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/guix-git/bin/guix.go
It’s /root, because the ‘substitute-binary’ is spawned by the daemon,
which runs as ‘root’.
[...]
> In guix/packages.scm:
> 297: 1 [#<procedure 3b01e80 at guix/packages.scm:295:9 (number patch)> 0 #f]
> In unknown file:
> ?: 0 [basename #f #<undefined>]
>
> ERROR: In procedure basename:
> ERROR: In procedure basename: Wrong type argument in position 1 (expecting string): #f
That’s because one of the ‘search-patch’ invocations returned #f–i.e.,
the patch wasn’t found in the search path.
Could you either run ‘./pre-inst-env strace -o log guix build qt-4.5.8’
or add ‘pk’ in ‘search-patch’ in gnu/packages.scm to see which patch is
not found and where it’s searched for?
For instance like this:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 455 bytes --]
diff --git a/gnu/packages.scm b/gnu/packages.scm
index e9f2540..4b6c184 100644
--- a/gnu/packages.scm
+++ b/gnu/packages.scm
@@ -62,7 +62,8 @@
(define (search-patch file-name)
"Search the patch FILE-NAME."
- (search-path (%patch-path) file-name))
+ (pk 'SEARCH-PATCH (%patch-path) file-name
+ (search-path (%patch-path) file-name)))
(define (search-bootstrap-binary file-name system)
"Search the bootstrap binary FILE-NAME for SYSTEM."
[-- Attachment #3: Type: text/plain, Size: 18 bytes --]
HTH,
Ludo’.
next prev parent reply other threads:[~2013-10-12 19:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-12 13:16 Error on installed qt-4 package Andreas Enge
2013-10-12 19:50 ` Ludovic Courtès [this message]
2013-10-12 21:35 ` Andreas Enge
2013-10-13 20:02 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8761t2b75h.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=andreas@enge.fr \
--cc=guix-devel@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 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.