Bug 9849

Summary: libdrm autodetects dependencies
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Martin Jansa <Martin.Jansa>
Component: graphicsAssignee: Jussi Kukkonen <jku>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, sgw
Version: 2.2   
Target Milestone: 2.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Martin Jansa 2016-06-29 14:53:23 UTC
WARN: libdrm: libdrm-tests rdepends on cunit, but it isn't a build dependency?
WARN: libdrm: libdrm-tests rdepends on libdrm-amdgpu, but it isn't a build dependency?
Comment 1 Jussi Kukkonen 2016-09-05 12:18:43 UTC
> WARN: libdrm: libdrm-tests rdepends on cunit, but it isn't a build dependency?

This slipped M3 but I'll send a fix for it once the milestone release is done.

> WARN: libdrm: libdrm-tests rdepends on libdrm-amdgpu, but it isn't a build dependency?

This one is just weird... what is it trying to say? libdrm-tests & libdrm-amdgpu are both built from same source with the same recipe.
Comment 2 Martin Jansa 2016-09-13 14:19:15 UTC
> This one is just weird... what is it trying to say? libdrm-tests & libdrm-amdgpu are both built from same source with the same recipe.

Does it need RRECOMMENDS_${PN}-tests += "${PN}-amdgpu"?
Comment 3 Jussi Kukkonen 2016-09-15 06:34:51 UTC
(In reply to comment #2)
> > This one is just weird... what is it trying to say? libdrm-tests & libdrm-amdgpu are both built from same source with the same recipe.
> 
> Does it need RRECOMMENDS_${PN}-tests += "${PN}-amdgpu"?

I don't think that makes sense: it is correctly autodetecting the runtime dependency. Anyway, neither warning should now show up as I've disabled cunit-tests:

commit 0825fcf7001aabc2084cc10e8d9aebbf327c884b
Author: Jussi Kukkonen <jussi.kukkonen@intel.com>
Date:   Tue Sep 13 11:46:41 2016 +0300

    libdrm: Explicitly disable cunit tests
    
    Add patch to control building cunit-tests explicitly. Disable
    them in the recipe.
    
    Fixes [YOCTO #9849].
    
    (From OE-Core rev: cd287235fc5b9d0c174a10a89e31ffd391806113)