Using external LLVM never really worked and can cause crashes
if ROOT is used with anything else that dynamically links against
LLVM, such as media-libs/mesa[llvm]. The bundled version of clang
is also API incompatible with vanilla clang and doesn't work as a
compiler with the applied patches that are required to make the
cling C/C++ interpreter work.
More information can be found in the links below:
Bug: https://bugs.gentoo.org/564302
Bug: https://bugs.gentoo.org/687212
Bug: https://sft.its.cern.ch/jira/browse/ROOT-9965
Bug: https://sft.its.cern.ch/jira/browse/ROOT-10287
Bug: https://cern.service-now.com/service-portal/view-incident.do?n=INC1242141 (requires authentication)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=93103
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=
1441957 (restricted)
Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
inherit cmake-utils cuda eapi7-ver elisp-common eutils fortran-2 \
- llvm prefix python-single-r1 toolchain-funcs
+ prefix python-single-r1 toolchain-funcs
DESCRIPTION="C++ data analysis framework and interpreter from CERN"
HOMEPAGE="https://root.cern"
media-fonts/dejavu
media-libs/freetype:2
media-libs/libpng:0=
- sys-devel/llvm:5=
sys-libs/ncurses:=
sys-libs/zlib
X? (
)
pkg_setup() {
- LLVM_MAX_SLOT=5 llvm_pkg_setup
-
use fortran && fortran-2_pkg_setup
use python && python-single-r1_pkg_setup
local mycmakeargs=(
-DCMAKE_C_FLAGS="${CFLAGS}"
-DCMAKE_CXX_FLAGS="${CXXFLAGS}"
- -DLLVM_CONFIG="$(type -P "${CHOST}-llvm-config")"
-DCMAKE_INSTALL_PREFIX="${EPREFIX%/}/usr/lib/${PN}/$(ver_cut 1-2)"
-DCMAKE_INSTALL_MANDIR="${EPREFIX%/}/usr/lib/${PN}/$(ver_cut 1-2)/share/man"
-DCMAKE_INSTALL_LIBDIR="lib"
-Dgnuinstall=OFF
-Dshared=ON
-Dsoversion=ON
- -Dbuiltin_llvm=OFF
+ -Dbuiltin_llvm=ON
-Dbuiltin_clang=ON
-Dbuiltin_afterimage=OFF
-Dbuiltin_cfitsio=OFF
PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
inherit cmake-utils cuda eapi7-ver elisp-common eutils fortran-2 \
- llvm prefix python-single-r1 toolchain-funcs
+ prefix python-single-r1 toolchain-funcs
DESCRIPTION="C++ data analysis framework and interpreter from CERN"
HOMEPAGE="https://root.cern"
media-fonts/dejavu
media-libs/freetype:2
media-libs/libpng:0=
- sys-devel/llvm:5=
sys-libs/ncurses:=
sys-libs/zlib
X? (
)
pkg_setup() {
- LLVM_MAX_SLOT=5 llvm_pkg_setup
-
use fortran && fortran-2_pkg_setup
use python && python-single-r1_pkg_setup
-DCMAKE_C_FLAGS="${CFLAGS}"
-DCMAKE_CXX_FLAGS="${CXXFLAGS}"
-DCMAKE_CXX_STANDARD=$((usev c++11 || usev c++14 || usev c++17) | cut -c4-)
- -DLLVM_CONFIG="$(type -P "${CHOST}-llvm-config")"
-DCMAKE_INSTALL_PREFIX="${EPREFIX%/}/usr/lib/${PN}/$(ver_cut 1-2)"
-DCMAKE_INSTALL_MANDIR="${EPREFIX%/}/usr/lib/${PN}/$(ver_cut 1-2)/share/man"
-DCMAKE_INSTALL_LIBDIR="lib"
-Dgnuinstall=OFF
-Dshared=ON
-Dsoversion=ON
- -Dbuiltin_llvm=OFF
+ -Dbuiltin_llvm=ON
-Dbuiltin_clang=ON
-Dbuiltin_afterimage=OFF
-Dbuiltin_cfitsio=OFF
PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
inherit cmake-utils cuda eapi7-ver elisp-common eutils fortran-2 \
- llvm prefix python-single-r1 toolchain-funcs
+ prefix python-single-r1 toolchain-funcs
DESCRIPTION="C++ data analysis framework and interpreter from CERN"
HOMEPAGE="https://root.cern"
media-fonts/dejavu
media-libs/freetype:2
media-libs/libpng:0=
- sys-devel/llvm:5=
sys-libs/ncurses:=
sys-libs/zlib
X? (
)
pkg_setup() {
- LLVM_MAX_SLOT=5 llvm_pkg_setup
-
use fortran && fortran-2_pkg_setup
use python && python-single-r1_pkg_setup
-DCMAKE_C_FLAGS="${CFLAGS}"
-DCMAKE_CXX_FLAGS="${CXXFLAGS}"
-DCMAKE_CXX_STANDARD=$((usev c++11 || usev c++14 || usev c++17) | cut -c4-)
- -DLLVM_CONFIG="$(type -P "${CHOST}-llvm-config")"
-DCMAKE_INSTALL_PREFIX="${EPREFIX%/}/usr/lib/${PN}/$(ver_cut 1-2)"
-DCMAKE_INSTALL_MANDIR="${EPREFIX%/}/usr/lib/${PN}/$(ver_cut 1-2)/share/man"
-DCMAKE_INSTALL_LIBDIR="lib"
-Dgnuinstall=OFF
-Dshared=ON
-Dsoversion=ON
- -Dbuiltin_llvm=OFF
+ -Dbuiltin_llvm=ON
-Dbuiltin_clang=ON
-Dbuiltin_afterimage=OFF
-Dbuiltin_cfitsio=OFF