blob: 2834f905e8e4ddf84d97d51b847b8f31cdc21656 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
---
title: Failure with relocatable Guix pack tarball
date: 2020-12-15
layout: post
lang: en
eu_categories: guix
ref: failure-with-relocatable-guix-pack-tarball
---
FIXED: Use `GUIX_PROFILE= source etc/profile`
---
The example from the [blog post][guix-tarball-article] fails.
[guix-tarball-article]: https://guix.gnu.org/blog/2018/tarballs-the-ultimate-container-image-format/
```shell
$ tar xf `guix pack --relocatable -S /bin=bin -S /etc=etc guile gnutls guile-json`
$ source etc/profile
$ bin/guile -c '(use-modules (json))'
guile: warning: failed to install locale
Backtrace:
In ice-9/boot-9.scm:
1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
12 (apply-smob/0 #<thunk 7f9d240ca740>)
In ice-9/boot-9.scm:
718:2 11 (call-with-prompt ("prompt") #<procedure 7f9d240db740 ?> ?)
In ice-9/eval.scm:
619:8 10 (_ #(#(#<directory (guile-user) 7f9d23d00f00>)))
In ice-9/command-line.scm:
185:18 9 (_ #<input: string 7f9d23cfaa10>)
In unknown file:
8 (eval (use-modules (json)) #<directory (guile-user) 7f9?>)
In ice-9/eval.scm:
721:20 7 (primitive-eval (use-modules (json)))
In ice-9/psyntax.scm:
1241:36 6 (expand-top-sequence ((use-modules (json))) _ _ #f _ _ _)
1233:19 5 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?)
285:10 4 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) ?)
In ice-9/boot-9.scm:
3898:20 3 (process-use-modules _)
222:17 2 (map1 (((json))))
3899:31 1 (_ ((json)))
3300:6 0 (resolve-interface (json) #:select _ #:hide _ #:prefix _ ?)
ice-9/boot-9.scm:3300:6: In procedure resolve-interface:
no code for module (json)
$ bin/guile -c '(use-modules (gnutls))'
guile: warning: failed to install locale
Backtrace:
In ice-9/boot-9.scm:
1736:10 13 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
12 (apply-smob/0 #<thunk 7f7fe607a7c0>)
In ice-9/boot-9.scm:
718:2 11 (call-with-prompt ("prompt") #<procedure 7f7fe6085940 ?> ?)
In ice-9/eval.scm:
619:8 10 (_ #(#(#<directory (guile-user) 7f7fe5ca8f00>)))
In ice-9/command-line.scm:
185:18 9 (_ #<input: string 7f7fe5ca2a10>)
In unknown file:
8 (eval (use-modules (gnutls)) #<directory (guile-user) 7?>)
In ice-9/eval.scm:
721:20 7 (primitive-eval (use-modules (gnutls)))
In ice-9/psyntax.scm:
1241:36 6 (expand-top-sequence ((use-modules (gnutls))) _ _ #f _ _ ?)
1233:19 5 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?)
285:10 4 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) ?)
In ice-9/boot-9.scm:
3898:20 3 (process-use-modules _)
222:17 2 (map1 (((gnutls))))
3899:31 1 (_ ((gnutls)))
3300:6 0 (resolve-interface (gnutls) #:select _ #:hide _ #:prefix ?)
ice-9/boot-9.scm:3300:6: In procedure resolve-interface:
no code for module (gnutls)
```
My Guix version if fairly recent:
```shell
$ guix describe
Génération 83 14 déc. 2020 00:28:16 (actuelle)
guix 41807eb
URL du dépôt : https://git.savannah.gnu.org/git/guix.git
branche: master
commit : 41807eb5329299b8c45cd49356a4ead01ce0d469
```
|