Infra would like to switch 2 older systems to sys-kernel/gentoo-kernel-bin, but there is a hiccup: They are hosts w/ 32-bit userspace and 64-bit kernel (on amd64 hardware). The package as it stands doesn't permit this install combination. A similar project, sys-kernel/gentoo-infra-kernel, used a USE-flag setup to provide this support. I understand this is a niche ask, but it would improve migration for older systems. KARCH_amd64="x86_64" KARCH_x86="x86" BINPKG_PVR="${PVR}-${INFRA_SUFFIX}" BINPKG_KERNEL="${PN/-sources/}-kernel-KARCH-${BINPKG_PVR}" BINPKG_MODULES="${PN/-sources/}-modules-KARCH-${BINPKG_PVR}" URIBASE="mirror://local.gentoo.infra/" for kw in $KEYWORDS ; do [[ "${kw:0:1}" == "-" ]] && continue [[ "${kw:0:1}" == "~" ]] && kw=${kw:1} karch="KARCH_$kw" karch=${!karch} URIS="${URIBASE}${BINPKG_KERNEL/KARCH/${karch}}.tar.bz2 ${URIBASE}${BINPKG_MODULES/KARCH/${karch}}.tar.bz2" SRC_URI+=" force_${kw}? ( ${URIS} ) " SRC_URI+=" ${kw}? ( ${URIS} ) " IUSE_arch+=" force_${kw} " done IUSE=$IUSE_arch REQUIRED_USE="?? ( $IUSE_arch )" ... src_install() { # Use is not valid in global scope use amd64 && KARCH="${KARCH_amd64}" if use x86; then uname_m=$(uname -m) case ${uname_m} in x86_64) KARCH="${KARCH_amd64}" ;; i*86) KARCH="${KARCH_x86}" ;; esac fi ... }
Which kernel versions do you need, i.e. how far back do we need to implement this?
I'm hoping to move many systems to 6.1.28, so that would be fine as a starting point.
dist-kernel: any luck on this request?
Unfortunately not. I've tried a while ago and didn't manage to get through all the cross mess involved. These days I'm swamped with work and I can't dedicate any time to this.