Skip to content

Commit

Permalink
sys-kernel/asahi-kernel: adjust version to satisfy eclass checks
Browse files Browse the repository at this point in the history
Skipping kernel-install_pkg_preinst is not an option with merged-usr
since that function fixes dangling symlink in /lib/modules/$(uname -r).

Signed-off-by: Janne Grunau <j@jannau.net>
  • Loading branch information
jannau committed Apr 1, 2024
1 parent 3089da0 commit ae88623
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sys-kernel/asahi-kernel/asahi-kernel-6.6.0_p16-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,13 @@ src_prepare() {
# prepare the default config
cp "${DISTDIR}/kernel-aarch64-16k-fedora.config-${CONFIG_VER}" ".config" || die

# localversion.05-asahi already appends "-asahi"
local myversion="-${MY_TAG}-dist"
# ensure a consistant version across kernel and gentoo
# this passes the ${PV}-as-release check in kernel-install_pkg_preinst()
# override "-asahi" in localversion.05-asahi with "_pX" to override the
# kernel's base varsion to gentoo's ${PV}
echo "-p${MY_TAG}" > localversion.05-asahi
# use CONFIG_LOCALVERSION to provide "asahi" and "dist" annotations.
local myversion="-asahi-dist"
echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"

Expand Down Expand Up @@ -114,11 +119,6 @@ src_install() {
done
}

# Override kernel-install_pkg_preinst() to avoid ${PV}-as-release check
pkg_preinst() {
true
}

pkg_postinst() {
einfo "For more information about Asahi Linux please visit ${HOMEPAGE},"
einfo "or consult the Wiki at https://github.com/AsahiLinux/docs/wiki."
Expand Down

0 comments on commit ae88623

Please sign in to comment.