diff options
author | Marek Szuba <marecki@gentoo.org> | 2021-07-15 00:30:52 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2021-07-15 00:32:05 +0100 |
commit | c5ff312037a07683efb5513f26759fa3fd9b4fce (patch) | |
tree | aff7daf3faf3ca7542d337ad7e214c4a5fa67d3a /app-misc | |
parent | media-plugins/kodi-pvr-dvbviewer: 7.3.3 version bump (diff) | |
download | gentoo-c5ff312037a07683efb5513f26759fa3fd9b4fce.tar.gz gentoo-c5ff312037a07683efb5513f26759fa3fd9b4fce.tar.bz2 gentoo-c5ff312037a07683efb5513f26759fa3fd9b4fce.zip |
app-misc/mc: warn about test failures if executing them as UID 0
Closes: https://bugs.gentoo.org/759466
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/mc/mc-4.8.26-r3.ebuild | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app-misc/mc/mc-4.8.26-r3.ebuild b/app-misc/mc/mc-4.8.26-r3.ebuild index 617d48716de2..97a15d1bc054 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. # |