summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-11-17 02:50:14 -0500
committerIonen Wolkens <ionen@gentoo.org>2022-11-17 02:52:58 -0500
commitd4b3ba03339d6a70aae2cc7cf933f76a07392db9 (patch)
tree22800294c1059ff3d3ca736ce73571ed4ba007ac /app-eselect/eselect-wine
parentmedia-libs/hamlib: fix CLANG warnings (diff)
downloadgentoo-d4b3ba03339d6a70aae2cc7cf933f76a07392db9.tar.gz
gentoo-d4b3ba03339d6a70aae2cc7cf933f76a07392db9.tar.bz2
gentoo-d4b3ba03339d6a70aae2cc7cf933f76a07392db9.zip
app-eselect/eselect-wine: bigger warning for collision-protect
Easy to miss with the wall of text portage gives. Note users typically don't have this enabled, it's primarily Gentoo devs that may use this more aggressive version of protect-owned. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'app-eselect/eselect-wine')
-rw-r--r--app-eselect/eselect-wine/eselect-wine-2.0.0.ebuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/app-eselect/eselect-wine/eselect-wine-2.0.0.ebuild b/app-eselect/eselect-wine/eselect-wine-2.0.0.ebuild
index 50b4a4c56409..5129be25c9b1 100644
--- a/app-eselect/eselect-wine/eselect-wine-2.0.0.ebuild
+++ b/app-eselect/eselect-wine/eselect-wine-2.0.0.ebuild
@@ -16,11 +16,17 @@ SLOT="0"
RDEPEND="app-admin/eselect"
pkg_pretend() {
- # not-owned {bin,include}/wine is removed by pkg_preinst's unset, but
- # portage currently checks collisions and errors out /before/ pkg_preinst
- has_version '<app-eselect/eselect-wine-2' &&
- has collision-protect ${FEATURES} &&
- eerror "!Warning! may need to disable FEATURES=collision-protect to merge ${P}"
+ # /usr/bin/wine and /usr/include/wine are removed by pkg_preinst's unset,
+ # but portage currently checks collisions and errors out /before/ preinst
+ if has_version '<app-eselect/eselect-wine-2' &&
+ has collision-protect ${FEATURES}
+ then
+ eerror
+ eerror "!Warning! will likely need to either disable FEATURES=collision-protect or"
+ eerror "delete ${EROOT}/usr/bin/wine and ${EROOT}/usr/include/wine to merge ${P}"
+ eerror "(these files should be orphaned, so default FEATURES=protect-owned is fine)"
+ eerror
+ fi
}
src_install() {