Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 2019 01:37:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 239313] graphics/mesa-dri could use a test for the installed llvm
Message-ID:  <bug-239313-7141-KZ8ShlMBR3@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-239313-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-239313-7141@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239313

dewayne@heuristicsystems.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dewayne@heuristicsystems.co
                   |                            |m.au
           Severity|Affects Only Me             |Affects Some People

--- Comment #1 from dewayne@heuristicsystems.com.au ---
As I have clang 8.0.0 from the base os and gcc9 for those tricky ports, I find
that mesa-dri requires a build of llvm8.  Can I suggest that a test for the CC
be included and possibly wrapped around this segment from the Makefile.common

.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH:Marm*} || ${ARCH} == i386
|| ${ARCH:Mmi
BUILD_DEPENDS+= llvm${LLVM_DEFAULT}>=3.9.0_4:devel/llvm${LLVM_DEFAULT}
.if ${COMPONENT} != libs
RUN_DEPENDS+=   llvm${LLVM_DEFAULT}>=3.9.0_4:devel/llvm${LLVM_DEFAULT}
.endif
CONFIGURE_ENV+= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config${LLVM_DEFAULT}
LDFLAGS+=       -Wl,-rpath=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib
CONFIGURE_ARGS+=        --enable-llvm
.else
CONFIGURE_ARGS+=        --disable-llvm
.endif

This would reduce the unnecessary dependency and ongoing maintenance.  (as well
as the build time ;) )

My apologies if llvm is actually required regardless of the available compiler
on the build machine, but this is pulled in due to libepoxy even though I tell
qemu not to use x11.  A complex web!

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239313-7141-KZ8ShlMBR3>