From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cEx3A+sVhWN/QwAAbAwnHQ (envelope-from ) for ; Mon, 28 Nov 2022 21:11:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KJmHAusVhWPBPgAAG6o9tA (envelope-from ) for ; Mon, 28 Nov 2022 21:11:23 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BE0981510 for ; Mon, 28 Nov 2022 21:11:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozkT2-0006Kz-AU; Mon, 28 Nov 2022 15:11:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozkT0-0006Kr-PK for bug-guix@gnu.org; Mon, 28 Nov 2022 15:11:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ozkT0-00086g-Hj for bug-guix@gnu.org; Mon, 28 Nov 2022 15:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ozkT0-0001wA-5l for bug-guix@gnu.org; Mon, 28 Nov 2022 15:11:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#30948: [PATCH core-updates] guix: Reap finished child processes in build containers. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 28 Nov 2022 20:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30948 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 30948@debbugs.gnu.org, Carlo Zancanaro Received: via spool by 30948-submit@debbugs.gnu.org id=B30948.16696662247430 (code B ref 30948); Mon, 28 Nov 2022 20:11:02 +0000 Received: (at 30948) by debbugs.gnu.org; 28 Nov 2022 20:10:24 +0000 Received: from localhost ([127.0.0.1]:50649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozkSN-0001vm-S4 for submit@debbugs.gnu.org; Mon, 28 Nov 2022 15:10:24 -0500 Received: from mail-qk1-f175.google.com ([209.85.222.175]:45776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozkSM-0001ve-RU for 30948@debbugs.gnu.org; Mon, 28 Nov 2022 15:10:23 -0500 Received: by mail-qk1-f175.google.com with SMTP id v8so8174860qkg.12 for <30948@debbugs.gnu.org>; Mon, 28 Nov 2022 12:10:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=y5zNkC1hTFnPIJcD0O356qdzVgW5S4Q6DnvmkuxIqAs=; b=lVv/4OnXEFn0iJIDwwDn6ItPzj24h5LcBw14MeD/AkyyMb+pMPZ2Q36PpUq0A7t+al 72jC6U7tJPixUw6id00FBJxcQmnSTbjoJ8kyCl4v2h5+7vBzZP7N172aj+qOGQD8towL LB7aOyxo9IYRjW12QISNbY1WJUAPmfaAA9m6x0b3vGYN7Pz5gh4GRiOEz1lx8Lt75zrn DGXBrjaY7pzYCwKxuCE5frQ3E4IzdjhHoKmGdWEzFauSdR5bCsUSkjPAZe1eJj4YQgIx p7sPUjI6lvMbHXyW+m+8CdzI0DyeIzshjLxCgSgmS3GvxVJPQFubVPisBP4jxXqCMTiu 1amQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=y5zNkC1hTFnPIJcD0O356qdzVgW5S4Q6DnvmkuxIqAs=; b=518VyNGdQDYNdafJunNRxBvGShNF9MZA1QdaC8GhXlgkOkUmV4kxE/OClGDvW+n+8w DZlMC2KvvWDzhKSN/4rx2fg/Z0FjDOMHzZs2SHzHHav6halHK3CAo3QVXLd0gQnMa41K n6LynQUGlRxZT7xtyAO7HJ8pepoXxkYhpNt+Z0OGNScX3YLqZ+N3EUc7NYfsBOFKId9u rsn7QJOrwTXrGgcE/T7XFYDEru+rumHVJ9/6g8KlZQscP2ERX/fycHdcFZVkxJJSum7p j1H0h+FqiLIfQZfrz8CyuWfj8dESa/DshV9JLn85HHkfoWl5MfeEYbjRO5BV3oTpP0pN W+Pw== X-Gm-Message-State: ANoB5plLuzGUaUP8t/bW89y30sGZcKbSKRYQhKd5TSG2cHvN3RK8dBVE mGLCeqxSOJypab66GcLUqCwuyE1g2DYpeA== X-Google-Smtp-Source: AA0mqf7zTUXDxMM7mVo8uS9uWp49Mmu+YWZYrBOwR0Lb9C3Noo30HW7WcHf/18bXmfb+h81S1I1mzg== X-Received: by 2002:a05:620a:78d:b0:6ea:39ec:e50f with SMTP id 13-20020a05620a078d00b006ea39ece50fmr37227605qka.571.1669666217143; Mon, 28 Nov 2022 12:10:17 -0800 (PST) Received: from hurd ([2607:fad8:4:3::1004]) by smtp.gmail.com with ESMTPSA id bj12-20020a05620a190c00b006cfc1d827cbsm9099030qkb.9.2022.11.28.12.10.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 12:10:16 -0800 (PST) From: Maxim Cournoyer References: <87muyvulwt.fsf@zancanaro.id.au> <87bmf6ve6u.fsf@gnu.org> <87sh8id1mg.fsf@zancanaro.id.au> <87vadeou54.fsf@gnu.org> <87o9j5x1d4.fsf@zancanaro.id.au> <874lkxoanq.fsf@gnu.org> <87cz9cnvys.fsf_-_@gmail.com> <875yf192en.fsf@gnu.org> <87ilj1w18i.fsf@gmail.com> <87lenvce8r.fsf@gnu.org> Date: Mon, 28 Nov 2022 15:10:15 -0500 In-Reply-To: <87lenvce8r.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 28 Nov 2022 16:04:04 +0100") Message-ID: <87k03esuvs.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669666282; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=y5zNkC1hTFnPIJcD0O356qdzVgW5S4Q6DnvmkuxIqAs=; b=JeZvyccFLXY7+JUSdxL159K1t5Hfl2MdharO5bXaIQp72yQpV+ssfwcuhOGR+8b9o0oe4T yWLjkMgrfYNvXvomi0wqndjRWeT/J243RKDciJovBlwMKiISvuI0nb8/zNZMKeluAdxOeA dzuSY6T6jCdZoUTL3/yrCQg6AZUPp0yHKN7AETVVIHvGjfTrqhMbEbChTQvYp0DTWb1Zfx ckRrPoNtZmBSSgZWX6wF6JjNgGMC8pRjDzWRGyyOowoJBx2NO8RgHrVicJ91LBFF2T/lFd t7i6p7Zu8W1JcfA2hqPeJ3CfoeIkWUT1RpcrZgwDdTY+BvbIhC4pzX7HP7wCBg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669666282; a=rsa-sha256; cv=none; b=B4/xLKSI9RfgHb0ETWB7vTZXSmVujessH4XjSv+JoWBVo3mbKaB/udq40ARJgjY+dAhQ3z shKgL8dsVoUXoCePkv4TdoEebQ+kkRBwXfraY3aTp1RTH245QkQ9iO01yG50EBVoFp8Uun //+YCXCeMofjs0ZijirOGy4ouX1nUP6Cw2Yo+e8z/QH/JS1ohwMJi7Ombf+TihW9drmfLk j1nJrHECtQmXLRwypY4Ppgkz5Wz9Z+sOxFnuMixiTexn1WKPwefY2uCHBzPBsH/nge7u9E /clvnMfVxRjxcNZN7RlY+uGSlNbJHy0S7qj6JYK/r3/yIckVezy73wgtf0MFgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="lVv/4OnX"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.04 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="lVv/4OnX"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: BE0981510 X-Spam-Score: 6.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: XttPTtwoYdBP Hi, Ludovic Court=C3=A8s writes: > Maxim Cournoyer skribis: > >> Ludovic Court=C3=A8s writes: > > [...] > >>> If I write: >>> >>> (gexp->derivation "foo" #~(mkdir #$output)) >>> >>> I can be sure that my derivation depends on nothing but (default-guile). >>> This is important for tests, but also to make sure we can use this >>> primitive everywhere=E2=80=94if it pulled in the Shepherd, I wouldn=E2= =80=99t be able to >>> use to build glibc, because there=E2=80=99d be a cycle. >> >> I was not suggesting to pull in extra dependencies such as Shepherd, but >> to weave the to-be-added signal handling logic at a much lower level. >> One idea could be to arrange so that the correct signal handlers always >> get installed for any Guile code running in the build side (I'm not sure >> how, but perhaps by adjusting the gexp "compiler"?). >> >> The handlers could be defined in (guix build signal-handling) or >> similar. Users wouldn't need to explicitly import the module and >> install its signal handlers, that'd be taken care of automatically, all >> the time. >> >> Does that sound feasible? > > Not like this: the imported-modules derivation for (guix build > signal-handling) would be a dependency in themselves. Can we make it an implicit dependency, since we want it to *always* be used? It'd be useless/annoying boilerplate otherwise. --=20 Thanks, Maxim