hi everybody,

if point #1 is now relatively clear to me (eg. out of tree kernel modules need to recompile, otherwise it should work with few exceptions), point #2 is still pending.

so I rephrase my question hoping to find an answer ;-)

my development workstation is running 6.1.20-1-lts and I made linux-lts-ro-6.1.15-1-x86_64.pkg.tar.zst and linux-lts-ro-headers-6.1.15-1-x86_64.pkg.tar.zst packages on it : if now I want to compile on this development workstation applications to run on another workstation which is running 6.1.15-1-lts-ro, what should I do so that the compilation takes this specificity into account ?
I saw that there was the gcc ‘--enable-kernel=version’ option : is it the solution ? if yes, how to introduce it during the traditional "./configure && make" ?

regards, lacsaP.

Le lun. 20 mars 2023 à 13:19, Jeronimo Garcia <garciaj.uk@gmail.com> a écrit :
lvm is a good one , bpftrace and other tools that might rely on kernel hooks , or something specific module or statically compiled feature , but as Ralf said , the vast majority of user land applications can be used interchangeably with different kernels .

On Mon, 20 Mar 2023 at 11:59, lacsaP Patatetom <patatetom@gmail.com> wrote:
thank you for your feedback Ralf which is in line with Genes' explanations.

the application that could fall into the mentioned category and that I am paying attention to is lvm, but previous tests show that this is not the case (the lvm2 package provided by ArchLinux behaves as expected with the recompiled modified kernel).

regards, lacsaP.



Le lun. 20 mars 2023 à 12:49, Ralf Mardorf <ralf-mardorf@riseup.net> a écrit :
On Mon, 2023-03-20 at 12:27 +0100, lacsaP Patatetom wrote:
> if I understand correctly, I can install my package linux-lts-perso-
> 6.1.15-2-x86_64.pkg.tar.zst, boot on it (eg. "my" kernel) and continue
> to use the binaries present on my system while they have not been
> compiled with its (new) headers and especially for the binaries that
> call the functions present in the blk-core.c file ?

I still don't know if I understand you and
https://www.google.com/search?q=translate doesn't help.

You can install

core/linux-lts          6.1.20-1
core/linux-lts-docs     6.1.20-1
core/linux-lts-headers  6.1.20-1

and also your

linux-lts-perso         6.1.15-2
linux-lts-perso-docs    6.1.15-2
linux-lts-perso-headers 6.1.15-2

neither the version, nor the pkgrel matter.
You can run one or the other kernel and you can build modules for what
ever kernel you like, see
https://wiki.archlinux.org/title/Dynamic_Kernel_Module_Support#Rebuild_modules .

You (usually) can use a binary such as /usr/bin/vim with one or the
other kernel, but you might need to build modules to use something like
virtualbox.

In your case something like systemd or xorg is irrelevant, but something
like this might depend closer on kernel versions, than vim does.

Regards,
Ralf