I did the following:

--8<---------------cut here---------------start------------->8---
guix environment guix
./bootstrap
./configure --localstatedir="/var"
./pre-inst-env guile
--8<---------------cut here---------------end--------------->8---

And inside Guile REPL:

--8<---------------cut here---------------start------------->8---
,use (guix build syscalls)
(utmpx-entries)
--8<---------------cut here---------------end--------------->8---

And I get what is attached in "utmp-1.txt".

The same result is observed when I append `--ad-hoc guile' to `guix
environment guix' (I attempted a `diff' between the results of two
sequence of commands and it didn't report anything).

$1 = (#<<utmpx-entry> type: 2 pid: 0 line: "~" id: (126 126 0 0) user: "reboot" 
host: "4.9.59-gnu.pae" termination: 0 exit: 0 session: 0 time: #<time type: 
time-utc nanosecond: 365756000 second: 1511606591> address: (0 0 0 0)> 
#<<utmpx-entry> type: 1 pid: 50 line: "~" id: (126 126 0 0) user: "runlevel" 
host: "4.9.59-gnu.pae" termination: 0 exit: 0 session: 0 time: #<time type: 
time-utc nanosecond: 422713000 second: 1511606591> address: (0 0 0 0)> 
#<<utmpx-entry> type: 6 pid: 1058 line: "tty4" id: (52 0 0 0) user: "LOGIN" 
host: #f termination: 0 exit: 0 session: 1058 time: #<time type: time-utc 
nanosecond: 0 second: 1511606591> address: (0 0 0 0)> #<<utmpx-entry> type: 6 
pid: 1059 line: "tty5" id: (53 0 0 0) user: "LOGIN" host: #f termination: 0 
exit: 0 session: 1059 time: #<time type: time-utc nanosecond: 0 second: 
1511606591> address: (0 0 0 0)> #<<utmpx-entry> type: 6 pid: 1067 line: "tty2" 
id: (50 0 0 0) user: "LOGIN" host: #f termination: 0 exit: 0 session: 1067 
time: #<time type: time-utc nanosecond: 0 second: 1511606591> address: (0 0 0 
0)> #<<utmpx-entry> type: 6 pid: 1068 line: "tty3" id: (51 0 0 0) user: "LOGIN" 
host: #f termination: 0 exit: 0 session: 1068 time: #<time type: time-utc 
nanosecond: 0 second: 1511606591> address: (0 0 0 0)> #<<utmpx-entry> type: 6 
pid: 1071 line: "tty6" id: (54 0 0 0) user: "LOGIN" host: #f termination: 0 
exit: 0 session: 1071 time: #<time type: time-utc nanosecond: 0 second: 
1511606591> address: (0 0 0 0)> #<<utmpx-entry> type: 6 pid: 1274 line: "tty1" 
id: (49 0 0 0) user: "LOGIN" host: #f termination: 0 exit: 0 session: 1274 
time: #<time type: time-utc nanosecond: 0 second: 1511606597> address: (0 0 0 
0)> #<<utmpx-entry> type: 7 pid: 1816 line: ":0" id: (58 48 0 0) user: "adfeno" 
host: ":0" termination: 0 exit: 0 session: 0 time: #<time type: time-utc 
nanosecond: 414645000 second: 1511606622> address: (0 0 0 0)> #<<utmpx-entry> 
type: 7 pid: 2085 line: "pts/1" id: (47 49 0 0) user: "adfeno" host: ":0" 
termination: 0 exit: 0 session: 0 time: #<time type: time-utc nanosecond: 
38087000 second: 1511606641> address: (0 0 0 0)> #<<utmpx-entry> type: 8 pid: 0 
line: "pts/3" id: (47 51 0 0) user: "adfeno" host: #f termination: 0 exit: 0 
session: 0 time: #<time type: time-utc nanosecond: 125808000 second: 
1511606671> address: (0 0 0 0)> #<<utmpx-entry> type: 8 pid: 1288 line: "pts/0" 
id: (47 48 0 0) user: #f host: ":0:S.0" termination: 0 exit: 0 session: 0 time: 
#<time type: time-utc nanosecond: 0 second: 1511606662> address: (0 0 0 0)>)
2017-11-24T21:58:36+0100 Ludovic Courtès wrote:
> Hello,
>
>
> Can you try this in a REPL?
>
> You can run:
>
>   ./pre-inst-env guile
>
> and then:
>
>   ,use (guix build syscalls)
>   (utmpx-entries)
>
> TIA!
>
> Ludo’.
>

Reply via email to