Bug 12966

Summary: Mesa depends on xorgproto even when x11 isn't in DISTRO_FEATURES
Product: [Build System, Metadata & Runtime] OE-Core Reporter: martid0311
Component: graphicsAssignee: Ross Burton <ross.burton>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: 2.7 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: Backport to 2.6.1
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description martid0311 2018-10-19 09:20:10 UTC
Mesa's "dri" and "dri3" packageconfig options add a dependency to xorgproto. From what I understand, xorgproto shouldn't be necessary on a system which doesn't have x11. It's enabled here: http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-graphics/mesa/mesa.inc#n64

I removed "xorgproto" from "dri" and "dri3", and mesa compiled just fine without it, though I haven't gotten to test it yet because I have to wait for the system to compile.
Comment 1 Ross Burton 2018-12-04 16:40:15 UTC
From Mesa's configure.ac:

if test x"$enable_dri3" = xyes; then
    DEFINES="$DEFINES -DHAVE_DRI3"

    dri3_modules="x11-xcb xcb >= $XCB_REQUIRED xcb-dri3 xcb-xfixes xcb-present xcb-sync xshmfence >= $XSHMFENCE_REQUIRED"
    PKG_CHECK_MODULES([XCB_DRI3], [$dri3_modules])


The xorgproto dependency is wrong, but it should have libxcb instead.  You won't be able to compile Mesa with DRI3 without X11 with current Mesa code.
Comment 2 Ross Burton 2018-12-04 17:10:39 UTC
Seeked clarification upstream: DRI3 is a X11 protocol.  Having DRI3 without X11 is nonsensical.