[Drbd-dev] DRBD 9 on Fedora 28

Digimer lists at alteeve.ca
Tue Jul 24 20:52:25 CEST 2018


On 2018-07-24 02:01 PM, Sarah Newman wrote:
> On 07/24/2018 08:55 AM, Digimer wrote:
>> On 2018-07-24 11:31 AM, Digimer wrote:
>>> On 2018-07-24 11:23 AM, Digimer wrote:
>>>> 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...
>>>
>>> I should mention; This same src.rpm builds fine on RHEL 7.5. So it seems
>>> to be specifically a Fedora issue (tried on 27 and 28).
> 
> Digimer, you might be better off asking the Fedora folks rather than the DRBD folks, since they may have had to fix similar issues in other packages.
> 
> Nick, since you're a Fedora ambassador do you have any suggestions on where or who to ask? I don't know if
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ is appropriate unless Digimer is planning on submitting his work to Fedora.
> 
> Thanks, Sarah

Thanks Sarah!

  I asked on the #fedora IRC channel and a few folks did help (that's
how I narrows it down to that loop), the general feeling was to talk to
LINBIT folks. Personally, I am happy working with either, though I want
to admit straight up that I am fairly new to RPM packaging.

  If Nick has advice, I'll be happy to follow it, too. :)

digimer

-- 
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