Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Ismael Luceno (444dc3f2a40205d9d33f6b64db9acbc61f3aebeb)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Ismael Luceno <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (444dc3f2a40205d9d33f6b64db9acbc61f3aebeb)
  • Date: Wed, 12 Aug 2020 19:05:49 +0000

GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:

devel/llvm/BUILD | 6 ++++++
devel/llvm/DETAILS | 1 +
devel/llvm/HISTORY | 1 +
devel/llvm/PREPARE | 1 +
devel/llvm/PRE_SUB_DEPENDS | 1 +
devel/llvm/SUB_DEPENDS | 4 ++++
graphics-libs/mesa/DEPENDS | 4 ++++
graphics-libs/mesa/HISTORY | 3 +++
8 files changed, 21 insertions(+)

New commits:
commit 444dc3f2a40205d9d33f6b64db9acbc61f3aebeb
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

mesa: Add dependency on LLVM RTTI support for nouveau

commit d64ec85d8195777c4fb0a203dbeea5cdd169aa0e
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

llvm: PATCHLEVEL++

commit ddcc198875198f2e90528f63a15d645256369aa3
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>

llvm: Add knob for RTTI

Warning: Breaks the ABI.

Required by Nouveau.

diff --git a/devel/llvm/BUILD b/devel/llvm/BUILD
index 487a21b..7b14fe5 100755
--- a/devel/llvm/BUILD
+++ b/devel/llvm/BUILD
@@ -14,6 +14,12 @@ if ! is_depends_enabled $SPELL libedit;then
OPTS+=" -DLLVM_ENABLE_TERMINFO=0" &&
OPTS+=" -DLLVM_ENABLE_BACKTRACES=0"
fi &&
+# Enable RTTI if requested, recommended, changing it breaks the ABI
+if [ y = "$LLVM_WITH_RTTI" ]; then
+ OPTS+=" -DLLVM_ENABLE_RTTI=1"
+else
+ OPTS+=" -DLLVM_ENABLE_RTTI=0"
+fi &&

message opts=$OPTS &&
cmake_build
diff --git a/devel/llvm/DETAILS b/devel/llvm/DETAILS
index 90b8c5c..9c883df 100755
--- a/devel/llvm/DETAILS
+++ b/devel/llvm/DETAILS
@@ -1,5 +1,6 @@
SPELL=llvm
VERSION=10.0.1
+ PATCHLEVEL=1
SOURCE="${SPELL}-${VERSION}.src.tar.xz"
SOURCE2=$SOURCE.sig

GITHUB_URI="https://github.com/llvm/llvm-project/releases/download/llvmorg-$VERSION";
diff --git a/devel/llvm/HISTORY b/devel/llvm/HISTORY
index 47a0a2b..f174610 100644
--- a/devel/llvm/HISTORY
+++ b/devel/llvm/HISTORY
@@ -1,4 +1,5 @@
2020-08-12 Ismael Luceno <ismael AT sourcemage.org>
+ * DETAILS: PATCHLEVEL++
* PRE_BUILD, BUILD: Replaced clang patch by -DPIC removal from
CXXFLAGS
* 0001-fix-compile-error-clang.patch: removed, no longer needed

diff --git a/devel/llvm/PREPARE b/devel/llvm/PREPARE
index b003f79..53c46bb 100755
--- a/devel/llvm/PREPARE
+++ b/devel/llvm/PREPARE
@@ -1,3 +1,4 @@
+config_query LLVM_WITH_RTTI "Enable RTTI? (recommended)" y &&
config_query LLVM_WITH_CLANG "Enable clang compiler frontend?" n &&
config_query LLVM_WITH_LLDB "Enable lldb debugger?" n &&
config_query LLVM_WITH_POLLY "Enable polihedral optimizer?" n &&
diff --git a/devel/llvm/PRE_SUB_DEPENDS b/devel/llvm/PRE_SUB_DEPENDS
index 6ccdf7e..dd8341d 100755
--- a/devel/llvm/PRE_SUB_DEPENDS
+++ b/devel/llvm/PRE_SUB_DEPENDS
@@ -4,6 +4,7 @@ CLANG) [[ "${LLVM_WITH_CLANG}" == "y" ]] ;;
LLDB) [[ "${LLVM_WITH_LLDB}" == "y" ]] ;;
POLLY) [[ "${LLVM_WITH_POLLY}" == "y" ]] ;;
LLD) [[ "${LLVM_WITH_LLD}" == "y" ]] ;;
+RTTI) [ y = "$LLVM_WITH_RTTI" ] ;;
*)
message "${PROBLEM_COLOR}bogus sub_depends: $SPELL
$THIS_SUB_DEPENDS${DEFAULT_COLOR}"
return 1
diff --git a/devel/llvm/SUB_DEPENDS b/devel/llvm/SUB_DEPENDS
index 163c264..791b603 100755
--- a/devel/llvm/SUB_DEPENDS
+++ b/devel/llvm/SUB_DEPENDS
@@ -19,6 +19,10 @@ LLD)
message "${MESSAGE_COLOR}Building lld enforced by
sub-dependency.$DEFAULT_COLOR"
LLVM_WITH_LLD=y
;;
+RTTI)
+ message "${MESSAGE_COLOR}RTTI support enforced by
sub-dependency.$DEFAULT_COLOR"
+ LLVM_WITH_RTTI=y
+;;
*)
message "${PROBLEM_COLOR}bogus sub_depends: $SPELL
$THIS_SUB_DEPENDS${DEFAULT_COLOR}"
return 1
diff --git a/graphics-libs/mesa/DEPENDS b/graphics-libs/mesa/DEPENDS
index f7c53db..4d7b3a7 100755
--- a/graphics-libs/mesa/DEPENDS
+++ b/graphics-libs/mesa/DEPENDS
@@ -19,6 +19,10 @@ depends libxrandr &&
depends nettle &&
depends zlib &&

+if list_find "$MESA_GALLIUM" "nouveau"; then
+ depends -sub RTTI llvm
+fi &&
+
if (list_find "${MESA_GALLIUM}" "radeonsi") ||
(list_find "$MESA_VULKAN" amd); then
depends -sub AMD llvm &&
diff --git a/graphics-libs/mesa/HISTORY b/graphics-libs/mesa/HISTORY
index 52a183a..786ee18 100644
--- a/graphics-libs/mesa/HISTORY
+++ b/graphics-libs/mesa/HISTORY
@@ -1,3 +1,6 @@
+2020-08-12 Ismael Luceno <ismael AT sourcemage.org>
+ * DEPENDS: Added depenency on LLVM RTTI support for nouveau
+
2020-08-07 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
* DETAILS: version 20.1.5




  • [SM-Commit] GIT changes to master grimoire by Ismael Luceno (444dc3f2a40205d9d33f6b64db9acbc61f3aebeb), Ismael Luceno, 08/12/2020

Archive powered by MHonArc 2.6.24.

Top of Page