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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 12A2813933E for ; Wed, 14 Jul 2021 23:32:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31E51E0AA0; Wed, 14 Jul 2021 23:32:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 11ADEE0AA0 for ; Wed, 14 Jul 2021 23:32:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7B70B342C0A for ; Wed, 14 Jul 2021 23:32:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E9CB47B2 for ; Wed, 14 Jul 2021 23:32:11 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1626305525.c5ff312037a07683efb5513f26759fa3fd9b4fce.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/mc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/mc/mc-4.8.26-r3.ebuild X-VCS-Directories: app-misc/mc/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: c5ff312037a07683efb5513f26759fa3fd9b4fce X-VCS-Branch: master Date: Wed, 14 Jul 2021 23:32:11 +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: ff2eb3ff-65be-42ac-80b8-7aeafd91cc99 X-Archives-Hash: af325ee1bd466a4cd665a87133095428 commit: c5ff312037a07683efb5513f26759fa3fd9b4fce Author: Marek Szuba gentoo org> AuthorDate: Wed Jul 14 23:30:52 2021 +0000 Commit: Marek Szuba gentoo org> CommitDate: Wed Jul 14 23:32:05 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5ff3120 app-misc/mc: warn about test failures if executing them as UID 0 Closes: https://bugs.gentoo.org/759466 Signed-off-by: Marek Szuba gentoo.org> app-misc/mc/mc-4.8.26-r3.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app-misc/mc/mc-4.8.26-r3.ebuild b/app-misc/mc/mc-4.8.26-r3.ebuild index 617d48716de..97a15d1bc05 100644 --- a/app-misc/mc/mc-4.8.26-r3.ebuild +++ b/app-misc/mc/mc-4.8.26-r3.ebuild @@ -87,6 +87,12 @@ src_configure() { } src_test() { + # Bug #759466 + if ! has userpriv ${FEATURES} && [[ $(id -u) == 0 ]]; then + ewarn "You are emerging ${PN} as root with 'userpriv' disabled." \ + "Expect some test failures, or emerge with 'FEATURES=userpriv'!" + fi + # CK_FORK=no to avoid using fork() in check library # as mc mocks fork() itself: bug #644462. #