Subject: bug#16463: Guile derivation fails to build

From: [email-masked] (Ludovic Courtès)
Date: Fri, 17 Jan 2014 11:44:49 +0100

Sree Harsha Totakura <[email-masked]> skribis:

> open("./test-command-line-encoding2", O_RDONLY) = 3
> ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff02231670) = -1 ENOTTY (Inappropriate ioctl for device)
> lseek(3, 0, SEEK_CUR)                   = 0
> read(3, "#!/home/nix/store/v7vpnjlrgs4w3z"..., 80) = 80
> lseek(3, 0, SEEK_SET)                   = 0
> getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=4*1024}) = 0
> fcntl(255, F_GETFD)                     = -1 EBADF (Bad file descriptor)
> dup2(3, 255)                            = 255
> close(3)                                = 0
> fcntl(255, F_SETFD, FD_CLOEXEC)         = 0
> fcntl(255, F_GETFL)                     = 0x8000 (flags O_RDONLY|O_LARGEFILE)
> fstat(255, {st_mode=S_IFREG|0755, st_size=512, ...}) = 0
> lseek(255, 0, SEEK_CUR)                 = 0
> brk(0x203f000)                          = 0x203f000
> rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
> read(255, "#!/home/nix/store/v7vpnjlrgs4w3z"..., 512) = 512

What does this report:

  ./meta/guile -c '(pk (file-encoding (open-input-file "test-suite/standalone/test-command-line-encoding2")))'

Ludo’.