commit:     aac26b5d3bd519a3d12610ae13f6e90072cbbb2e
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 10 12:43:02 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Aug 10 12:43:05 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aac26b5d

app-emulation/wine-staging: add postinst ewarn to advertise wow64

Didn't want to add this a before given some profiles do not even
leave a choice, but now it feels a build without 32bit is just a
disservice.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 app-emulation/wine-staging/wine-staging-8.13.ebuild | 7 +++++++
 app-emulation/wine-staging/wine-staging-9999.ebuild | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/app-emulation/wine-staging/wine-staging-8.13.ebuild 
b/app-emulation/wine-staging/wine-staging-8.13.ebuild
index 6edbd663cb04..3a7cda74ca11 100644
--- a/app-emulation/wine-staging/wine-staging-8.13.ebuild
+++ b/app-emulation/wine-staging/wine-staging-8.13.ebuild
@@ -410,6 +410,13 @@ src_install() {
 }
 
 pkg_postinst() {
+       if use !abi_x86_32 && use !wow64; then
+               ewarn "32bit support is disabled. While 64bit applications 
themselves will"
+               ewarn "work, be warned that it is not unusual that installers 
or other helpers"
+               ewarn "will attempt to use 32bit and fail. If do not want full 
USE=abi_x86_32,"
+               ewarn "note that the experimental USE=wow64 can allow 32bit 
without multilib."
+       fi
+
        eselect wine update --if-unset || die
 }
 

diff --git a/app-emulation/wine-staging/wine-staging-9999.ebuild 
b/app-emulation/wine-staging/wine-staging-9999.ebuild
index 6edbd663cb04..3a7cda74ca11 100644
--- a/app-emulation/wine-staging/wine-staging-9999.ebuild
+++ b/app-emulation/wine-staging/wine-staging-9999.ebuild
@@ -410,6 +410,13 @@ src_install() {
 }
 
 pkg_postinst() {
+       if use !abi_x86_32 && use !wow64; then
+               ewarn "32bit support is disabled. While 64bit applications 
themselves will"
+               ewarn "work, be warned that it is not unusual that installers 
or other helpers"
+               ewarn "will attempt to use 32bit and fail. If do not want full 
USE=abi_x86_32,"
+               ewarn "note that the experimental USE=wow64 can allow 32bit 
without multilib."
+       fi
+
        eselect wine update --if-unset || die
 }
 

Reply via email to