sys-devel/llvm: Stop using custom build type in -9999
authorMichał Górny <mgorny@gentoo.org>
Thu, 12 Jan 2017 10:35:39 +0000 (11:35 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 12 Jan 2017 15:25:23 +0000 (16:25 +0100)
Switch -9999 to use standard CMAKE_BUILD_TYPE=RelWithDebInfo following
the eclass and sys-devel/cmake changes to make it non-intrusive
and Gentoo-friendly. This lets us skip hacking custom build type support
in, and get a more well-defined behavior upstream.

sys-devel/llvm/files/3.9.1/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch [moved from sys-devel/llvm/files/9999/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch with 100% similarity]
sys-devel/llvm/llvm-3.8.1-r2.ebuild
sys-devel/llvm/llvm-3.8.1.ebuild
sys-devel/llvm/llvm-3.9.0-r1.ebuild
sys-devel/llvm/llvm-3.9.1.ebuild
sys-devel/llvm/llvm-9999.ebuild

index 9eff8cd66726a6b26dbfa2b8935240740cd1d8b0..5ba7822d0e65ef9210f882634c52a341c6861e41 100644 (file)
@@ -174,7 +174,7 @@ src_prepare() {
        eapply "${FILESDIR}"/3.8.1/0005-cmake-Do-not-install-libgtest.patch
 
        # Allow custom cmake build types (like 'Gentoo')
-       eapply "${FILESDIR}"/9999/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch
+       eapply "${FILESDIR}"/3.9.1/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch
 
        # Fix llvm-config for shared linking and sane flags
        # https://bugs.gentoo.org/show_bug.cgi?id=565358
index fb0575f215206a05cae3eeccfe833a8cd9788c00..dcc83531c0d2e643a4be00772b3c393d54efadac 100644 (file)
@@ -175,7 +175,7 @@ src_prepare() {
        eapply "${FILESDIR}"/3.8.1/0005-cmake-Do-not-install-libgtest.patch
 
        # Allow custom cmake build types (like 'Gentoo')
-       eapply "${FILESDIR}"/9999/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch
+       eapply "${FILESDIR}"/3.9.1/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch
 
        # Fix llvm-config for shared linking and sane flags
        # https://bugs.gentoo.org/show_bug.cgi?id=565358
index 905de6cef1f23db4bc5cb8ef74d2aabbd59f341a..814931bd5b3b2c9ec76c4f7003233336a793cc69 100644 (file)
@@ -181,7 +181,7 @@ src_prepare() {
        eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch
 
        # Allow custom cmake build types (like 'Gentoo')
-       eapply "${FILESDIR}"/9999/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch
+       eapply "${FILESDIR}"/3.9.1/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch
 
        # Fix llvm-config for shared linking and sane flags
        # https://bugs.gentoo.org/show_bug.cgi?id=565358
index 72baa968b1e27e991df4f94110e31efa3f0f5e46..6fbfcd8817205fe62d9234ffaae559cce5457918 100644 (file)
@@ -181,7 +181,7 @@ src_prepare() {
        eapply "${FILESDIR}"/3.9.1/0004-cmake-Add-an-ordering-dep-between-HTML-man-Sphinx-ta.patch
 
        # Allow custom cmake build types (like 'Gentoo')
-       eapply "${FILESDIR}"/9999/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch
+       eapply "${FILESDIR}"/3.9.1/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch
 
        # Fix llvm-config for shared linking and sane flags
        # https://bugs.gentoo.org/show_bug.cgi?id=565358
index 94c3a7d6e596f5b3a96dc0fb6f9deb9c2ea0c06d..16e670ce14e0c25103e491af4484de1fd25a9f24 100644 (file)
@@ -5,8 +5,8 @@
 EAPI=6
 
 : ${CMAKE_MAKEFILE_GENERATOR:=ninja}
-# (needed due to lib32 find_library fix)
-CMAKE_MIN_VERSION=3.6.1-r1
+# (needed due to CMAKE_BUILD_TYPE != Gentoo)
+CMAKE_MIN_VERSION=3.7.0-r1
 PYTHON_COMPAT=( python2_7 )
 
 inherit check-reqs cmake-utils flag-o-matic git-r3 \
@@ -63,6 +63,9 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}
        || ( ${ALL_LLVM_TARGETS[*]} )
        multitarget? ( ${ALL_LLVM_TARGETS[*]} )"
 
+# least intrusive of all
+CMAKE_BUILD_TYPE=RelWithDebInfo
+
 python_check_deps() {
        ! use test \
                || has_version "dev-python/lit[${PYTHON_USEDEP}]"
@@ -110,9 +113,6 @@ src_prepare() {
        # Python is needed to run tests using lit
        python_setup
 
-       # Allow custom cmake build types (like 'Gentoo')
-       eapply "${FILESDIR}"/9999/0006-cmake-Remove-the-CMAKE_BUILD_TYPE-assertion.patch
-
        # Fix llvm-config for shared linking and sane flags
        # https://bugs.gentoo.org/show_bug.cgi?id=565358
        eapply "${FILESDIR}"/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch