summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlfred Persson Forsberg <cat@catcream.org>2023-08-29 00:04:49 +0200
committerSam James <sam@gentoo.org>2023-08-29 03:09:00 +0100
commitc5f2fe5daab92a94070cfc41acb543941818c96b (patch)
tree8ca599fadf2f20e6b5fa6bd2be233a8d3a000f58 /eclass
parentapp-text/zathura: restore stable 0.5.2 (diff)
downloadgentoo-c5f2fe5daab92a94070cfc41acb543941818c96b.tar.gz
gentoo-c5f2fe5daab92a94070cfc41acb543941818c96b.tar.bz2
gentoo-c5f2fe5daab92a94070cfc41acb543941818c96b.zip
kernel-2.eclass: move ppc64 hack before crossdev inherit
Closes: https://bugs.gentoo.org/913127 Signed-off-by: Alfred Persson Forsberg <cat@catcream.org> Closes: https://github.com/gentoo/gentoo/pull/32501 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass12
1 files changed, 7 insertions, 5 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index dc9ed25e8b60..7b77b64de90f 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -281,6 +281,13 @@
# If you do change them, there is a chance that we will not fix resulting bugs;
# that of course does not mean we're not willing to help.
+# Added by Daniel Ostrow <dostrow@gentoo.org>
+# This is an ugly hack to get around an issue with a 32-bit userland on ppc64.
+# I will remove it when I come up with something more reasonable.
+# Alfred Persson Forsberg <cat@catcream.org>
+# Moved this above inherit as crossdev.eclass uses CHOST internally.
+[[ ${PROFILE_ARCH} == ppc64 ]] && CHOST="powerpc64-${CHOST#*-}"
+
inherit crossdev estack multiprocessing toolchain-funcs
case ${EAPI} in
@@ -288,11 +295,6 @@ case ${EAPI} in
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
-# Added by Daniel Ostrow <dostrow@gentoo.org>
-# This is an ugly hack to get around an issue with a 32-bit userland on ppc64.
-# I will remove it when I come up with something more reasonable.
-[[ ${PROFILE_ARCH} == ppc64 ]] && CHOST="powerpc64-${CHOST#*-}"
-
HOMEPAGE="https://www.kernel.org/ https://wiki.gentoo.org/wiki/Kernel ${HOMEPAGE}"
: "${LICENSE:="GPL-2"}"