From unknown Fri Jun 20 07:19:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#42053 <42053@debbugs.gnu.org> To: bug#42053 <42053@debbugs.gnu.org> Subject: Status: hidden derivation build with inferiors Reply-To: bug#42053 <42053@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:19:13 +0000 retitle 42053 hidden derivation build with inferiors reassign 42053 guix submitter 42053 Julien Lepiller severity 42053 important thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 25 19:47:39 2020 Received: (at submit) by debbugs.gnu.org; 25 Jun 2020 23:47:39 +0000 Received: from localhost ([127.0.0.1]:41496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jobal-0008Qe-91 for submit@debbugs.gnu.org; Thu, 25 Jun 2020 19:47:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:40448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jobah-0008QT-Rh for submit@debbugs.gnu.org; Thu, 25 Jun 2020 19:47:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jobah-0000xl-JG for bug-guix@gnu.org; Thu, 25 Jun 2020 19:47:35 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:56736) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jobaf-0004t7-1l for bug-guix@gnu.org; Thu, 25 Jun 2020 19:47:35 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id bb1621c0 for ; Thu, 25 Jun 2020 23:47:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:mime-version:content-type; s=dkim; bh=JCI w7jK9K9FzcOCn6zRAeXUqdDea8zHuOSepDvULUIs=; b=WSj4GiGhQqeryN4hYco FGtS6HkHMFPiPjNQNcO2zJ0weqewxHSvQfbiyXlDo83EgFQKDmEJefoHHZORql2f v5nezt31gXmt2E0wb+0ip6DQ0tGWvQTUj+hSUd+kVR6Rr2bwc8wFrnPKv4TWedQu wM9puPzVgvOJMFxsQK6mS8YRPuFckd0Ew/885LNlDRNCYFUEw9rNdzReCzz12pL3 2UUDXAIUoaj1SaN6pBMcqYPTh6q3bp5uzCMY49+KJjhCPoHacdO4uxwKvs7xectk vfFJslkXBdmRR5AGdiWtRs40XlCe/9+JIVBRGMOxO8ahT2z+qHp/H+Xim4WAFHTk h1A== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 4f314929 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 25 Jun 2020 23:47:25 +0000 (UTC) Date: Fri, 26 Jun 2020 01:47:12 +0200 From: Julien Lepiller To: bug-guix@gnu.org Subject: hidden derivation build with inferiors Message-ID: <20200626014712.5620ac06@tachikoma.lepiller.eu> 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; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-detected-operating-system: by eggs.gnu.org: 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, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --MP_/f4vWrYXsFRYouiRD0trNdQ_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, 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 name. 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. --MP_/f4vWrYXsFRYouiRD0trNdQ_ 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 "https://git.savannah.gnu.org/git/guix.git") (commit "4f33bf5709a77a98f3d0330e45753d54675239ff")))) (define linux-libre-4.19-inferior (first (lookup-inferior-packages (inferior-for-channels kernel-inferior-channel) "linux-libre" "4.19.129"))) (define-public gnome-minimal (package (inherit gnome) (name "gnome-minimal") (propagated-inputs (remove (match-lambda ((name _) (member name '("baobab" "cheese" "eog" "epiphany" "evince" "file-roller" "gedit" "gnome-boxes" "gnome-calculator" "gnome-calendar" "gnome-characters" "gnome-clocks" "gnome-contacts" "gnome-disk-utility" "gnome-font-viewer" "gnome-maps" "gnome-weather" "simple-scan" "totem" "gnome-default-applications")))) (package-propagated-inputs gnome))))) (operating-system (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") (supplementary-groups '("wheel" "netdev" "audio" "video"))) %base-user-accounts)) (packages (append (list (specification->package "nss-certs")) %base-packages)) (services (append (list (service gnome-desktop-service-type (gnome-desktop-configuration (inherit config) (gnome gnome-minimal))) (service openssh-service-type) (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout)))) %desktop-services)) (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) (target "/boot/efi") (keyboard-layout keyboard-layout))) (swap-devices (list "/dev/sda2")) (file-systems (cons* (file-system (mount-point "/boot/efi") (device (uuid "0721-45AE" 'fat32)) (type "vfat")) (file-system (mount-point "/") (device (uuid "ce05e959-56a7-4520-ad73-556c82861537" 'ext4)) (type "ext4")) %base-file-systems))) --MP_/f4vWrYXsFRYouiRD0trNdQ_-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 26 06:13:29 2020 Received: (at control) by debbugs.gnu.org; 26 Jun 2020 10:13:30 +0000 Received: from localhost ([127.0.0.1]:41909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jolMP-0000xm-I1 for submit@debbugs.gnu.org; Fri, 26 Jun 2020 06:13:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jolMK-0000xS-JB for control@debbugs.gnu.org; Fri, 26 Jun 2020 06:13:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58370) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jolMF-0006q6-DC for control@debbugs.gnu.org; Fri, 26 Jun 2020 06:13:19 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34690 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jolME-0005vq-Qw for control@debbugs.gnu.org; Fri, 26 Jun 2020 06:13:19 -0400 Date: Fri, 26 Jun 2020 12:13:16 +0200 Message-Id: <87wo3unnib.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #42053 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) severity 42053 important quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 26 06:17:39 2020 Received: (at 42053) by debbugs.gnu.org; 26 Jun 2020 10:17:39 +0000 Received: from localhost ([127.0.0.1]:41913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jolQR-00039b-4i for submit@debbugs.gnu.org; Fri, 26 Jun 2020 06:17:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jolQP-00034r-0W for 42053@debbugs.gnu.org; Fri, 26 Jun 2020 06:17:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58645) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jolQI-0007et-Io; Fri, 26 Jun 2020 06:17:30 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34696 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jolQH-0006EQ-N3; Fri, 26 Jun 2020 06:17:30 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Julien Lepiller Subject: Re: bug#42053: hidden derivation build with inferiors References: <20200626014712.5620ac06@tachikoma.lepiller.eu> Date: Fri, 26 Jun 2020 12:17:28 +0200 In-Reply-To: <20200626014712.5620ac06@tachikoma.lepiller.eu> (Julien Lepiller's message of "Fri, 26 Jun 2020 01:47:12 +0200") Message-ID: <87mu4qnnbb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42053 Cc: 42053@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Julien Lepiller skribis: > 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. Aaah right. What happens here is that grafts lead the inferior to start building the kernel (this is expected). However, =E2=80=98proxy=E2=80=99 i= n (guix inferior) doesn=E2=80=99t forward build output to =E2=80=98current-build-ou= tput-port=E2=80=99. That=E2=80=99s why there=E2=80=99s no message saying what=E2=80=99s being b= uilt, no spinner, etc. I=E2=80=99ll see what can be done. The problem has always been there but it was perhaps less visible before 710854304b1ab29332edcb76f3de532e0724c197, at least when substitutes were available, because then the inferior wouldn=E2=80=99t start building things. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 26 06:20:14 2020 Received: (at 42053) by debbugs.gnu.org; 26 Jun 2020 10:20:14 +0000 Received: from localhost ([127.0.0.1]:41917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jolSw-0003HV-Gk for submit@debbugs.gnu.org; Fri, 26 Jun 2020 06:20:14 -0400 Received: from lepiller.eu ([89.234.186.109]:41292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jolSs-0003HJ-AE for 42053@debbugs.gnu.org; Fri, 26 Jun 2020 06:20:13 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 29c6bb13; Fri, 26 Jun 2020 10:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:cc:from:message-id; s= dkim; bh=+mbL+tuhjHmd3yZ0wGEz+EANr5ZtWaHXcz4xrTsv1Z0=; b=UldDzTY ZWp/u334UtobBAeIoorjIn0fwQ96fsrBfOoJuq4qsp5ElMYlGOSR3yS1cDSXpvdL kZ+uzJ7ku6+pHabaK8q0XPiK/fYfwT0yjk64P/cdwgkDlKIOmAgilwylog9Hdjzl rj8zre6g6JoZo4KA8UY+vkx/hbuCTmfBZ3j9AH8yelnN2N0KWCsCPmkdQHzKPFc/ DCO+CkPGEV7TokRaHIDatkSqparCqFcmYd3UMxqhqAzdm8JmFVf+c21DxqOWK+oM 7oY8dE5hX9VykSyzVwxlFAPk6Bxs1OKPdiGFDEiBReluKx/ibV2dYlE7a/V7lMiZ kGTp1K87JrFMbiA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 4d085e28 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 26 Jun 2020 10:20:07 +0000 (UTC) Date: Fri, 26 Jun 2020 06:19:56 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <87mu4qnnbb.fsf@gnu.org> References: <20200626014712.5620ac06@tachikoma.lepiller.eu> <87mu4qnnbb.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: bug#42053: hidden derivation build with inferiors To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= From: Julien Lepiller Message-ID: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42053 Cc: 42053@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Le 26 juin 2020 06:17:28 GMT-04:00, "Ludovic Court=C3=A8s" = a =C3=A9crit : >Hi, > >Julien Lepiller skribis: > >> someone (kernel-help) on IRC today was having issues using an >inferior >> kernel with their os configuration and reported that guix was >> "hanging"=2E It turns out that guix was actually building the kernel in >> the background, but did not report anything to the user=2E kernel-help >> was kind enough to share their config, and I can confirm that guix is >> building the kernel, but doesn't tell anything=2E > >Aaah right=2E What happens here is that grafts lead the inferior to >start >building the kernel (this is expected)=2E However, =E2=80=98proxy=E2=80= =99 in (guix >inferior) doesn=E2=80=99t forward build output to =E2=80=98current-build-= output-port=E2=80=99=2E >That=E2=80=99s why there=E2=80=99s no message saying what=E2=80=99s being= built, no spinner, >etc=2E > >I=E2=80=99ll see what can be done=2E > >The problem has always been there but it was perhaps less visible >before >710854304b1ab29332edcb76f3de532e0724c197, at least when substitutes >were >available, because then the inferior wouldn=E2=80=99t start building thin= gs=2E > >Ludo=E2=80=99=2E Thanks for the answer=2E The build also starts with -n, which I didn't exp= ect either=2E I suppose this is also because the inferior doesn't report an= ything? From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 26 08:08:25 2020 Received: (at 42053) by debbugs.gnu.org; 26 Jun 2020 12:08:25 +0000 Received: from localhost ([127.0.0.1]:41983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jon9c-00088U-Rz for submit@debbugs.gnu.org; Fri, 26 Jun 2020 08:08:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jon9U-00088C-Uf for 42053@debbugs.gnu.org; Fri, 26 Jun 2020 08:08:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37869) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jon9P-0001fH-Kp; Fri, 26 Jun 2020 08:08:11 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34804 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jon9G-0002xI-I5; Fri, 26 Jun 2020 08:08:11 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Julien Lepiller Subject: Re: bug#42053: hidden derivation build with inferiors References: <20200626014712.5620ac06@tachikoma.lepiller.eu> <87mu4qnnbb.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 Messidor an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 26 Jun 2020 14:08:00 +0200 In-Reply-To: (Julien Lepiller's message of "Fri, 26 Jun 2020 06:19:56 -0400") Message-ID: <87bll6ni73.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42053 Cc: 42053@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Julien Lepiller skribis: > Le 26 juin 2020 06:17:28 GMT-04:00, "Ludovic Court=C3=A8s" = a =C3=A9crit : [...] >>The problem has always been there but it was perhaps less visible >>before >>710854304b1ab29332edcb76f3de532e0724c197, at least when substitutes >>were >>available, because then the inferior wouldn=E2=80=99t start building thin= gs. >> >>Ludo=E2=80=99. > > Thanks for the answer. The build also starts with -n, which I didn't expe= ct either. I suppose this is also because the inferior doesn't report anyth= ing? Yes, that and the fact that =E2=80=98-n=E2=80=99 no longer implies =E2=80= =98--no-grafts=E2=80=99. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 28 16:43:21 2020 Received: (at 42053) by debbugs.gnu.org; 28 Jun 2020 20:43:21 +0000 Received: from localhost ([127.0.0.1]:47069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpe93-0001b1-Kb for submit@debbugs.gnu.org; Sun, 28 Jun 2020 16:43:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpe92-0001am-Kl for 42053@debbugs.gnu.org; Sun, 28 Jun 2020 16:43:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47510) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpe8x-00078F-Ak; Sun, 28 Jun 2020 16:43:15 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42204 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jpe8w-000312-SQ; Sun, 28 Jun 2020 16:43:15 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Julien Lepiller Subject: Re: bug#42053: hidden derivation build with inferiors References: <20200626014712.5620ac06@tachikoma.lepiller.eu> <87mu4qnnbb.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 Messidor an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 28 Jun 2020 22:43:12 +0200 In-Reply-To: <87mu4qnnbb.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 26 Jun 2020 12:17:28 +0200") Message-ID: <87pn9igbvj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 42053 Cc: 42053@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ludovic Court=C3=A8s skribis: > Julien Lepiller skribis: > >> 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. > > Aaah right. What happens here is that grafts lead the inferior to start > building the kernel (this is expected). However, =E2=80=98proxy=E2=80=99= in (guix > inferior) doesn=E2=80=99t forward build output to =E2=80=98current-build-= output-port=E2=80=99. > That=E2=80=99s why there=E2=80=99s no message saying what=E2=80=99s being= built, no spinner, etc. > > I=E2=80=99ll see what can be done. Not surprisingly, to fix it, we need to implement a proxy that interprets all the messages exchanged so that it can write to =E2=80=98current-build-output-port=E2=80=99 when appropriate (that=E2=80=99= s the usual all-or-nothing problem with proxies.) For the daemon rewrite in Scheme, we=E2=80=99ll need to have server stubs anyway, so perhaps that=E2=80=99s an opportunity to fiddle with that. Cale= b? Ludo=E2=80=99.