On 17/6/25 16:21, Jelle van der Waa wrote:
On 17/06/2025 03:38, Daurnimator wrote:
- zig targets include a kernel version and glibc version; make sure you include them!
So glibc in general should be fine, but for the kernel version we should target our LTS version or what we specify as baseline in our glibc package?
To be cautious for upgrades but stay recent, I've been selecting the previously packaged linux-lts version. So e.g. currently we've got linux-lts 6.12 in core; the previous major release of linux-lts was 6.6. On the glibc side, I'd also recommend selecting the previously packaged version for compatibility. At the moment we package 2.41, and the previous packaged version was 2.40. So I would recommend at the current point in time, we specify a target of: `native-linux.6.6-gnu.2.40`. A couple of years ago I brought up if we should formalise this via some sort of exposed variable in makepkg; it might be worth bringing this up again? Also FYI zig can take a kernel version range. e.g. zig build -Dtarget=native-linux.4.4...6.6-gnu.2.39 I'm not suggesting that we set a maximum target version.