From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id 3FD821582EF for ; Mon, 24 Feb 2025 09:55:40 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 21CAF343231 for ; Mon, 24 Feb 2025 09:55:40 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 5AF7F110474; Mon, 24 Feb 2025 09:54:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id AFE311102F2 for ; Mon, 24 Feb 2025 09:54:56 +0000 (UTC) Received: from neo-pc.sch (unknown [IPv6:2001:4090:a245:8311:34fb:50ff:feac:591b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: flow@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C8439343193; Mon, 24 Feb 2025 09:54:55 +0000 (UTC) From: Florian Schmaus To: gentoo-dev@lists.gentoo.org Cc: tex@gentoo.org, Florian Schmaus Subject: [gentoo-dev] [PATCH 1/2] latex-package.eclass: use edo Date: Mon, 24 Feb 2025 10:54:42 +0100 Message-ID: <20250224095443.1352673-1-flow@gentoo.org> X-Mailer: git-send-email 2.45.3 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: 9b537307-d50c-4d6f-92bd-bd09637f0c84 X-Archives-Hash: a5766ed2513b401774679c148ecbeda7 Signed-off-by: Florian Schmaus --- eclass/latex-package.eclass | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass index dfef7fc2836f..f23897d4315c 100644 --- a/eclass/latex-package.eclass +++ b/eclass/latex-package.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: latex-package.eclass @@ -60,6 +60,8 @@ esac if [[ -z ${_LATEX_PACKAGE_ECLASS} ]]; then _LATEX_PACKAGE_ECLASS=1 +inherit edo + RDEPEND="virtual/latex-base" BDEPEND="${RDEPEND} >=sys-apps/texinfo-4.2-r5" @@ -145,11 +147,11 @@ latex-package_src_doinstall() { "${i}" ) # some macros need compiler called twice, do it here. - if "${mypdflatex[@]}"; then - "${mypdflatex[@]}" + if nonfatal edo "${mypdflatex[@]}"; then + edo "${mypdflatex[@]}" else einfo "pdflatex failed, trying texi2dvi" - texi2dvi -q -c --language=latex "${i}" || die + edo texi2dvi -q -c --language=latex "${i}" fi done < <(find -maxdepth 1 -type f -name "*.${1}" -print0) fi -- 2.45.3