It's a good idea the kernel headers to come from the kernel in use.simargl wrote:It is original linux-api-headers from Arch. I did not compile it, because glibc needs them and
I thought that recompiling them could create some compatibility issues. You have list of
files from that package here /var/lib/spkg/installed/linux-api-headers.
For most user-space apps kernel headers make little difference so you should not be worried for this kind of packages.
But kernel related stuff (drivers, fs etc) may not compile or compile but fail to work if build against a different kernel.
So I would think to run linux-api-headers/PKGBUILD against your patched and configured kernel source and include this in the build.