Bug 12966 - Mesa depends on xorgproto even when x11 isn't in DISTRO_FEATURES
Summary: Mesa depends on xorgproto even when x11 isn't in DISTRO_FEATURES
Status: RESOLVED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.7 M1
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard: Backport to 2.6.1
Depends on:
Blocks:
 
Reported: 2018-10-19 09:20 UTC by martid0311
Modified: 2018-12-04 17:10 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.