GNU bug report logs -
#20037
'guix system reconfigure' without 'gnu/system/linux.go' fails with duplicates login pam-service
Previous Next
Reported by: 宋文武 <iyzsong <at> gmail.com>
Date: Sun, 8 Mar 2015 10:33:01 UTC
Severity: normal
Done: ludo <at> gnu.org (Ludovic Courtès)
Bug is archived. No further changes may be made.
Full log
Message #10 received at 20037-done <at> debbugs.gnu.org (full text, mbox):
宋文武 <iyzsong <at> gmail.com> skribis:
> I can reproduce the issue Tomáš Čech (Sleep_Walker) reported at IRC,
> but only when reconfigure under 'pre-inst-env' and without 'gnu/system/linux.go':
Thanks a lot for finding it out, it’s an interesting bug!
The problem was that ‘pam-service->directory’ would get a different list
of objects depending on whether (gnu packages linux) is evaluated or
running from bytecode: when evaluated, the list would contain duplicate
services, leading to the build error you reported, but when running from
bytecode, the list is deduplicated.
This is because (gnu system) would call ‘delete-duplicates’ on the list
of PAM services, thereby using ‘equal?’ to compare them. But since
<pam-service> include gexps, which include closures, ‘equal?’ could
return #t when running the compiled code (because in effect the gexps in
‘unix-pam-service’ would not lead to the allocation of fresh closures at
each call, so the gexps would be ‘eq?’), whereas with the evaluated
code, it would systematically return #f (we get fresh closures at each
‘unix-pam-service’ call.)
Commit 11dddd8 fixes that.
Thanks to both of you!
Ludo’.
This bug report was last modified 10 years and 52 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.