GNU bug report logs - #28399
[PATCH]: Fix mysql activation, and add a basic test.

Previous Next

Package: guix-patches;

Reported by: Christopher Baines <mail <at> cbaines.net>

Date: Sat, 9 Sep 2017 14:40:01 UTC

Severity: normal

Tags: patch

Done: Christopher Baines <mail <at> cbaines.net>

Bug is archived. No further changes may be made.

Full log


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

From: Christopher Baines <mail <at> cbaines.net>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 28399 <at> debbugs.gnu.org
Subject: Re: [bug#28399] [PATCH 1/2] services: mysql: Fix missing modules on
 activation.
Date: Tue, 12 Sep 2017 19:48:25 +0100
[Message part 1 (text/plain, inline)]
On Mon, 11 Sep 2017 09:50:46 +0200
ludo <at> gnu.org (Ludovic Courtès) wrote:

> Hi Chris,
> 
> Christopher Baines <mail <at> cbaines.net> skribis:
> 
> > Some systems using the MySQL service would fail to boot, giving the
> > error:
> >
> >   ERROR: no code for module (ice-9 popen)
> >
> > * gnu/services/databases.scm (%mysql-activation): Wrap the gexp
> > using with-imported-modules, to ensure that the required modules
> > are available.  
> 
> [...]
> 
> > +    (with-imported-modules '((ice-9 popen)
> > +                             (guix build utils))  
> 
> The effect of this would be to import (ice-9 popen) from the host
> Guile in the build side.  Thus someone running Guile 2.2.2 on the
> host would get a slightly different file from someone running Guile
> 2.0.14, and so on, which hinders reproducibility.

That makes sense.

> The ‘use-modules’ form should be enough.  Does the test you sent
> reproduce the original problem?

It does for me. If you just revert the commit adding in the
with-imported-modules bit, running the mysql system test then fails:

ERROR: In procedure scm-error:
ERROR: no code for module (ice-9 popen)
[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified 7 years and 231 days ago.

Previous Next


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