From 4469bdbf74cebf43c949f218a202caf0f5b70f99 Mon Sep 17 00:00:00 2001 From: NP-Hardass Date: Sat, 30 Jan 2016 00:33:10 -0500 Subject: app-emulation/wine: Check SHAs for staging compat, bug #572522 Package-Manager: portage-2.2.26 --- app-emulation/wine/wine-9999.ebuild | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'app-emulation') diff --git a/app-emulation/wine/wine-9999.ebuild b/app-emulation/wine/wine-9999.ebuild index 4c1b6f446af0..b44030bba0e6 100644 --- a/app-emulation/wine/wine-9999.ebuild +++ b/app-emulation/wine/wine-9999.ebuild @@ -204,9 +204,21 @@ src_unpack() { if [[ ${PV} == "9999" ]] ; then git-r3_src_unpack if use staging; then + local WINE_COMMIT=${EGIT_VERSION} + EGIT_REPO_URI=${STAGING_EGIT_REPO_URI} unset ${PN}_LIVE_REPO; + unset EGIT_COMMIT; + EGIT_CHECKOUT_DIR=${STAGING_DIR} git-r3_src_unpack + + local STAGING_COMMIT=$("${STAGING_DIR}/patches/patchinstall.sh" --upstream-commit) || die + + if [[ "${WINE_COMMIT}" != "${STAGING_COMMIT}" ]]; then + einfo "The current Staging patchset is not guaranteed to apply on this WINE commit." + einfo "If src_prepare fails, try emerging with the env var EGIT_COMMIT." + einfo "Example: EGIT_COMMIT=${STAGING_COMMIT} emerge -1 wine" + fi fi else unpack ${P}.tar.bz2 -- cgit v1.2.3-65-gdbad