[Drbd-dev] [PATCH] drbd-km.spec: Port to openSuSE

Lars Ellenberg lars.ellenberg at linbit.com
Fri Sep 11 14:44:33 CEST 2015


On Thu, Sep 10, 2015 at 10:33:03AM -0700, Bart Van Assche wrote:
> Currently building an RPM with the drbd-km.spec fails on openSuSE
> because of an incorrect build dependency (kernel-syms instead of
> kernel-default-devel). Fix the algorithm in the spec file for
> determining the kernel development RPM name. Note: if the kernel
> development headers have not been installed as an RPM the
> %{kernel_devel_rpm} variable will be empty.
> 
> This patch has been tested on openSuSE 13.2, CentOS 7.1 and SLES11 SP3.

You are not supposed to build a "drbd-km" from "drbd-km.spec",
you are supposed to build a kmod-drbd (resp. drbd-kmp) from "drbd-kernel.spec",
using the kernel module build "magic" of the respective ditribution.
(not "make km-rpm", but "make kmp-rpm")

But thanks ;-)

	Lars



More information about the drbd-dev mailing list