From c012baee91797ddbd87fa26f4cb73c9a58de3c0c Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 4 May 2024 12:47:08 +0100 Subject: crossdev: declare EAPI in profiles/ Declare the EAPI in profiles/, otherwise we're EAPI 0. pkgcraft rightly complains about this. * Similar to 9e889bc74012c4d7bedb9f7fa31d6625be93cf3c. * See also 7f2f74f4e471172ceeceb78913fd8f8c88aa031d in app-eselect/eselect-repository. Signed-off-by: Sam James --- crossdev | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crossdev b/crossdev index 1a63bb8..5eef531 100755 --- a/crossdev +++ b/crossdev @@ -1496,6 +1496,12 @@ set_metadata() { EOF fi + if [[ ! -f "${CROSSDEV_OVERLAY}"/profiles/eapi ]] ; then + cat <<-EOF > "${CROSSDEV_OVERLAY}"/profiles/eapi || die "could not write ${CROSSDEV_OVERLAY}/profiles/eapi" + ${repo_name} + EOF + fi + # If there is no repos.conf entry for the output overlay, create one here if [[ -n ${CROSSDEV_OVERLAY_CREATE_REPOS_CONF} ]]; then cat <<-EOF > "${CROSSDEV_OVERLAY_CREATE_REPOS_CONF}" || die "could not create the repo conf" -- cgit v1.2.3-65-gdbad