GNU bug report logs - #73451
privileged-program - Wrong type argument in position 1 (expecting struct)

Previous Next

Package: guix;

Reported by: Giovanni Biscuolo <g <at> xelera.eu>

Date: Tue, 24 Sep 2024 14:05:01 UTC

Severity: normal

Done: Giovanni Biscuolo <g <at> xelera.eu>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 73451 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Giovanni Biscuolo <g <at> xelera.eu>,
 Giovanni Biscuolo via Bug reports for GNU Guix <bug-guix <at> gnu.org>,
 73451 <at> debbugs.gnu.org
Subject: Re: bug#73451: privileged-program - Wrong type argument in position 1 (expecting struct)
Date: Tue, 24 Sep 2024 16:35:45 +0000
Hi Giovanni,

(Did you mean to immediately open a bug report?)

On 24 September 2024 14:03:55 UTC, Giovanni Biscuolo via Bug reports for GNU Guix <bug-guix <at> gnu.org> wrote:
>	 (append (list (privileged-program
>			(program (file-append spice-gtk "/libexec/spice-client-glib-usb-acl-helper"))
>			(setuid? #t))
>		       %default-privileged-programs)))

You should really [configure your editor to] indent your code.

The error will immediately become obvious, and future ones like it will too.  You meant to write

  (append (list foo)
          %another-list))

not

  (append (list foo %another-list))

which creates that incorrectly nested your Guix is freaking out about.

Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.




This bug report was last modified 241 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.