guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with pkgconfig source https redirect


From: Christopher W Carpenter
Subject: Problem with pkgconfig source https redirect
Date: Tue, 09 Feb 2016 20:56:59 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Talked about this on IRC davexunit, but there appears to be a circular 
dependency
issue with gnutls and pkg-config now that pkg-config needs to be
downloaded via https.

If I do a

guix build pkg-config --check --no-substitutes

on master right now i get:

Starting download of 
/gnu/store/87mxipb93cxhg4wy13wa8wk9mjsxd937-pkg-config-0.29.tar.gz
From http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.tar.gz...
following redirection to 
`https://pkg-config.freedesktop.org/releases/pkg-config-0.29.tar.gz'...
;;; Failed to autoload make-session in (gnutls):
;;; ERROR: missing interface for module (gnutls)
ERROR: In procedure module-lookup: Unbound variable: make-session
failed to download 
"/gnu/store/87mxipb93cxhg4wy13wa8wk9mjsxd937-pkg-config-0.29.tar.gz" from 
"http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.tar.gz";
builder for 
`/gnu/store/yp6432nfcwblxwvmm3kmsg6zdgqfyc9p-pkg-config-0.29.tar.gz.drv' failed 
to produce output path 
`/gnu/store/87mxipb93cxhg4wy13wa8wk9mjsxd937-pkg-config-0.29.tar.gz'
@ build-failed 
/gnu/store/yp6432nfcwblxwvmm3kmsg6zdgqfyc9p-pkg-config-0.29.tar.gz.drv - 1 
builder for 
`/gnu/store/yp6432nfcwblxwvmm3kmsg6zdgqfyc9p-pkg-config-0.29.tar.gz.drv' failed 
to produce output path 
`/gnu/store/87mxipb93cxhg4wy13wa8wk9mjsxd937-pkg-config-0.29.tar.gz'
cannot build derivation 
`/gnu/store/ns04f833g7r72gbaxlcakjb4n69iw2fw-pkg-config-0.29.drv': 1 
dependencies couldn't be built
guix build: error: build failed: build of 
`/gnu/store/ns04f833g7r72gbaxlcakjb4n69iw2fw-pkg-config-0.29.drv' failed


If I change the url to the redirection url (see attached patch) I get:

Backtrace:
In guix/gexp.scm:
 402: 19 [#<procedure 3fdbd00 at guix/gexp.scm:402:4 (state)> #]
 405: 18 [#<procedure 3b44bd0 at guix/gexp.scm:405:22 (state)> #]
In guix/store.scm:
1001: 17 [#<procedure 3b44c00 at guix/store.scm:1000:28 (store)> #]
In guix/packages.scm:
 733: 16 [cache # # #<procedure thunk ()>]
 978: 15 [thunk]
 910: 14 [bag->derivation # # #]
In srfi/srfi-1.scm:
 578: 13 [map #<procedure 3b44b10 at guix/packages.scm:912:30 (t-887996)> #]
In guix/packages.scm:
 790: 12 [expand-input # # # ...]
In guix/store.scm:
1061: 11 [run-with-store # ...]
In guix/download.scm:
 271: 10 [#<procedure 38a4840 at guix/download.scm:271:8 (state)> #]
In guix/store.scm:
1001: 9 [#<procedure 3b44990 at guix/store.scm:1000:28 (store)> #]
In guix/packages.scm:
 733: 8 [cache # # #<procedure thunk ()>]
 978: 7 [thunk]
 910: 6 [bag->derivation # # #]
In srfi/srfi-1.scm:
 578: 5 [map #<procedure 3b44900 at guix/packages.scm:912:30 (t-887996)> #]
In guix/packages.scm:
 790: 4 [expand-input # # # ...]
In guix/store.scm:
1008: 3 [#<procedure f73140 at guix/store.scm:1007:26 (store . args)> # # ...]
In guix/packages.scm:
1080: 2 [origin->derivation # "x86_64-linux"]
In guix/download.scm:
 239: 1 [url-fetch "mirror://gnu/guile/guile-2.0.11.tar.xz" sha256 ...]
In unknown file:
   ?: 0 [string-prefix? "https://"; "mirror://gnu/guile/guile-2.0.11.tar.xz" ...]

ERROR: In procedure string-prefix?:
ERROR: Throw to key `vm-error' with args `(vm-run "VM: Stack overflow" ())'.
Backtrace:
In guix/store.scm:
1001: 19 [#<procedure 3b44c00 at guix/store.scm:1000:28 (store)> #]
In guix/packages.scm:
 733: 18 [cache # # #<procedure thunk ()>]
 978: 17 [thunk]
 910: 16 [bag->derivation # # #]
In srfi/srfi-1.scm:
 578: 15 [map #<procedure 3b44b10 at guix/packages.scm:912:30 (t-887996)> #]
In guix/packages.scm:
 790: 14 [expand-input # # # ...]
In guix/store.scm:
1061: 13 [run-with-store # ...]
In guix/download.scm:
 271: 12 [#<procedure 38a4840 at guix/download.scm:271:8 (state)> #]
In guix/store.scm:
1001: 11 [#<procedure 3b44990 at guix/store.scm:1000:28 (store)> #]
In guix/packages.scm:
 733: 10 [cache # # #<procedure thunk ()>]
 978: 9 [thunk]
 910: 8 [bag->derivation # # #]
In srfi/srfi-1.scm:
 578: 7 [map #<procedure 3b44900 at guix/packages.scm:912:30 (t-887996)> #]
In guix/packages.scm:
 790: 6 [expand-input # # # ...]
In guix/store.scm:
1008: 5 [#<procedure f73140 at guix/store.scm:1007:26 (store . args)> # # ...]
In guix/packages.scm:
1080: 4 [origin->derivation # "x86_64-linux"]
In guix/download.scm:
 239: 3 [url-fetch "mirror://gnu/guile/guile-2.0.11.tar.xz" sha256 ...]
In unknown file:
   ?: 2 [string-prefix? "https://"; "mirror://gnu/guile/guile-2.0.11.tar.xz" ...]
In ice-9/boot-9.scm:
 105: 1 [#<procedure 83b180 at ice-9/boot-9.scm:97:6 (thrown-k . args)> 
vm-error ...]
  65: 0 [abort-to-prompt catch7 vm-error vm-run "VM: Stack overflow" ()]

ice-9/boot-9.scm:65:2: In procedure abort-to-prompt:
ice-9/boot-9.scm:65:2: Throw to key `vm-error' with args `(vm-run "VM: Stack 
overflow" ())'.
Backtrace:
In guix/packages.scm:
 978: 19 [thunk]
 910: 18 [bag->derivation # # #]
In srfi/srfi-1.scm:
 578: 17 [map #<procedure 3b44b10 at guix/packages.scm:912:30 (t-887996)> #]
In guix/packages.scm:
 790: 16 [expand-input # # # ...]
In guix/store.scm:
1061: 15 [run-with-store # ...]
In guix/download.scm:
 271: 14 [#<procedure 38a4840 at guix/download.scm:271:8 (state)> #]
In guix/store.scm:
1001: 13 [#<procedure 3b44990 at guix/store.scm:1000:28 (store)> #]
In guix/packages.scm:
 733: 12 [cache # # #<procedure thunk ()>]
 978: 11 [thunk]
 910: 10 [bag->derivation # # #]
In srfi/srfi-1.scm:
 578: 9 [map #<procedure 3b44900 at guix/packages.scm:912:30 (t-887996)> #]
In guix/packages.scm:
 790: 8 [expand-input # # # ...]
In guix/store.scm:
1008: 7 [#<procedure f73140 at guix/store.scm:1007:26 (store . args)> # # ...]
In guix/packages.scm:
1080: 6 [origin->derivation # "x86_64-linux"]
In guix/download.scm:
 239: 5 [url-fetch "mirror://gnu/guile/guile-2.0.11.tar.xz" sha256 ...]
In unknown file:
   ?: 4 [string-prefix? "https://"; "mirror://gnu/guile/guile-2.0.11.tar.xz" ...]
In ice-9/boot-9.scm:
 105: 3 [#<procedure 83b180 at ice-9/boot-9.scm:97:6 (thrown-k . args)> 
vm-error ...]
  65: 2 [abort-to-prompt catch7 vm-error vm-run "VM: Stack overflow" ()]
 105: 1 [#<procedure 83b180 at ice-9/boot-9.scm:97:6 (thrown-k . args)> 
vm-error ...]
  65: 0 [abort-to-prompt catch7 vm-error vm-run "VM: Stack overflow" ()]

ice-9/boot-9.scm:65:2: In procedure abort-to-prompt:
ice-9/boot-9.scm:65:2: Throw to key `vm-error' with args `(vm-run "VM: Stack 
overflow" ())'.

davexunit on #guix mentioned that this may need to be solved using a
minimal build of gnutls that doesn't require pkg-config for https
downloads but i'm a bit out of my depth here so I'm just reporting :).

I am happy to do some grunt work once the project decides what direction
to go.

Thanks,
Christopher Carpenter


===File
/home/mordocai/git_repos/guix/0001-Fix-pkg-config-source-url-for-redirection.patch===
From ec3fd8fecac1d76fe429915f85556be937bc6ec8 Mon Sep 17 00:00:00 2001
From: "Christopher W. Carpenter (https://mordocai.net/gpg.html)"
 <address@hidden>
Date: Tue, 9 Feb 2016 20:52:38 -0600
Subject: [PATCH] Fix pkg-config source url for redirection

---
 gnu/packages/pkg-config.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/pkg-config.scm b/gnu/packages/pkg-config.scm
index 5923395..a6be228 100644
--- a/gnu/packages/pkg-config.scm
+++ b/gnu/packages/pkg-config.scm
@@ -34,7 +34,7 @@
    (source (origin
             (method url-fetch)
             (uri (string-append
-                  "http://pkgconfig.freedesktop.org/releases/pkg-config-";
+                  "https://pkg-config.freedesktop.org/releases/pkg-config-";
                   version ".tar.gz"))
             (sha256
              (base32
-- 
2.7.0

============================================================

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]