Skip to content

envkernel.sh: fallback to old armhf hostspec

Oliver Smith requested to merge fix-envkernel-armhf into master

The armhf hostspec triplet has changed during the Alpine 3.6 release cylcle. It was recently adjusted in abuild's arch_to_hostspec() function [1]. Cross compilers in postmarketOS that were built with a previous version of abuild still have the old hostspec in the name. Since we use the same function in envkernel.sh to get the cross compiler name, it is currently failing here for armhf.

We can't simply bump the pkgrel to force a rebuild, because that would make them go out of sync with the upstrem (non-cross) compiler packages. That would break the workflow for fixing incompatibilities with Alpine (see [2]).

Add a workaround to envkernel.sh, to detect if the installed armhf cross compiler binaries still have the old name.

Fixes #1784 (closed)


Trivial and important fix, merging after CI goes through.

Edited by Oliver Smith

Merge request reports