kernel-2.eclass:
authorMike Pagano <mpagano@gentoo.org>
Mon, 18 Jun 2018 18:54:29 +0000 (14:54 -0400)
committerMike Pagano <mpagano@gentoo.org>
Mon, 18 Jun 2018 18:56:21 +0000 (14:56 -0400)
Fix the unapplying of fbcondecor for sparc and include check
for K_WANT_GENPATCHES. Closes bug #652152.

eclass/kernel-2.eclass

index c60340234f554aef984c60a46487543779835f78..a7501e936cadc262806988d69a09b6aed7f0d8aa 100644 (file)
@@ -1257,12 +1257,14 @@ unipatch() {
        # bug #272676
        if [[ "$(tc-arch)" = "sparc" || "$(tc-arch)" = "sparc64" ]]; then
                if [[ ${KV_MAJOR} -ge 3 || ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} > 2.6.28 ]]; then
-                       UNIPATCH_DROP="${UNIPATCH_DROP} *_fbcondecor-0.9.6.patch"
-                       echo
-                       ewarn "fbcondecor currently prevents sparc/sparc64 from booting"
-                       ewarn "for kernel versions >= 2.6.29. Removing fbcondecor patch."
-                       ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=272676 for details"
-                       echo
+                       if [[ ! -z ${K_WANT_GENPATCHES} ]] ; then
+                               UNIPATCH_DROP="${UNIPATCH_DROP} *_fbcondecor*.patch"
+                               echo
+                               ewarn "fbcondecor currently prevents sparc/sparc64 from booting"
+                               ewarn "for kernel versions >= 2.6.29. Removing fbcondecor patch."
+                               ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=272676 for details"
+                               echo
+                       fi
                fi
        fi