[Drbd-dev] DRBD 9 on Fedora 28

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


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

Adding again; When I created a symlink (4.17.7-200.fc28.x86_64.x86_64 ->
4.17.7-200.fc28.x86_64) to test, the build got further but still failed.
I'm attaching the spec I am currently using. It's modified somewhat from
the spec generated by building from git (mainly to remove suse checks
and simplify things).

====
Finding  Recommends:
Finding  Suggests:
Finding  Supplements:
Finding  Enhances:
Provides: drbd-kernel = 9.0.15rc1-0.fc28 drbd-kernel(x86-64) =
9.0.15rc1-0.fc28
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: kmod-drbd-9.0.15rc1-0.fc28.x86_64
Processing files: drbd-kernel-debugsource-9.0.15rc1-0.fc28.x86_64
error: Empty %files file
/home/digimer/rpmbuild/BUILD/drbd-9.0.15rc1/debugsourcefiles.list


RPM build errors:
    Macro %kmp_release defined but not used within scope
    Macro %kmp_version defined but not used within scope
    Macro %latest_kernel defined but not used within scope
    Deprecated external dependency generator is used!
    Empty %files file
/home/digimer/rpmbuild/BUILD/drbd-9.0.15rc1/debugsourcefiles.list
====

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drbd-kernel.spec
Type: text/x-rpm-spec
Size: 4897 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-dev/attachments/20180724/02913fb9/attachment.bin>


More information about the drbd-dev mailing list