From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2C3F7158064 for ; Wed, 8 May 2024 17:15:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4704FE2C01; Wed, 8 May 2024 17:15:26 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C256DE2BFD for ; Wed, 8 May 2024 17:15:25 +0000 (UTC) From: Florian Schmaus To: gentoo-dev@lists.gentoo.org Cc: qa@gentoo.org, Florian Schmaus Subject: [gentoo-dev] [PATCH 0/2] edo.eclass: enhace edob for usage with nosiy commands Date: Wed, 8 May 2024 19:15:03 +0200 Message-ID: <20240508171505.48392-1-flow@gentoo.org> X-Mailer: git-send-email 2.43.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 25e3f6fd-465e-47c4-a698-d030aee05c10 X-Archives-Hash: a32d774e359f71d88288d642afe74f0c The motivation for this change is to allow edob to be used with noisy commands, i.e., commands that produce a lot of output, in cases where the output is in general not of interest. However, if the command fails, the output should be shown and appear in build.log. We do this by simply redirecting the output to a file in $T, and show this file if the command returned a non-zero exit status. We already have a few cases in ::gentoo where such output is simply redirected to /dev/null, hindering post-mortem analysis. Those could be converted to edob with its new behavior. PR at https://github.com/gentoo/gentoo/pull/36117 Florian Schmaus (2): edo.eclass: enhace edob for usage with nosiy commands eftmutil-sys: use edob eclass/edo.eclass | 54 ++++++++++++++++++++++++++++++++---- eclass/texlive-common.eclass | 8 ++++-- 2 files changed, 53 insertions(+), 9 deletions(-) -- 2.43.2