unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#35138: guix system search needs installer
@ 2019-04-04  8:54 Jonathan Brielmaier
  2019-04-04 15:50 ` Ludovic Courtès
  2019-04-12 10:51 ` Jonathan Brielmaier
  0 siblings, 2 replies; 4+ messages in thread
From: Jonathan Brielmaier @ 2019-04-04  8:54 UTC (permalink / raw)
  To: 35138

Hi,

during the use of the openSUSE package of Guix I found a little "bug".
Running "guix system search" results in:

guix system: warning: failed to load '(gnu system install)':
no code for module (gnu installer)

So I packaged guile-newt and configured the guix package with
"--enable-installer". Now this problem is gone :)

I just wonder if we should document this, so that it's clear
"--enable-installer" is not only needed for the installer. Or maybe
there is a way to remove the dependency for "guix system search" on (gnu
installer).

~Jonathan

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

* bug#35138: guix system search needs installer
  2019-04-04  8:54 bug#35138: guix system search needs installer Jonathan Brielmaier
@ 2019-04-04 15:50 ` Ludovic Courtès
  2019-04-12 10:51 ` Jonathan Brielmaier
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2019-04-04 15:50 UTC (permalink / raw)
  To: Jonathan Brielmaier; +Cc: 35138-done

Hi,

Jonathan Brielmaier <jonathan.brielmaier@web.de> skribis:

> during the use of the openSUSE package of Guix I found a little "bug".
> Running "guix system search" results in:
>
> guix system: warning: failed to load '(gnu system install)':
> no code for module (gnu installer)

(Note that it’s a warning, not an error.)

I cannot reproduce this with a ‘guix’ coming from ‘guix pull’:

--8<---------------cut here---------------start------------->8---
$ guix system search . > /dev/null
$ echo $?
0
--8<---------------cut here---------------end--------------->8---

Indeed, the problem came from the makefiles, and is fixed in commit
a7ad4505b7a09f32e2727a333e11716739efb713.

Thanks!

Ludo’.

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

* bug#35138: guix system search needs installer
  2019-04-04  8:54 bug#35138: guix system search needs installer Jonathan Brielmaier
  2019-04-04 15:50 ` Ludovic Courtès
@ 2019-04-12 10:51 ` Jonathan Brielmaier
  2019-04-12 15:57   ` Ludovic Courtès
  1 sibling, 1 reply; 4+ messages in thread
From: Jonathan Brielmaier @ 2019-04-12 10:51 UTC (permalink / raw)
  To: 35138

I think your fix in commit a7ad4505b7a09f32e2727a333e11716739efb713
introduced another bug.

So building guix now with "./configure --enable-installer" leads to this
error:
------------------------------------------------------------------
+ make clean
Makefile:5388: *** missing separator.  Stop.
+ make -j8
Makefile:5388: *** missing separator.  Stop.
------------------------------------------------------------------

The resulting Makefile looks as follow:
------------------------------------------------------------------
5384 scripts/guix: scripts/guix.in Makefile
5385   $(AM_V_at)rm -f $@ $@-t

5386   $(AM_V_at)$(MKDIR_P) "$(@D)"

5387   $(AM_V_GEN)$(do_subst) < "$(srcdir)/$@.in" > "$@-t"

5388   $(AM_V_at)chmod a+x,a-w "$@-t" && mv -f "$@-t" "$@"

5389 elif !ENABLE_INSTALLER

5390
------------------------------------------------------------------

My assumption is that the ENABLE_INSTALLER statement in gnu/local.mk
doesn't get evaluated "correctly".
------------------------------------------------------------------
621 # Always ship the installer modules but compile them only when

622 # ENABLE_INSTALLER is true.

623 if ENABLE_INSTALLER

624 GNU_SYSTEM_MODULES += $(INSTALLER_MODULES)

625 elif !ENABLE_INSTALLER

626 MODULES_NOT_COMPILED += $(INSTALLER_MODULES)

627 endif
------------------------------------------------------------------

With "./configure --disable-installer" the line 5389 in Makefile is
commented out.

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

* bug#35138: guix system search needs installer
  2019-04-12 10:51 ` Jonathan Brielmaier
@ 2019-04-12 15:57   ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2019-04-12 15:57 UTC (permalink / raw)
  To: Jonathan Brielmaier; +Cc: 35138-done

Hello!

Jonathan Brielmaier <jonathan.brielmaier@web.de> skribis:

> So building guix now with "./configure --enable-installer" leads to this
> error:
> ------------------------------------------------------------------
> + make clean
> Makefile:5388: *** missing separator.  Stop.
> + make -j8
> Makefile:5388: *** missing separator.  Stop.
> ------------------------------------------------------------------
>
> The resulting Makefile looks as follow:
> ------------------------------------------------------------------
> 5384 scripts/guix: scripts/guix.in Makefile
> 5385   $(AM_V_at)rm -f $@ $@-t
>
> 5386   $(AM_V_at)$(MKDIR_P) "$(@D)"
>
> 5387   $(AM_V_GEN)$(do_subst) < "$(srcdir)/$@.in" > "$@-t"
>
> 5388   $(AM_V_at)chmod a+x,a-w "$@-t" && mv -f "$@-t" "$@"
>
> 5389 elif !ENABLE_INSTALLER
>
> 5390
> ------------------------------------------------------------------

Oops, commit c8e070dad70cbc13b6f77d4f20d7d21d3931a835 should fix it.

Thanks for the report!

Ludo’.

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

end of thread, other threads:[~2019-04-12 15:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-04  8:54 bug#35138: guix system search needs installer Jonathan Brielmaier
2019-04-04 15:50 ` Ludovic Courtès
2019-04-12 10:51 ` Jonathan Brielmaier
2019-04-12 15:57   ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).