From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4C8EB158020 for ; Wed, 23 Nov 2022 20:39:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8B052E09FE; Wed, 23 Nov 2022 20:39:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 654FAE09FE for ; Wed, 23 Nov 2022 20:39:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 92507341019 for ; Wed, 23 Nov 2022 20:39:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9956D761 for ; Wed, 23 Nov 2022 20:39:10 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1669235901.92a0b3f13f11b517cdbc6c689a8c5c29cab79cb8.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/wine-staging/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/wine-staging/wine-staging-7.19.ebuild app-emulation/wine-staging/wine-staging-7.20.ebuild app-emulation/wine-staging/wine-staging-7.21.ebuild app-emulation/wine-staging/wine-staging-9999.ebuild X-VCS-Directories: app-emulation/wine-staging/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 92a0b3f13f11b517cdbc6c689a8c5c29cab79cb8 X-VCS-Branch: master Date: Wed, 23 Nov 2022 20:39:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 98406637-d4cc-4639-8816-ce9d6c9bace2 X-Archives-Hash: 5a648b531090e7c293b2f3c8c59ed78c commit: 92a0b3f13f11b517cdbc6c689a8c5c29cab79cb8 Author: Ionen Wolkens gentoo org> AuthorDate: Wed Nov 23 17:10:46 2022 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Wed Nov 23 20:38:21 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92a0b3f1 app-emulation/wine-staging: migrate to eselect-wine-2 While >=eselect-wine-2 does not need ebuild modifications to work thanks to compat code, downgrading it does not work nicely given Wine slots won't be "registered" anymore (requires doing it manually, or re-emerging wine). So cleanup now and force IDEPEND on newer to help prevent mishaps. The replace check, nonfatal, registering, etc... is no longer necessary. prerm -> postrm is intended, prerm still works but relies on hacks to do so and should be avoided. Signed-off-by: Ionen Wolkens gentoo.org> app-emulation/wine-staging/wine-staging-7.19.ebuild | 19 ++++--------------- app-emulation/wine-staging/wine-staging-7.20.ebuild | 19 ++++--------------- app-emulation/wine-staging/wine-staging-7.21.ebuild | 19 ++++--------------- app-emulation/wine-staging/wine-staging-9999.ebuild | 19 ++++--------------- 4 files changed, 16 insertions(+), 60 deletions(-) diff --git a/app-emulation/wine-staging/wine-staging-7.19.ebuild b/app-emulation/wine-staging/wine-staging-7.19.ebuild index 8f5c2fb8b316..1222d038cbd9 100644 --- a/app-emulation/wine-staging/wine-staging-7.19.ebuild +++ b/app-emulation/wine-staging/wine-staging-7.19.ebuild @@ -120,7 +120,7 @@ BDEPEND=" virtual/pkgconfig mingw? ( !crossdev-mingw? ( dev-util/mingw64-toolchain[${MULTILIB_USEDEP}] ) ) nls? ( sys-devel/gettext )" -IDEPEND="app-eselect/eselect-wine" +IDEPEND=">=app-eselect/eselect-wine-2" QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext @@ -334,21 +334,10 @@ src_install() { dodoc ANNOUNCE AUTHORS README* documentation/README* } -wine-eselect() { - ebegin "${1^}ing ${P} using eselect-wine" - eselect wine ${1} ${P} && - eselect wine ${1} --${PN#wine-} ${P} && - eselect wine update --if-unset && - eselect wine update --${PN#wine-} --if-unset - eend ${?} || die -n "eselect failed, may need to manually handle ${P}" -} - pkg_postinst() { - wine-eselect register + eselect wine update --if-unset || die } -pkg_prerm() { - if [[ ${REPLACED_BY_VERSION%-r*} != ${PV} ]]; then #881035 - nonfatal wine-eselect deregister - fi +pkg_postrm() { + eselect wine update --if-unset || die } diff --git a/app-emulation/wine-staging/wine-staging-7.20.ebuild b/app-emulation/wine-staging/wine-staging-7.20.ebuild index 9e74efd3fe3a..641d22eefd42 100644 --- a/app-emulation/wine-staging/wine-staging-7.20.ebuild +++ b/app-emulation/wine-staging/wine-staging-7.20.ebuild @@ -120,7 +120,7 @@ BDEPEND=" virtual/pkgconfig mingw? ( !crossdev-mingw? ( dev-util/mingw64-toolchain[${MULTILIB_USEDEP}] ) ) nls? ( sys-devel/gettext )" -IDEPEND="app-eselect/eselect-wine" +IDEPEND=">=app-eselect/eselect-wine-2" QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext @@ -334,21 +334,10 @@ src_install() { dodoc ANNOUNCE AUTHORS README* documentation/README* } -wine-eselect() { - ebegin "${1^}ing ${P} using eselect-wine" - eselect wine ${1} ${P} && - eselect wine ${1} --${PN#wine-} ${P} && - eselect wine update --if-unset && - eselect wine update --${PN#wine-} --if-unset - eend ${?} || die -n "eselect failed, may need to manually handle ${P}" -} - pkg_postinst() { - wine-eselect register + eselect wine update --if-unset || die } -pkg_prerm() { - if [[ ${REPLACED_BY_VERSION%-r*} != ${PV} ]]; then #881035 - nonfatal wine-eselect deregister - fi +pkg_postrm() { + eselect wine update --if-unset || die } diff --git a/app-emulation/wine-staging/wine-staging-7.21.ebuild b/app-emulation/wine-staging/wine-staging-7.21.ebuild index 8a8cd11bbbce..2380da7317d4 100644 --- a/app-emulation/wine-staging/wine-staging-7.21.ebuild +++ b/app-emulation/wine-staging/wine-staging-7.21.ebuild @@ -121,7 +121,7 @@ BDEPEND=" >=dev-util/mingw64-toolchain-10.0.0_p1-r2[${MULTILIB_USEDEP}] ) ) nls? ( sys-devel/gettext )" -IDEPEND="app-eselect/eselect-wine" +IDEPEND=">=app-eselect/eselect-wine-2" QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext @@ -340,21 +340,10 @@ src_install() { dodoc ANNOUNCE AUTHORS README* documentation/README* } -wine-eselect() { - ebegin "${1^}ing ${P} using eselect-wine" - eselect wine ${1} ${P} && - eselect wine ${1} --${PN#wine-} ${P} && - eselect wine update --if-unset && - eselect wine update --${PN#wine-} --if-unset - eend ${?} || die -n "eselect failed, may need to manually handle ${P}" -} - pkg_postinst() { - wine-eselect register + eselect wine update --if-unset || die } -pkg_prerm() { - if [[ ${REPLACED_BY_VERSION%-r*} != ${PV} ]]; then #881035 - nonfatal wine-eselect deregister - fi +pkg_postrm() { + 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 365abdfc568e..203711cfc786 100644 --- a/app-emulation/wine-staging/wine-staging-9999.ebuild +++ b/app-emulation/wine-staging/wine-staging-9999.ebuild @@ -119,7 +119,7 @@ BDEPEND=" >=dev-util/mingw64-toolchain-10.0.0_p1-r2[${MULTILIB_USEDEP}] ) ) nls? ( sys-devel/gettext )" -IDEPEND="app-eselect/eselect-wine" +IDEPEND=">=app-eselect/eselect-wine-2" QA_TEXTRELS="usr/lib/*/wine/i386-unix/*.so" # uses -fno-PIC -Wl,-z,notext @@ -338,21 +338,10 @@ src_install() { dodoc ANNOUNCE AUTHORS README* documentation/README* } -wine-eselect() { - ebegin "${1^}ing ${P} using eselect-wine" - eselect wine ${1} ${P} && - eselect wine ${1} --${PN#wine-} ${P} && - eselect wine update --if-unset && - eselect wine update --${PN#wine-} --if-unset - eend ${?} || die -n "eselect failed, may need to manually handle ${P}" -} - pkg_postinst() { - wine-eselect register + eselect wine update --if-unset || die } -pkg_prerm() { - if [[ ${REPLACED_BY_VERSION%-r*} != ${PV} ]]; then #881035 - nonfatal wine-eselect deregister - fi +pkg_postrm() { + eselect wine update --if-unset || die }