From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 8LNzBv9mKWWGSwEAG6o9tA:P1 (envelope-from ) for ; Fri, 13 Oct 2023 17:49:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8LNzBv9mKWWGSwEAG6o9tA (envelope-from ) for ; Fri, 13 Oct 2023 17:49:19 +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 B0971655F6 for ; Fri, 13 Oct 2023 17:49:18 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="exn/Sr3d"; 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=1697212158; 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=oij6i0L6hrxdxWQlkZ1CEWG5HyoXNSx5iCzKSYZGwXw=; b=Gt7UTuZRbSxcHmd84/hlsdHqhFK6zfapABB7AKqegzaaA7tMZcjTOdM63Rb0wHYXsiQR1e jT2yVMQ1ujabmgOFonzDqo40bJwQv3f2K8nYB7hpVBl/FQL0rRSXaaf/nHd1m02HlHz+DG 541DKAdLdd1Bj0INnYszI9qpFP9sjPKgDXGrxT3mzHP5vALshcm5rm9BIAUkmLNk6i2rJb 4t0Uw+xoihmoN5xbOtJN62jrnmv3yt7cqDOsitU2fD0lFZ9TUWiAbBdhZGG2ia5n+Oz0xi SidTfKf7JU6TfqYdAuNHhJlKfzXrV5FaoS6EP8PgJtnc56lbWq9zJ0OowPfOag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697212158; a=rsa-sha256; cv=none; b=cbjSDc4PVzxjTXa7w+o21ZESPU9NfWemGXvMNjVYOCSqp2sL1yGkQPW+M92eJg2HwXq+G4 c9SF7w7Zpp7twW/+hBOT+lvBVruwLyKKeQXZne1gkHlKT+w/5PBmpy70YcDSAgatZt6YSr a3A7Trmopdet2OU9xL2tW3dNAjaCQ1hLv10RdG6F2d9mEE0gMJFgaOdv/p0BCwYQpsPiyx 3eE1k7KauRuITlWSdV0wdK+VViLmhSaA9YIM6Y7Fo0VgN5eP+ZIrEOPR+JxK+xtjPk74ME Hp/m5vwqzMJLL1xMMZpcJ2CCHXxcdS5LkC8DJBOPXcFO0QZmo/HY6i05CuFxeg== 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="exn/Sr3d"; 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 1qrKPb-0008VV-CQ; Fri, 13 Oct 2023 11:49:15 -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 1qrKP8-0008Hu-DB for guix-patches@gnu.org; Fri, 13 Oct 2023 11:48:47 -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 1qrKP4-0005rt-8n for guix-patches@gnu.org; Fri, 13 Oct 2023 11:48:46 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrKPR-0007OF-AR for guix-patches@gnu.org; Fri, 13 Oct 2023 11:49:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66525] [PATCH 7/7] gnu: public-inbox: Remove dependency on (guix build syscalls). Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 13 Oct 2023 15:49:05 +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?= Received: via spool by 66525-submit@debbugs.gnu.org id=B66525.169721212928241 (code B ref 66525); Fri, 13 Oct 2023 15:49:05 +0000 Received: (at 66525) by debbugs.gnu.org; 13 Oct 2023 15:48:49 +0000 Received: from localhost ([127.0.0.1]:47177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrKPA-0007LJ-J0 for submit@debbugs.gnu.org; Fri, 13 Oct 2023 11:48:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrKP5-0007JI-O0 for 66525@debbugs.gnu.org; Fri, 13 Oct 2023 11:48:44 -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 1qrKOd-0005oI-Ci; Fri, 13 Oct 2023 11:48:15 -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=oij6i0L6hrxdxWQlkZ1CEWG5HyoXNSx5iCzKSYZGwXw=; b=exn/Sr3doTPsorlC2eRA +MLUUPF5ONP5EiMd4o2HdhD7Ds/IkydkIcTU/0FMkqCJ1Lr15l/9ksMMrPjmfoEOsHOr29mwd6/7g 2BztVmd2rKmcDBtXY05q8GCqX5Zr3ZWkOQfsQBMwwqaOCjwEtc9MF3Aslk5qNFUrSccodS1zHuWPa i7DFuVwa1wl+TvXzo/YjrP8GloicwBK5EJqvQRFK0b6HxBVzDaQi8q+2xmmRqVj1oNypPQGcKI+4y 076EeXoHEqC52hnBNaMiM8vdfyVp7TZyunABeLI7n1gV/YT+TNhRecmlPtfwCwnZGA3n1f226QrBU Vw7G63Xy+PqXtQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Fri, 13 Oct 2023 17:47:50 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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.88 X-Migadu-Queue-Id: B0971655F6 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -5.88 X-TUID: kz/oH1E7BQT4 * gnu/packages/mail.scm (public-inbox)[arguments]: Remove #:imported-modules. Remove (guix build syscalls) from #:modules. Rewrite ‘check’ phase to reap processes from the build process. [native-inputs]: Remove TINI. --- gnu/packages/mail.scm | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index be458a2d92..fc5cde38ce 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès +;;; Copyright © 2013-2021, 2023 Ludovic Courtès ;;; Copyright © 2014, 2015, 2017, 2020 Mark H Weaver ;;; Copyright © 2014 Ian Denhardt ;;; Copyright © 2014 Sou Bunnbu @@ -4242,10 +4242,7 @@ (define-public public-inbox (file-name (git-file-name name version)))) (build-system perl-build-system) (arguments - `(#:imported-modules (,@%perl-build-system-modules - (guix build syscalls)) - #:modules ((guix build perl-build-system) - (guix build syscalls) + `(#:modules ((guix build perl-build-system) (guix build utils) (ice-9 match)) #:phases @@ -4282,18 +4279,20 @@ (define-public public-inbox (setenv "TMP" "/tmp") (setenv "TMPDIR" "/tmp") - ;; Use tini so that signals are properly handled and - ;; doubly-forked processes get reaped; otherwise, - ;; lei-daemon is kept as a zombie and the testsuite - ;; fails thinking that it didn't quit as it should. - (set-child-subreaper!) - (apply execlp "tini" "--" + (apply execlp "make" "make" "check" test-flags)) - (pid - (match (waitpid pid) - ((_ . status) - (unless (zero? status) - (error "`make check' exited with status" status)))))) + (make-pid + ;; Reap child processes; otherwise, lei-daemon is kept as + ;; a zombie and the testsuite fails thinking that it + ;; didn't quit as it should. + (let loop () + (match (waitpid WAIT_ANY) + ((pid . status) + (if (= pid make-pid) + (unless (zero? status) + (error "`make check' exited with status" + status)) + (loop))))))) (format #t "test suite not run~%")))) (add-after 'install 'wrap-programs (lambda* (#:key inputs outputs #:allow-other-keys) @@ -4313,7 +4312,7 @@ (define-public public-inbox (find-files (string-append out "/bin"))))))))) (native-inputs (list ;; For testing. - lsof openssl tini)) + lsof openssl)) (inputs (append (if (not (target-64bit?)) -- 2.41.0