[prev in list] [next in list] [prev in thread] [next in thread] 

List:       drbd-announce
Subject:    Re: [DRBD-announce] [DRBD-user] drbd-9.0.20-1
From:       Roland Kammerer <roland.kammerer () linbit ! com>
Date:       2019-10-10 13:57:37
Message-ID: 20191010135737.GQ2889 () rck ! sh
[Download RAW message or body]

On Thu, Oct 10, 2019 at 01:19:53PM +0200, Philipp Reisner wrote:
> Hi,
> 
> With this release the big news is the new way we deal with compatibility
> for older linux kernels. It used to be a mechanism based of #IFDEFs that
> tainted the main drbd code more and more.
> Now the DRBD code is clean Linux-upstream compatible code. In order that
> you can compile it against older and distribution kernels the build
> process automatically applies a compat-patch. These compat-patches are
> computed using coccinelle/spatch semantic patches. See here for more
> information:
> 
> https://www.linbit.com/en/how-to-make-drbd-compatible-to-the-linux-kernel/

Some additional hints/tl;tr:

1. It tries to find a patch in the local cache (shipped in the tar
ball).

2. If not in cache, try to generate with spatch. You need to have at
least version 1.0.8 (latest release, as of about 2 weeks ago). Earlier
version might generate patches, put they might be invalid! AFAIK no
distri packaged 1.0.8 so far.

3. If spatch is not installed, it fetches the patch from a web service.
For that you need access to the web, and you need `curl`. I forget to
add it as explicit dependency for the dkms. Most systems should have it
- PVE is a famous exception - or the build process will complain anyways.

Best, rck
_______________________________________________
drbd-announce mailing list
drbd-announce@lists.linbit.com
https://lists.linbit.com/mailman/listinfo/drbd-announce
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic