From d3bfcc7823412b57e0dbf319286460466a1f9ba1 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Fri, 3 Jan 2014 10:11:50 -0800 Subject: [PATCH] fix(cros-workon.eclass): Fix support for EAPI=5 subslots The subslot should not be used as part of package name directories. This fixes the kernel builds now that cros-kernel2 uses subslots. --- .../third_party/coreos-overlay/eclass/cros-workon.eclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/eclass/cros-workon.eclass b/sdk_container/src/third_party/coreos-overlay/eclass/cros-workon.eclass index 3043a39e8d..5ab28f0cfe 100644 --- a/sdk_container/src/third_party/coreos-overlay/eclass/cros-workon.eclass +++ b/sdk_container/src/third_party/coreos-overlay/eclass/cros-workon.eclass @@ -455,9 +455,11 @@ cros-workon_src_unpack() { cros-workon_get_build_dir() { local dir + # strip subslot, for EAPI=5 + local slot="${SLOT%/*}" if [[ ${CROS_WORKON_INCREMENTAL_BUILD} == "1" ]]; then dir="${SYSROOT}/var/cache/portage/${CATEGORY}/${PN}" - [[ ${SLOT:-0} != "0" ]] && dir+=":${SLOT}" + [[ ${slot:-0} != "0" ]] && dir+=":${slot}" else dir="${WORKDIR}/build" fi @@ -570,7 +572,9 @@ cros-workon_src_install() { fi if [[ -d "${LCOV_DIR}" ]] ; then local dir="${PN}" - [[ ${SLOT} != "0" ]] && dir+=":${SLOT}" + # strip subslot, for EAPI=5 + local slot="${SLOT%/*}" + [[ ${slot} != "0" ]] && dir+=":${slot}" insinto "/usr/share/profiling/${dir}/lcov" doins -r "${LCOV_DIR}"/* fi