From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oJYJGmQnNWXAkwAA9RJhRA:P1 (envelope-from ) for ; Sun, 22 Oct 2023 15:45:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oJYJGmQnNWXAkwAA9RJhRA (envelope-from ) for ; Sun, 22 Oct 2023 15:45:08 +0200 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 255B8578BB for ; Sun, 22 Oct 2023 15:45:08 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=j5cYOxT9; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697982308; 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=9LPlbdQcwXf4BiJ+nb2anmf1jXqqT5QKu9P1j7UcGKM=; b=VZmbeNpG4UAmKGcVheRIG1eBLIeokplyCD0RC3Y3dJnr6+5Fjlbd+cLJtYGgK84PbxD+ep tro4hV4gLwK1WiMth6FIAOmeSZLRVEhpbqkpyqJkphiRV02fg/egfMVNpvtIqMS6CJYheG cc80uZqF+5Cuel7/J8qzwTom2g3Mynm16WL9GBnpGf3ouf212Xb+Um6ZGG7YBb9yB0ICOE nXK2RWGZiPf8w9H8msUhcZ65uAPb5Xa6cs+fvsefR0hW4n/PCJhgz47xS1fIAob0z1wgM6 To2gzMPYjtHX4WzbcxkSEKv9I27oGwP1Iz/P8942pnj0dBKpnEeGwHpjXIrdmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697982308; a=rsa-sha256; cv=none; b=Te6UjzNwMq04lBhrKTvcZp8pMct1pkSG2BcUOjkl+njawvaF4VvZfmC7vam8+fpR8GK9oR De1C8I/sBmyt4tY1ej0/v6WnuxfZO67TeHszCdDHsUAMzaLe3Mgv4gZOofqzX3PhNUSE0h SdAaIsFBjBPDPR/0La9o+qV5o3yplzB11OEW9V5LhOfpR6FpSiirRsC6EiL2DfB9bRTfWN CnmEAQqLwuiGNMQvfIyffy2bXUlIiT0Zx/7it0TOPGGI9F4QG0WZfi7etHhSny5d3HoKfs zorejlHuIMOTvFR5KE3n8JNz2dHrngdnTS78ygrNKiSsVGd3mVbLcLxrkGXNVQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=j5cYOxT9; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quYl2-0004Gr-5x; Sun, 22 Oct 2023 09:44:44 -0400 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 1quYl0-0004GG-Mm for guix-patches@gnu.org; Sun, 22 Oct 2023 09:44:42 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quYl0-0003Sl-DK; Sun, 22 Oct 2023 09:44:42 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1quYlL-0000aC-7A; Sun, 22 Oct 2023 09:45:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66525] [PATCH v2 02/10] gnu: python-ipykernel: Remove dependency on (guix build syscalls). Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sun, 22 Oct 2023 13:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66525 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66525@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , jgart Received: via spool by 66525-submit@debbugs.gnu.org id=B66525.16979822792119 (code B ref 66525); Sun, 22 Oct 2023 13:45:03 +0000 Received: (at 66525) by debbugs.gnu.org; 22 Oct 2023 13:44:39 +0000 Received: from localhost ([127.0.0.1]:45695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quYkx-0000Y5-3G for submit@debbugs.gnu.org; Sun, 22 Oct 2023 09:44:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quYko-0000Wo-56 for 66525@debbugs.gnu.org; Sun, 22 Oct 2023 09:44:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quYkG-0003Iy-FM; Sun, 22 Oct 2023 09:43:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=9LPlbdQcwXf4BiJ+nb2anmf1jXqqT5QKu9P1j7UcGKM=; b=j5cYOxT9NQJBS51m45i3 w31aNM532Vxggt/A0KTCnZfnHvgppVpEYitR2XqNAeVGU+0Iy5cFQudTKJ/1ICZyn49E7wlQzAu/g fS0WYb/+lx2hnYcmVYDOgAm58caDGuXesE24vzkAUtkN815SRefpjlKU3D52a/RDaTC5Pt1qV6056 blNRpCe32LLxK39mkmA6SSjWfjNH6hUWGWnEMuANIJxuqXI02uD6oEm37gXWrySPcNGkGZt3a7o8G bGj9q3qNPkGetGOLYOVN/bZdli5+6G0EnQVwue47NP59clb36p9S/d1xNy1cPXUxpN8Oief7pL8Jf cDIs3J8fWYwbPg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Sun, 22 Oct 2023 15:43:26 +0200 Message-ID: <57121aa0458c061c023a104ee5775897167ace8b.1697982039.git.ludo@gnu.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: <87o7gywndy.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -5.82 X-Migadu-Queue-Id: 255B8578BB X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -5.82 X-TUID: HcBRUg+evraN * gnu/packages/python-xyz.scm (python-ipykernel)[arguments]: Remove #:imported-modules. Remove (guix build syscalls) from #:modules. Rewrite ‘check’ phase to reap child processes from the build process. [native-inputs]: Remove TINI. --- gnu/packages/python-xyz.scm | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 29ac11df95..d094c6e451 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -10660,10 +10660,7 @@ (define-public python-ipykernel (build-system pyproject-build-system) (arguments (list - #:imported-modules `(,@%pyproject-build-system-modules - (guix build syscalls)) #:modules '((guix build pyproject-build-system) - (guix build syscalls) (guix build utils) (ice-9 match)) #:phases @@ -10682,20 +10679,19 @@ (define-public python-ipykernel (when tests? (match (primitive-fork) (0 ;child process - (set-child-subreaper!) - ;; XXX: Tini provides proper PID1-like signal handling that - ;; reaps zombie processes, necessary for the - ;; 'test_shutdown_subprocesses' test to pass. - - ;; TODO: Complete https://issues.guix.gnu.org/30948. (setenv "HOME" "/tmp") - (execlp "tini" "--" "pytest" "-vv")) - (pid - (match (waitpid pid) - ((_ . status) - (unless (zero? status) - (error "`pytest' exited with status" - status))))))))) + (execlp "pytest" "pytest" "-vv")) + (pytest-pid + ;; Reap zombie processes, necessary for the + ;; 'test_shutdown_subprocesses' test to pass. + (let loop () + (match (waitpid WAIT_ANY) + ((pid . status) + (if (= pid pytest-pid) + (unless (zero? status) + (error "`pytest' exited with status" + status)) + (loop)))))))))) (add-after 'install 'set-python-file-name (lambda* (#:key inputs #:allow-other-keys) ;; Record the absolute file name of the 'python' executable in @@ -10724,8 +10720,7 @@ (define-public python-ipykernel ;; and causes deprecation warnings. Using the bootstrap variant ;; avoids that. python-pytest-bootstrap - python-pytest-timeout - tini)) + python-pytest-timeout)) (home-page "https://ipython.org") (synopsis "IPython Kernel for Jupyter") (description "This package provides the IPython kernel for Jupyter.") -- 2.41.0