commit:     b683f1f80c7490b6060e944903a4efc22d800c15
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 15 14:53:44 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 14:56:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b683f1f8

app-emulation/wine-vanilla: add guard to avoid overwriting wine64

Only relevant when picking an older commit in live given
it should never exist anymore otherwise.

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

 app-emulation/wine-vanilla/wine-vanilla-9999.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild 
b/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild
index a3201550680a..21d68c9d3d07 100644
--- a/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild
+++ b/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild
@@ -365,7 +365,9 @@ src_install() {
        use abi_x86_64 && emake DESTDIR="${D}" -C ../build64 install # do last
 
        # "wine64" is no longer provided, but a keep symlink for old scripts
-       use abi_x86_64 && dosym wine ${WINE_PREFIX}/bin/wine64
+       # TODO: remove the guard later, only useful for bisecting -9999
+       [[ -e ${ED}${WINE_PREFIX}/bin/wine64 ]] ||
+               use abi_x86_64 && dosym wine ${WINE_PREFIX}/bin/wine64
 
        use perl || rm "${ED}"${WINE_DATADIR}/man/man1/wine{dump,maker}.1 \
                "${ED}"${WINE_PREFIX}/bin/{function_grep.pl,wine{dump,maker}} 
|| die

Reply via email to