all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Unbound variable: static-networking-service-type in gnu/services/base
@ 2017-10-08  8:22 Oleg Pykhalov
  2017-10-08 15:44 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Oleg Pykhalov @ 2017-10-08  8:22 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 801 bytes --]

Hello Guix, Is it a bug or am I missing something?

I want to make a (geiser-mode-switch-to-repl-and-enter) in
(gnu services networking) module.

(gnu services networking) uses (gnu services base) module

    (define-module (gnu services networking)
      ;; …
      #:use-module (gnu services base)
      ;; …
    )

(gnu services base) uses (gnu services networking) module

    (define-module (gnu services base)
      ;; …
      #:use-module (gnu services networking)
      ;; …
      ))

So, to avoid following error I need to manually call
(use-modules (gnu services base)) before switching to
(gnu services networking) module in the REPL.

    gnu/services/base.scm:1889:8: gnu/services/base.scm:1889:8: Unbound
    variable: static-networking-service-type


[-- Attachment #2: $ guix environment --pure --ad-hoc guix guile -- guile --no-auto-compile -e "\(resolve-module '\(gnu services networking\)\)" --]
[-- Type: text/plain, Size: 2059 bytes --]

$ guix environment --pure --ad-hoc guix guile -- guile --no-auto-compile -e "(resolve-module '(gnu services networking))"
substitute: updating list of substitutes from 'https://berlin.guixsd.org'... 100.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
substitute: updating list of substitutes from 'https://hydra.gnu.org'... 100.0%
The following derivations will be built:
   /gnu/store/wqfqwnfza6k0pq952vkrl8b7hhn2ywzc-profile.drv
   /gnu/store/vjcwkfd2gjb7hy4nhs2ia4irdjggnk4c-info-dir.drv
   /gnu/store/f28n67bjd10xjwis1r7hx6fdp54fra24-fonts-dir.drv
   /gnu/store/ahqvrv8fik5h2372mp034nm0nh6lispb-ca-certificate-bundle.drv
   /gnu/store/254zl1qkwarynzx3ahdjrmpc4rm0hsw5-manual-database.drv
Creating manual page database for 13 packages... done in 0.229 s
Backtrace:
In ice-9/boot-9.scm:
  2718:10 19 (_ (gnu services networking) _ _ #:ensure _)
  2986:16 18 (try-module-autoload _ _)
   2316:4 17 (save-module-excursion _)
  3006:22 16 (_)
In unknown file:
          15 (primitive-load-path "gnu/services/networking" #<proced?>)
In gnu/services/networking.scm:
     24:0 14 (_)
In ice-9/boot-9.scm:
   2866:4 13 (define-module* _ #:filename _ #:pure _ #:version _ # _ ?)
  2075:24 12 (call-with-deferred-observers _)
  2879:24 11 (_)
   230:29 10 (map1 (((gnu services)) ((gnu services shepherd)) (#) ?))
   230:29  9 (map1 (((gnu services shepherd)) ((gnu services #)) # ?))
   230:29  8 (map1 (((gnu services dbus)) ((gnu services base)) (#) ?))
   230:17  7 (map1 (((gnu services base)) ((gnu system shadow)) (#) ?))
  2792:17  6 (resolve-interface (gnu services base) #:select _ #:hide ?)
  2718:10  5 (_ (gnu services base) _ _ #:ensure _)
  2986:16  4 (try-module-autoload _ _)
   2316:4  3 (save-module-excursion #<procedure 3261c60 at ice-9/boo?>)
  3006:22  2 (_)
In unknown file:
           1 (primitive-load-path "gnu/services/base" #<procedure 31?>)
In gnu/services/base.scm:
   1889:8  0 (_)

gnu/services/base.scm:1889:8: gnu/services/base.scm:1889:8: Unbound variable: static-networking-service-type

[-- Attachment #3: Type: text/plain, Size: 661 bytes --]


And also a question.  What is right syntax to make a use-modules call
using 'guile -e'?

$ guix environment --pure --ad-hoc guix guile -- guile --no-auto-compile -e "(use-modules (gnu services base))
--8<---------------cut here---------------start------------->8---
Backtrace:
           3 (apply-smob/1 #<catch-closure 12f75a0>)
In ice-9/boot-9.scm:
    713:2  2 (call-with-prompt _ _ #<procedure default-prompt-handle?>)
In ice-9/eval.scm:
    619:8  1 (_ #(#(#<directory (guile-user) 13b8140>)))
In unknown file:
           0 (_ ("guile"))

ERROR: ERROR: Wrong type to apply: #<unspecified>
--8<---------------cut here---------------end--------------->8---

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unbound variable: static-networking-service-type in gnu/services/base
  2017-10-08  8:22 Unbound variable: static-networking-service-type in gnu/services/base Oleg Pykhalov
@ 2017-10-08 15:44 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2017-10-08 15:44 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: help-guix

Oleg Pykhalov <go.wigust@gmail.com> skribis:

> Hello Guix, Is it a bug or am I missing something?
>
> I want to make a (geiser-mode-switch-to-repl-and-enter) in
> (gnu services networking) module.
>
> (gnu services networking) uses (gnu services base) module
>
>     (define-module (gnu services networking)
>       ;; …
>       #:use-module (gnu services base)
>       ;; …
>     )
>
> (gnu services base) uses (gnu services networking) module
>
>     (define-module (gnu services base)
>       ;; …
>       #:use-module (gnu services networking)
>       ;; …
>       ))

Oops, that’s a mistake of mine that
fbc31dc1247d3a494246e69f3cf28476af9eb9d6 specifically intended to avoid.

Fixed in 60273031e895ce6ee4e35fd387b630cf56f8df63.

Thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-08 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-08  8:22 Unbound variable: static-networking-service-type in gnu/services/base Oleg Pykhalov
2017-10-08 15:44 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.