Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libomp/
Date: Sun, 21 Jul 2019 07:34:27
Message-Id: 1563694448.630613486d86067e041ba2aac10c1ca82ab2dd13.mgorny@gentoo
1 commit: 630613486d86067e041ba2aac10c1ca82ab2dd13
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 21 07:14:33 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 21 07:34:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63061348
7
8 sys-libs/libomp: Remove 8.0.9999
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-libs/libomp/libomp-8.0.9999.ebuild | 116 ---------------------------------
13 1 file changed, 116 deletions(-)
14
15 diff --git a/sys-libs/libomp/libomp-8.0.9999.ebuild b/sys-libs/libomp/libomp-8.0.9999.ebuild
16 deleted file mode 100644
17 index 6b3a7bf36aa..00000000000
18 --- a/sys-libs/libomp/libomp-8.0.9999.ebuild
19 +++ /dev/null
20 @@ -1,116 +0,0 @@
21 -# Copyright 1999-2019 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
27 -# (needed due to CMAKE_BUILD_TYPE != Gentoo)
28 -CMAKE_MIN_VERSION=3.7.0-r1
29 -PYTHON_COMPAT=( python2_7 )
30 -
31 -inherit cmake-multilib git-r3 linux-info multiprocessing python-any-r1
32 -
33 -DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
34 -HOMEPAGE="https://openmp.llvm.org"
35 -SRC_URI=""
36 -EGIT_REPO_URI="https://git.llvm.org/git/openmp.git
37 - https://github.com/llvm-mirror/openmp.git"
38 -EGIT_BRANCH="release_80"
39 -
40 -# Additional licenses:
41 -# - MIT-licensed Intel code,
42 -# - LLVM Software Grant from Intel.
43 -
44 -LICENSE="|| ( UoI-NCSA MIT ) MIT LLVM-Grant"
45 -SLOT="0"
46 -KEYWORDS=""
47 -IUSE="cuda hwloc kernel_linux offload ompt test"
48 -# CUDA works only with the x86_64 ABI
49 -REQUIRED_USE="offload? ( cuda? ( abi_x86_64 ) )"
50 -RESTRICT="!test? ( test )"
51 -
52 -RDEPEND="
53 - hwloc? ( sys-apps/hwloc:0=[${MULTILIB_USEDEP}] )
54 - offload? (
55 - virtual/libelf:=[${MULTILIB_USEDEP}]
56 - virtual/libffi:=[${MULTILIB_USEDEP}]
57 - cuda? ( dev-util/nvidia-cuda-toolkit:= )
58 - )"
59 -# tests:
60 -# - dev-python/lit provides the test runner
61 -# - sys-devel/llvm provide test utils (e.g. FileCheck)
62 -# - sys-devel/clang provides the compiler to run tests
63 -DEPEND="${RDEPEND}
64 - dev-lang/perl
65 - offload? ( virtual/pkgconfig[${MULTILIB_USEDEP}] )
66 - test? (
67 - $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]')
68 - >=sys-devel/clang-6
69 - )"
70 -
71 -# least intrusive of all
72 -CMAKE_BUILD_TYPE=RelWithDebInfo
73 -
74 -python_check_deps() {
75 - has_version "dev-python/lit[${PYTHON_USEDEP}]"
76 -}
77 -
78 -kernel_pds_check() {
79 - if use kernel_linux && kernel_is -lt 4 15 && kernel_is -ge 4 13; then
80 - local CONFIG_CHECK="~!SCHED_PDS"
81 - local ERROR_SCHED_PDS="\
82 -PDS scheduler versions >= 0.98c < 0.98i (e.g. used in kernels >= 4.13-pf11
83 -< 4.14-pf9) do not implement sched_yield() call which may result in horrible
84 -performance problems with libomp. If you are using one of the specified
85 -kernel versions, you may want to disable the PDS scheduler."
86 -
87 - check_extra_config
88 - fi
89 -}
90 -
91 -pkg_pretend() {
92 - kernel_pds_check
93 -}
94 -
95 -pkg_setup() {
96 - use test && python-any-r1_pkg_setup
97 -}
98 -
99 -multilib_src_configure() {
100 - local libdir="$(get_libdir)"
101 - local mycmakeargs=(
102 - -DOPENMP_LIBDIR_SUFFIX="${libdir#lib}"
103 -
104 - -DLIBOMP_USE_HWLOC=$(usex hwloc)
105 - -DLIBOMP_OMPT_SUPPORT=$(usex ompt)
106 -
107 - -DOPENMP_ENABLE_LIBOMPTARGET=$(usex offload)
108 -
109 - # do not install libgomp.so & libiomp5.so aliases
110 - -DLIBOMP_INSTALL_ALIASES=OFF
111 - # disable unnecessary hack copying stuff back to srcdir
112 - -DLIBOMP_COPY_EXPORTS=OFF
113 - )
114 - use offload && mycmakeargs+=(
115 - # this is non-fatal and libomp checks for CUDA conditionally
116 - # to ABI, so we can just ignore passing the wrong value
117 - # on non-amd64 ABIs
118 - -DCMAKE_DISABLE_FIND_PACKAGE_CUDA=$(usex !cuda)
119 - )
120 - use test && mycmakeargs+=(
121 - # this project does not use standard LLVM cmake macros
122 - -DOPENMP_LLVM_LIT_EXECUTABLE="${EPREFIX}/usr/bin/lit"
123 - -DOPENMP_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}"
124 -
125 - -DOPENMP_TEST_C_COMPILER="$(type -P "${CHOST}-clang")"
126 - -DOPENMP_TEST_CXX_COMPILER="$(type -P "${CHOST}-clang++")"
127 - )
128 - cmake-utils_src_configure
129 -}
130 -
131 -multilib_src_test() {
132 - # respect TMPDIR!
133 - local -x LIT_PRESERVES_TMP=1
134 -
135 - cmake-utils_src_make check-libomp
136 -}