Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-wine/
Date: Thu, 29 Dec 2022 20:29:39
Message-Id: 1672345733.ac00dfecda10fa71c1181703173c0a8e9eda3a86.ionen@gentoo
1 commit: ac00dfecda10fa71c1181703173c0a8e9eda3a86
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 19 07:49:06 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 20:28:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac00dfec
7
8 app-eselect/eselect-wine: cleanup collision messages
9
10 The new app-alternatives/* cause similar issues and eselect-wine isn't
11 unusual enough to need this special handling, portage-3.0.41 is also
12 now stable and gives nicer messages.
13
14 Majority of people will have migrated by now too.
15
16 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
17
18 app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild | 18 +-----------------
19 1 file changed, 1 insertion(+), 17 deletions(-)
20
21 diff --git a/app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild b/app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild
22 index 87e5f10d2eaf..953f7e1c910d 100644
23 --- a/app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild
24 +++ b/app-eselect/eselect-wine/eselect-wine-2.0.2.ebuild
25 @@ -17,20 +17,6 @@ RDEPEND="
26 app-admin/eselect
27 xdg? ( x11-misc/xdg-utils )"
28
29 -pkg_pretend() {
30 - # /usr/bin/wine and /usr/include/wine are removed by pkg_preinst's unset,
31 - # but portage currently checks collisions and errors out /before/ preinst
32 - if has_version '<app-eselect/eselect-wine-2' &&
33 - has collision-protect ${FEATURES}
34 - then
35 - eerror
36 - eerror "!Warning! will likely need to either disable FEATURES=collision-protect or"
37 - eerror "delete ${EROOT}/usr/bin/wine and ${EROOT}/usr/include/wine to merge ${P}"
38 - eerror "(these files should be orphaned, so default FEATURES=protect-owned is fine)"
39 - eerror
40 - fi
41 -}
42 -
43 src_install() {
44 insinto /usr/share/eselect/modules
45 doins wine.eselect
46 @@ -83,10 +69,8 @@ pkg_postinst() {
47 if [[ ! ${REPLACING_VERSIONS##* } ]] ||
48 ver_test ${REPLACING_VERSIONS##* } -lt 2; then
49 elog
50 - if [[ ${REPLACING_VERSIONS} ]]; then
51 + [[ ${REPLACING_VERSIONS} ]] &&
52 elog "${PN} changed a bit, suggest reviewing 'eselect wine help' (and list)."
53 - elog "Note: if seen bin/wine or include/wine merge collisions, they are harmless."
54 - fi
55 elog "Please run '. ${EROOT}/etc/profile' to update PATH in current shells."
56 fi
57 }