New commits:
commit 07a052689f916bb438a82281741a719ff4b38dc3
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Eric Sandall <sandalle AT sourcemage.org>
mesalib: Update Gallium driver list
Remove unknown Gallium drivers llvmpipe and radeon.
Add new Gallium drivers ilo, freedreno, vc4, etnaviv, and imx
commit d7564fbd32fbbcc3e651271b5c700cae2087b251
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Eric Sandall <sandalle AT sourcemage.org>
mesalib: 17+ needs LIBDRM_AMD built in libdrm
Which requires llvm for 'radv', so llvm is no longer optional.
Always enable shared GL API.
Fixes these errors:
checking for libdrm_amdgpu >= 2.4.63... no
configure: error: Package requirements (libdrm_amdgpu >= 2.4.63) were not
met:
No package 'libdrm_amdgpu' found
configure: error: shared GLAPI required when building two or more of
the following APIs - opengl, gles1 gles2
commit e38f7c68d09262586f7a0d4a681abf89bf5d77c5
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Eric Sandall <sandalle AT sourcemage.org>
llvm: Truly disable PIC with disable_pic(force)
Was still getting this error when compiling on x86_64:
[ 17%] Building CXX object
lib/MC/CMakeFiles/LLVMMC.dir/MCAsmStreamer.cpp.o
<command-line>:0:5: error: expected ',' or '...' before numeric constant
/usr/src/llvm-4.0.0.src/include/llvm/MC/MCObjectFileInfo.h:191:52: note:
in expansion of macro 'PIC'
void InitMCObjectFileInfo(const Triple &TT, bool PIC, CodeModel::Model
CM,
^~~
make[2]: *** [lib/MC/CMakeFiles/LLVMMC.dir/build.make:231:
lib/MC/CMakeFiles/LLVMMC.dir/MCAsmStreamer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2968:
lib/MC/CMakeFiles/LLVMMC.dir/all] Error 2
make: *** [Makefile:150: all] Error 2
diff --git a/devel/llvm/BUILD b/devel/llvm/BUILD
index 5610901..a083984 100755
--- a/devel/llvm/BUILD
+++ b/devel/llvm/BUILD
@@ -1,5 +1,5 @@
-# "PIC" is used as an identifier
-CXXFLAGS="${CXXFLAGS/-DPIC }" &&
+disable_pic force &&
+
# LLVM_TARGETS
OPTS+=" -DLLVM_TARGETS_TO_BUILD=`echo ${LLVM_TARGETS} | sed 's/ /;/g'`" &&
# Not restricting targets, so that mesalib gets R600.
diff --git a/devel/llvm/HISTORY b/devel/llvm/HISTORY
index 4b9d9aa..50395fe 100644
--- a/devel/llvm/HISTORY
+++ b/devel/llvm/HISTORY
@@ -1,3 +1,6 @@
+2017-04-15 Eric Sandall <sandalle AT sourcemage.org>
+ * BUILD: Truly disable PIC with disable_pic(force).
+
2017-03-13 Pavel Vinogradov <public AT sourcemage.org>
* DETAILS: version 4.0.0
- if list_find "${MESA_EGL}" "wayland"; then
- list_remove MESALIB_OPTS "--disable-shared-glapi" &&
- list_remove MESALIB_OPTS "--disable-gbm" &&
- list_remove MESALIB_OPTS "--disable-gles2" &&
- list_add MESALIB_OPTS "--enable-shared-glapi --enable-gbm
--enable-gles2" &&
- depends wayland
- else
- config_query_option MESALIB_OPTS "enable shared GLapi" n \
- "--enable-shared-glapi" "--disable-shared-glapi" &&
- config_query_option MESALIB_OPTS "enable Generic Buffer Management?" n
\
- "--enable-gbm" "--disable-gbm"
- config_query_option MESALIB_OPTS "enable support for OpenGL ES 2.x
API?" n \
- "--enable-gles2" "--disable-gles2"
- fi
+ config_query_option MESALIB_OPTS "enable Generic Buffer Management?" n \
+ "--enable-gbm" "--disable-gbm"
+ config_query_option MESALIB_OPTS "enable support for OpenGL ES 2.x API?"
n \
+ "--enable-gles2" "--disable-gles2"
+ fi
- if list_find "${MESALIB_GALLIUM}" "i915"; then
- sub_depends libdrm INTEL
- fi &&
- if list_find "${MESALIB_GALLIUM}" "nouveau"; then
- sub_depends libdrm NOUVEAU
- fi &&
- if (list_find "${MESALIB_GALLIUM}" "r300") ||
- (list_find "${MESALIB_GALLIUM}" "r600") ||
- (list_find "${MESALIB_GALLIUM}" "radeon"); then
- sub_depends libdrm RADEON
- fi &&
- if list_find "${MESALIB_GALLIUM}" "radeonsi"; then
- sub_depends libdrm AMD
- fi
- else
- config_query_option MESALIB_OPTS "enable EGL library?" y \
- "--enable-egl --enable-gbm" "--disable-egl"
+ if list_find "${MESALIB_GALLIUM}" "i915"; then
+ sub_depends libdrm INTEL
+ fi &&
+ if list_find "${MESALIB_GALLIUM}" "nouveau"; then
+ sub_depends libdrm NOUVEAU
+ fi &&
+ if (list_find "${MESALIB_GALLIUM}" "r300") ||
+ (list_find "${MESALIB_GALLIUM}" "r600"); then
+ sub_depends libdrm RADEON
+ fi &&
+ if list_find "${MESALIB_GALLIUM}" "radeonsi"; then
+ sub_depends libdrm AMD
fi
;;
*)
diff --git a/graphics-libs/mesalib/HISTORY b/graphics-libs/mesalib/HISTORY
index dd29ea1..36a65b3 100644
--- a/graphics-libs/mesalib/HISTORY
+++ b/graphics-libs/mesalib/HISTORY
@@ -1,3 +1,10 @@
+2017-04-04 Eric Sandall <sandalle AT sourcemage.org>
+ * DEPENDS: 17+ needs LIBDRM_AMD built in libdrm
+ Which requires llvm for 'radv', so llvm is no longer optional.
+ Always enable shared GL API.
+ Remove unknown Gallium drivers llvmpipe and radeon.
+ Add new Gallium drivers ilo, freedreno, vc4, etnaviv, and imx.
+
2017-04-02 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 17.0.3
[SM-Commit] GIT changes to master grimoire by Eric Sandall (07a052689f916bb438a82281741a719ff4b38dc3),
Eric Sandall, 04/16/2017