app-emulation/xen: obsolete epatch if EAPI=6
authorYixun Lan <dlan@gentoo.org>
Tue, 5 Dec 2017 02:14:11 +0000 (10:14 +0800)
committerYixun Lan <dlan@gentoo.org>
Tue, 5 Dec 2017 02:24:30 +0000 (10:24 +0800)
Package-Manager: Portage-2.3.16, Repoman-2.3.6

app-emulation/xen/xen-4.8.2-r3.ebuild
app-emulation/xen/xen-4.9.1.ebuild

index 947c50c92242648d53cf49a47f3a2ce649ba1d8d..d011e92de0cdc3c4c6022e22fe2173cceb81cb7d 100644 (file)
@@ -80,12 +80,7 @@ pkg_setup() {
 
 src_prepare() {
        # Upstream's patchset
-       if [[ -n ${UPSTREAM_VER} ]]; then
-               EPATCH_SUFFIX="patch" \
-               EPATCH_FORCE="yes" \
-               EPATCH_OPTS="-p1" \
-                       epatch "${WORKDIR}"/patches-upstream
-       fi
+       [[ -n ${UPSTREAM_VER} ]] && eapply "${WORKDIR}"/patches-upstream
 
        # Security patchset
        if [[ -n ${SECURITY_VER} ]]; then
@@ -100,18 +95,14 @@ src_prepare() {
 
                local i
                for i in ${XEN_SECURITY_MAIN}; do
-                       epatch "${WORKDIR}"/patches-security/xen/$i
+                       eapply "${WORKDIR}"/patches-security/xen/$i
                done
        fi
 
        # Gentoo's patchset
-       if [[ -n ${GENTOO_VER} ]]; then
-               EPATCH_SUFFIX="patch" \
-               EPATCH_FORCE="yes" \
-                       epatch "${WORKDIR}"/patches-gentoo
-       fi
+       [[ -n ${GENTOO_VER} ]] && eapply "${WORKDIR}"/patches-gentoo
 
-       epatch "${FILESDIR}"/${PN}-4.6-efi.patch
+       eapply "${FILESDIR}"/${PN}-4.6-efi.patch
 
        # Drop .config
        sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"
index b9ad6439bc4ae143357486869b833d292b573a3a..cc0aedeffbcfbc4eaa154c62723f980ac18e8aaf 100644 (file)
@@ -79,12 +79,7 @@ pkg_setup() {
 
 src_prepare() {
        # Upstream's patchset
-       if [[ -n ${UPSTREAM_VER} ]]; then
-               EPATCH_SUFFIX="patch" \
-               EPATCH_FORCE="yes" \
-               EPATCH_OPTS="-p1" \
-                       epatch "${WORKDIR}"/patches-upstream
-       fi
+       [[ -n ${UPSTREAM_VER} ]] && eapply "${WORKDIR}"/patches-upstream
 
        # Security patchset
        if [[ -n ${SECURITY_VER} ]]; then
@@ -92,25 +87,18 @@ src_prepare() {
                # apply main xen patches
                # Two parallel systems, both work side by side
                # Over time they may concdense into one. This will suffice for now
-               EPATCH_SUFFIX="patch"
-               EPATCH_FORCE="yes"
-
                source "${WORKDIR}"/patches-security/${PV}.conf
 
                local i
                for i in ${XEN_SECURITY_MAIN}; do
-                       epatch "${WORKDIR}"/patches-security/xen/$i
+                       eapply "${WORKDIR}"/patches-security/xen/$i
                done
        fi
 
        # Gentoo's patchset
-       if [[ -n ${GENTOO_VER} ]]; then
-               EPATCH_SUFFIX="patch" \
-               EPATCH_FORCE="yes" \
-                       epatch "${WORKDIR}"/patches-gentoo
-       fi
+       [[ -n ${GENTOO_VER} ]] && eapply "${WORKDIR}"/patches-gentoo
 
-       epatch "${FILESDIR}"/${PN}-4.6-efi.patch
+       eapply "${FILESDIR}"/${PN}-4.6-efi.patch
 
        # Drop .config
        sed -e '/-include $(XEN_ROOT)\/.config/d' -i Config.mk || die "Couldn't drop"