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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B2DE21581F0 for ; Fri, 13 Dec 2024 10:02:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA061E07E6; Fri, 13 Dec 2024 10:02:54 +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 pigeon.gentoo.org (Postfix) with ESMTPS id 8DF56E07E6 for ; Fri, 13 Dec 2024 10:02:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 87A4B33BE00 for ; Fri, 13 Dec 2024 10:02:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E07C2161D for ; Fri, 13 Dec 2024 10:02:51 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1734084153.589efbb6dd81a44451e2ec6c8e1b52991d29b9d7.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/texlive-module.eclass X-VCS-Directories: eclass/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 589efbb6dd81a44451e2ec6c8e1b52991d29b9d7 X-VCS-Branch: master Date: Fri, 13 Dec 2024 10:02:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 057c1d0b-6611-4c37-a28e-51c4e10ec8bc X-Archives-Hash: a0c7aa78caa0de30bd63a21c7f055de3 commit: 589efbb6dd81a44451e2ec6c8e1b52991d29b9d7 Author: Florian Schmaus gentoo org> AuthorDate: Fri Dec 13 09:59:08 2024 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Fri Dec 13 10:02:33 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=589efbb6 texlive-module.eclass: change _sgrep to _tl_sgrep Bash functions are always global, hence put the "local" function under a proper '_tl' namespace. Thanks to ulm for pointing this out. Signed-off-by: Florian Schmaus gentoo.org> eclass/texlive-module.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass index ebd65e3dd0d8..15dcdea5df20 100644 --- a/eclass/texlive-module.eclass +++ b/eclass/texlive-module.eclass @@ -539,10 +539,10 @@ texlive-module_src_install() { local status # "success-status aware grep", returning exit status 0 instead of 1. - _sgrep() { grep "$@"; return "$(( $? <= 1 ? 0 : $? ))"; } + _tl_sgrep() { grep "$@"; return "$(( $? <= 1 ? 0 : $? ))"; } ebegin "Installing man pages" find texmf-dist/doc/man -type f -name '*.[0-9n]' -print | - _sgrep -v "${grep_expressions[@]}" | + _tl_sgrep -v "${grep_expressions[@]}" | xargs -d '\n' --no-run-if-empty nonfatal doman status=$(pipestatus -v) eend $? || die "error installing man pages (PIPESTATUS: ${status})"