sci-physics/root: switch back to builtin LLVM
authorGuilherme Amadio <amadio@gentoo.org>
Fri, 6 Sep 2019 11:56:33 +0000 (13:56 +0200)
committerGuilherme Amadio <amadio@gentoo.org>
Mon, 9 Sep 2019 06:10:27 +0000 (08:10 +0200)
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>
sci-physics/root/root-6.16.00-r4.ebuild [moved from sci-physics/root/root-6.16.00-r3.ebuild with 97% similarity]
sci-physics/root/root-6.18.00-r3.ebuild [moved from sci-physics/root/root-6.18.00-r2.ebuild with 97% similarity]
sci-physics/root/root-9999.ebuild

similarity index 97%
rename from sci-physics/root/root-6.16.00-r3.ebuild
rename to sci-physics/root/root-6.16.00-r4.ebuild
index c57209cefee7bee855a6300f071f9fc8b5475b61..ba820931192f8d0ba62e1efa078312a32e1eca77 100644 (file)
@@ -9,7 +9,7 @@ FORTRAN_NEEDED="fortran"
 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"
@@ -46,7 +46,6 @@ CDEPEND="
        media-fonts/dejavu
        media-libs/freetype:2
        media-libs/libpng:0=
-       sys-devel/llvm:5=
        sys-libs/ncurses:=
        sys-libs/zlib
        X? (
@@ -113,8 +112,6 @@ PATCHES=(
 )
 
 pkg_setup() {
-       LLVM_MAX_SLOT=5 llvm_pkg_setup
-
        use fortran && fortran-2_pkg_setup
        use python && python-single-r1_pkg_setup
 
@@ -149,7 +146,6 @@ src_configure() {
        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"
@@ -161,7 +157,7 @@ src_configure() {
                -Dgnuinstall=OFF
                -Dshared=ON
                -Dsoversion=ON
-               -Dbuiltin_llvm=OFF
+               -Dbuiltin_llvm=ON
                -Dbuiltin_clang=ON
                -Dbuiltin_afterimage=OFF
                -Dbuiltin_cfitsio=OFF
similarity index 97%
rename from sci-physics/root/root-6.18.00-r2.ebuild
rename to sci-physics/root/root-6.18.00-r3.ebuild
index 18d23f22fd53999af9e086d3fde2ee9b330b3322..5756097c7587745daf736074a4ecf013d74fc045 100644 (file)
@@ -9,7 +9,7 @@ FORTRAN_NEEDED="fortran"
 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"
@@ -45,7 +45,6 @@ CDEPEND="
        media-fonts/dejavu
        media-libs/freetype:2
        media-libs/libpng:0=
-       sys-devel/llvm:5=
        sys-libs/ncurses:=
        sys-libs/zlib
        X? (
@@ -107,8 +106,6 @@ PATCHES=(
 )
 
 pkg_setup() {
-       LLVM_MAX_SLOT=5 llvm_pkg_setup
-
        use fortran && fortran-2_pkg_setup
        use python && python-single-r1_pkg_setup
 
@@ -144,7 +141,6 @@ src_configure() {
                -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"
@@ -156,7 +152,7 @@ src_configure() {
                -Dgnuinstall=OFF
                -Dshared=ON
                -Dsoversion=ON
-               -Dbuiltin_llvm=OFF
+               -Dbuiltin_llvm=ON
                -Dbuiltin_clang=ON
                -Dbuiltin_afterimage=OFF
                -Dbuiltin_cfitsio=OFF
index e841fafab73c177ecbbaca715a368a7e311d35ed..c1e5b490ea25692770a5a2556ba55aa672bc5ac6 100644 (file)
@@ -9,7 +9,7 @@ FORTRAN_NEEDED="fortran"
 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"
@@ -57,7 +57,6 @@ CDEPEND="
        media-fonts/dejavu
        media-libs/freetype:2
        media-libs/libpng:0=
-       sys-devel/llvm:5=
        sys-libs/ncurses:=
        sys-libs/zlib
        X? (
@@ -118,8 +117,6 @@ PATCHES=(
 )
 
 pkg_setup() {
-       LLVM_MAX_SLOT=5 llvm_pkg_setup
-
        use fortran && fortran-2_pkg_setup
        use python && python-single-r1_pkg_setup
 
@@ -149,7 +146,6 @@ src_configure() {
                -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"
@@ -161,7 +157,7 @@ src_configure() {
                -Dgnuinstall=OFF
                -Dshared=ON
                -Dsoversion=ON
-               -Dbuiltin_llvm=OFF
+               -Dbuiltin_llvm=ON
                -Dbuiltin_clang=ON
                -Dbuiltin_afterimage=OFF
                -Dbuiltin_cfitsio=OFF