[Drbd-dev] DRBD 9 on Fedora 28

Digimer lists at alteeve.ca
Tue Jul 24 17:23:07 CEST 2018


On 2018-07-24 12:40 AM, Digimer wrote:
> Hi all,
> 
>   I'm trying to get DRBD 9 on Fedora 28 (which I'm using as a dev
> platform ahead of RHEL 8 beta). The DRBD that ships with the kernel is
> 8.4.10.
> 
>   I've been struggling to build the 9.0.15rc1 RPM without luck. I've
> made a few progressions (ie: added kernel-rpm-macros, kernel-devel and
> elfutils-devel to BuildRequires).
> 
>   Has anyone managed to build DRBD9 on Fedora 27+? If so, would you mind
> sharing the src.rpm or .spec?
> 
> Thanks!
> 
> digimer

Following up with additional info;

The problem is in this loop;

https://github.com/LINBIT/drbd-9.0/blob/master/drbd-kernel.spec#L84

It causes the arch to be appended twice;

====
+ for flavor in default
++ '[' default = default ']'
+ make -C /usr/src/kernels/4.17.7-200.fc28.x86_64.x86_64 modules_install
M=/home/digimer/rpmbuild/BUILD/drbd-9.0.15rc1/obj/default
make: *** /usr/src/kernels/4.17.7-200.fc28.x86_64.x86_64: No such file
or directory.  Stop.
====

I've been trying to figure out how to fix it, but it seems my ignorance
of RPM .spec is getting the better of me...

-- 
Digimer
Papers and Projects: https://alteeve.com/w/
"I am, somehow, less interested in the weight and convolutions of
Einstein’s brain than in the near certainty that people of equal talent
have lived and died in cotton fields and sweatshops." - Stephen Jay Gould


More information about the drbd-dev mailing list