emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#36207: closed (Circular dependency in gnu/services


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#36207: closed (Circular dependency in gnu/services: mcron -> base -> admin -> mcron)
Date: Sat, 15 Jun 2019 16:43:01 +0000

Your message dated Sat, 15 Jun 2019 18:42:15 +0200
with message-id <address@hidden>
and subject line Re: bug#36207: Circular dependency in gnu/services: mcron -> 
base -> admin -> mcron
has caused the debbugs.gnu.org bug report #36207,
regarding Circular dependency in gnu/services: mcron -> base -> admin -> mcron
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
36207: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36207
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Circular dependency in gnu/services: mcron -> base -> admin -> mcron Date: Fri, 14 Jun 2019 11:49:16 -0400 (EDT) User-agent: Alpine 2.20 (DEB 67 2015-01-07)
Hi Guix,

As discussed on IRC with Ludo’ and Ricardo, 4252dace19945f56192477e8cb07973c20a526ba introduced a circular dependency among gnu/services modules, by adding a dependency between from base -> admin, resulting in the full dependency chain:

 mcron -> base -> admin -> mcron

I ran into this when building a channel. The error reported by guix pull was:

```
(repl-version 0 0)
(exception misc-error (value #f) (value "Unbound variable: ~s") (value 
(mcron-service-type)) (value #f))
```

Ludo’ determined the full error was:

```
gnu/services/admin.scm:161:21: Unbound variable: mcron-service-type
```

by running the repl directly:

```
echo '(primitive-load 
"/gnu/store/vf892np8mnh2zx9dppcv9k25xk648n2d-inferior-script.scm")' \
| "/gnu/store/j7vxgnaqwimrzsnd8zhq9x1jdp7afl0s-guix-ca45da9fc/bin/guix" "repl"
```

Options for solving this problem include moving the guix-publish service into another module. However, this would break the API of (gnu service base),
so we should be careful when doing that.

It doesn't look like guix-publish is used elsewhere in the Guix code proper currently.

For now, we might want to revert 4252dace19945f56192477e8cb07973c20a526ba.

Best,
Jack

--- End Message ---
--- Begin Message --- Subject: Re: bug#36207: Circular dependency in gnu/services: mcron -> base -> admin -> mcron Date: Sat, 15 Jun 2019 18:42:15 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
Hi Jack,

Jack Hill <address@hidden> skribis:

> As discussed on IRC with Ludo’ and Ricardo,
> 4252dace19945f56192477e8cb07973c20a526ba introduced a circular
> dependency among gnu/services modules, by adding a dependency between
> from base -> 
> admin, resulting in the full dependency chain:
>
>  mcron -> base -> admin -> mcron
>
> I ran into this when building a channel. The error reported by guix
> pull was:
>
> ```
> (repl-version 0 0)
> (exception misc-error (value #f) (value "Unbound variable: ~s") (value 
> (mcron-service-type)) (value #f))
> ```

This is fixed (surprisingly easily!) by commit
f3d797005374e5333c7596fe86b4a524ab1b9b11.

Let me know if you notice anything wrong!

Thanks for the bug report,
Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]