From 90388548d141613067e5af2f9cfb9c22a7009442 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Mon, 16 Sep 2024 12:20:53 +0200 Subject: [PATCH 1/2] .github: Handle missing app-emulation/hv-daemons LTS channel has no such package, so the action for finding the kernel update was failing. Fix it by updating the package only if it exists. --- .github/workflows/kernel-apply-patch.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/kernel-apply-patch.sh b/.github/workflows/kernel-apply-patch.sh index 14c2216624..8fdb9f90b7 100755 --- a/.github/workflows/kernel-apply-patch.sh +++ b/.github/workflows/kernel-apply-patch.sh @@ -32,10 +32,12 @@ for pkg in sources modules kernel; do popd done -# Update hyperv daemons ebuild soft-link to reflect new kernel version -find -D exec app-emulation/hv-daemons/ -type l -exec rm '{}' \; -ln -s app-emulation/hv-daemons/hv-daemons-9999.ebuild \ - app-emulation/hv-daemons/hv-daemons-${VERSION_NEW}.ebuild +if [[ -d app-emulation/hv-daemons ]]; then + # Update hyperv daemons ebuild soft-link to reflect new kernel version + find -D exec app-emulation/hv-daemons/ -type l -exec rm '{}' \; + ln -s app-emulation/hv-daemons/hv-daemons-9999.ebuild \ + app-emulation/hv-daemons/hv-daemons-${VERSION_NEW}.ebuild +fi # Leave ebuild repo section of SDK popd From 475cb08109101af8a1777f6222e5bc56ff3f6c88 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Mon, 16 Sep 2024 15:23:48 +0200 Subject: [PATCH 2/2] .github: Make app-emulation/hv-daemons a relative link Co-authored-by: Mathieu Tortuyaux --- .github/workflows/kernel-apply-patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/kernel-apply-patch.sh b/.github/workflows/kernel-apply-patch.sh index 8fdb9f90b7..97e124a0e4 100755 --- a/.github/workflows/kernel-apply-patch.sh +++ b/.github/workflows/kernel-apply-patch.sh @@ -35,7 +35,7 @@ done if [[ -d app-emulation/hv-daemons ]]; then # Update hyperv daemons ebuild soft-link to reflect new kernel version find -D exec app-emulation/hv-daemons/ -type l -exec rm '{}' \; - ln -s app-emulation/hv-daemons/hv-daemons-9999.ebuild \ + ln --relative -s app-emulation/hv-daemons/hv-daemons-9999.ebuild \ app-emulation/hv-daemons/hv-daemons-${VERSION_NEW}.ebuild fi