GNU bug report logs - #42053
hidden derivation build with inferiors

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Julien Lepiller <julien@HIDDEN>; dated Thu, 25 Jun 2020 23:48:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> Full text available.

Message received at submit <at>

Received: (at submit) by; 25 Jun 2020 23:47:39 +0000
From debbugs-submit-bounces <at> Thu Jun 25 19:47:39 2020
Received: from localhost ([]:41496
	by with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1jobal-0008Qe-91
	for submit <at>; Thu, 25 Jun 2020 19:47:39 -0400
Received: from ([]:40448)
 by with esmtp (Exim 4.84_2)
 (envelope-from <julien@HIDDEN>) id 1jobah-0008QT-Rh
 for submit <at>; Thu, 25 Jun 2020 19:47:38 -0400
Received: from ([2001:470:142:3::10]:53734)
 by with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <julien@HIDDEN>)
 id 1jobah-0000xl-JG
 for bug-guix@HIDDEN; Thu, 25 Jun 2020 19:47:35 -0400
Received: from ([2a00:5884:8208::1]:56736)
 by with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <julien@HIDDEN>)
 id 1jobaf-0004t7-1l
 for bug-guix@HIDDEN; Thu, 25 Jun 2020 19:47:35 -0400
Received: from (localhost [])
 by (OpenSMTPD) with ESMTP id bb1621c0
 for <bug-guix@HIDDEN>; Thu, 25 Jun 2020 23:47:25 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed;; h=date:from
 :to:subject:message-id:mime-version:content-type; s=dkim; bh=JCI
 w7jK9K9FzcOCn6zRAeXUqdDea8zHuOSepDvULUIs=; b=WSj4GiGhQqeryN4hYco
Received: by (OpenSMTPD) with ESMTPSA id 4f314929
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <bug-guix@HIDDEN>;
 Thu, 25 Jun 2020 23:47:25 +0000 (UTC)
Date: Fri, 26 Jun 2020 01:47:12 +0200
From: Julien Lepiller <julien@HIDDEN>
To: bug-guix@HIDDEN
Subject: hidden derivation build with inferiors
Message-ID: <20200626014712.5620ac06@HIDDEN>
X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="MP_/f4vWrYXsFRYouiRD0trNdQ_"
Received-SPF: none client-ip=2a00:5884:8208::1;
X-detected-operating-system: by No matching host in p0f cache.
 That's all we know.
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
X-Spam-Score: -3.3 (---)

Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


someone (kernel-help) on IRC today was having issues using an inferior
kernel with their os configuration and reported that guix was
"hanging". It turns out that guix was actually building the kernel in
the background, but did not report anything to the user. kernel-help
was kind enough to share their config, and I can confirm that guix is
building the kernel, but doesn't tell anything.

I was able to track this done to a call to operating-system-derivation,
which is supposed to return the path to a .drv file. I did not expect
it to have to build anything, since it's only computing a derivation

Using the attached operating system declaration, defining it as "os",
you can see that calling ((operating-system-derivation os)
(open-connection)) "hangs" with no message, and a build user is
building the kernel (unless you already have the kernel built).

Note that the build process continues even if you interrupt that
procedure, and only stops after you exit guix repl entirely.

Going one step further, operating-system-derivation calls fold-services
(which is fine), then service-value (which is also fine) and calls that
value with the store, which builds the kernel without saying anything.
That value comes from the root service type, system-service-type and its
system-derivation procedure.

With some pk, I was able to find that mapm/accumulate-builds was the
culprit, but I don't know how to investigate further.

Content-Type: text/x-scheme
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=test-inferior.scm

(use-modules (gnu)
	     (guix channels)
	     (srfi srfi-1)
	     (guix inferior)
	     (gnu packages linux)
	     (srfi srfi-1)
	     (ice-9 match)
	     (guix packages)
	     (gnu packages gnome))
(use-service-modules desktop networking ssh xorg)

(define kernel-inferior-channel
  ;; This is the old revision from which
  ;; we will obtain our desired kernel version.
  (list (channel
         (name 'guix)
         (url "")

(define linux-libre-4.19-inferior
    (inferior-for-channels kernel-inferior-channel)
    "linux-libre" "4.19.129")))

(define-public gnome-minimal
  (package (inherit gnome)
	   (name "gnome-minimal")
	    (remove (match-lambda
		      ((name _)
		       (member name '("baobab"
		    (package-propagated-inputs gnome)))))
 (locale "en_US.utf8")
 (kernel linux-libre-4.19-inferior)
 (timezone "America/Chicago")
 (keyboard-layout (keyboard-layout "us"))
 (host-name "t430")
 (users (cons* (user-account
		(name "brettg")
		(comment "Redacted")
		(group "users")
		(home-directory "/home/redacted")
		 '("wheel" "netdev" "audio" "video")))
   (list (specification->package "nss-certs"))
   (list (service gnome-desktop-service-type
		   (inherit config)
		   (gnome gnome-minimal)))
	 (service openssh-service-type)
	   (keyboard-layout keyboard-layout))))
   (bootloader grub-efi-bootloader)
   (target "/boot/efi")
   (keyboard-layout keyboard-layout)))
 (swap-devices (list "/dev/sda2"))
  (cons* (file-system
	  (mount-point "/boot/efi")
	  (device (uuid "0721-45AE" 'fat32))
	  (type "vfat"))
	  (mount-point "/")
	   (uuid "ce05e959-56a7-4520-ad73-556c82861537"
	  (type "ext4"))


Acknowledgement sent to Julien Lepiller <julien@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#42053; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 26 Jun 2020 10:15:01 UTC

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