From mboxrd@z Thu Jan 1 00:00:00 1970 From: Omar Radwan Subject: Re: A couple roadblocks using guix Date: Sat, 24 Jan 2015 13:57:39 -0800 Message-ID: References: <87oapqzgka.fsf@gnu.org> <87ppa5x4y1.fsf@gnu.org> <20150123214842.GA26317@debian> <87fvazj3ye.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdca2986e74d8050d6cfe89 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YF8i5-0005Wm-RE for guix-devel@gnu.org; Sat, 24 Jan 2015 16:57:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YF8i4-0007To-MD for guix-devel@gnu.org; Sat, 24 Jan 2015 16:57:41 -0500 In-Reply-To: <87fvazj3ye.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel --047d7bdca2986e74d8050d6cfe89 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 1. > Hmm could you paste the actual error? 2. 3. bash-4.3$ sudo guix system reconfigure /etc/config.scm 4. guix system: error: failed to load operating system file '/etc/config.scm': 5. ERROR: Wrong number of arguments to # 6. 7. And I'm 100 percent sure it's the dhcp-client-service declaration because when I take it out, guix system reconfigure works fine. And just= in case, here's my config.scm 8. """ 9. (use-modules (gnu) 10. (gnu services xorg) 11. (gnu services networking) 12. (gnu packages emacs) 13. ) 14. (operating-system 15. (host-name "ShadyNet2") 16. (timezone "US/Pacific") 17. (locale "en_US.UTF-8") 18. (bootloader (grub-configuration (device "/dev/sda"))) 19. (file-systems (cons (file-system 20. (device "/dev/sda1") 21. (title 'label) 22. (mount-point "/") 23. (type "ext4")) 24. %base-file-systems)) 25. (users (list (user-account 26. (name "omar") 27. (group "users") 28. (supplementary-groups '("wheel" 29. "audio" "video")) 30. (home-directory "/home/omar")))) 31. (packages (cons emacs %base-packages)) 32. (services (cons (slim-service) (dhcp-client-service)%base-services))) 33. """ 34. On Sat, Jan 24, 2015 at 12:53 PM, Ludovic Court=C3=A8s wrote= : > Andreas Enge skribis: > > > On Fri, Jan 23, 2015 at 09:43:34AM +0100, Ludovic Court=C3=A8s wrote: > >> So in general I agree it=E2=80=99s a good idea, and it=E2=80=99s easil= y done with > >> =E2=80=98union-build=E2=80=99, so if people know of useful meta-packag= es, please > >> send a patch. > > > > Why not an empty package with only propagated inputs? > > It would be equivalent if it worked, but it doesn=E2=80=99t. :-) > Currently a package has to produce something. > > Ludo=E2=80=99. > > --047d7bdca2986e74d8050d6cfe89 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
  1. > Hmm = could you paste the actual error?
  2. =C2=A0
  3. bash-4.= 3$ sudo guix system reconfigure /etc/config.scm
  4. guix system: erro= r: failed to load operating system file '/etc/config.scm':
  5. ERROR: Wrong number of arguments to #<procedure cons (_ _)>
  6. =C2=A0
  7. And I'm 100 percent sure it's the dhcp-clien= t-service declaration because when I take it out, guix system reconfigure w= orks fine. And just in case, here's my config.scm
  8. &quo= t;""
  9. (use-modules (gnu)
  10. (gnu services xorg)=
  11. (gnu services networking)
  12. (gnu packages emacs)
  13. =C2=A0)
  14. (operating-system
  15. =C2=A0 (host-name "Sh= adyNet2")
  16. =C2=A0 (timezone "US/Pacific")
  17. =C2=A0 (locale "en_US.UTF-8")
  18. =C2=A0 (bootloader (= grub-configuration (device "/dev/sda")))
  19. =C2=A0 (file-s= ystems (cons (file-system
  20. <= div class=3D"" style=3D"padding:0px 5px;vertical-align:top;color:rgb(0,0,0)= ;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,20= 4,204);background:rgb(255,255,255)">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (device "/dev/sda1"= )
  • =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 (title 'label)
  • =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (mount-point &q= uot;/")
  • =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (type "ext4"))
  • =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 %base= -file-systems))
  • =C2=A0(users (list (user-account
  • =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (name "omar"= )
  • =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (group = "users")
  • =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 (supplementary-groups '("wheel"
  • =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "audio&quo= t; "video"))
  • =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 (home-directory "/home/omar"))))
  • =C2=A0 (= packages (cons emacs %base-packages))
  • =C2=A0 (services (cons (sli= m-service) (dhcp-client-service)%base-services)))
  • ""&qu= ot;
  • =C2=A0

  • <= div class=3D"gmail_quote">On Sat, Jan 24, 2015 at 12:53 PM, Ludovic Court= =C3=A8s <ludo@gnu.org> wrote:
    A= ndreas Enge <andreas@enge.fr> = skribis:

    > On Fri, Jan 23, 2015 at 09:43:34AM +0100, Ludovic Court=C3=A8s wrote:<= br> >> So in general I agree it=E2=80=99s a good idea, and it=E2=80=99s e= asily done with
    >> =E2=80=98union-build=E2=80=99, so if people know of useful meta-pa= ckages, please
    >> send a patch.
    >
    > Why not an empty package with only propagated inputs?

    It would be equivalent if it worked, but it doesn=E2=80=99t.=C2= =A0 :-)
    Currently a package has to produce something.

    Ludo=E2=80=99.


    --047d7bdca2986e74d8050d6cfe89--