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/files/4.0.1/, sys-libs/libomp/
Date: Sun, 10 Mar 2019 19:57:13
Message-Id: 1552247575.17219f692c0d17c1d91d454c0b2fa32bcad3f40e.mgorny@gentoo
1 commit: 17219f692c0d17c1d91d454c0b2fa32bcad3f40e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 10 18:20:43 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 10 19:52:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17219f69
7
8 sys-libs/libomp: Drop <6
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-libs/libomp/Manifest | 2 -
13 ...-link-latomic-to-provide-atomics-when-ava.patch | 94 ---------------------
14 sys-libs/libomp/libomp-4.0.1.ebuild | 97 ----------------------
15 sys-libs/libomp/libomp-5.0.2.ebuild | 90 --------------------
16 4 files changed, 283 deletions(-)
17
18 diff --git a/sys-libs/libomp/Manifest b/sys-libs/libomp/Manifest
19 index f9c3bf2b601..73eed77869d 100644
20 --- a/sys-libs/libomp/Manifest
21 +++ b/sys-libs/libomp/Manifest
22 @@ -1,5 +1,3 @@
23 -DIST openmp-4.0.1.src.tar.xz 2275240 BLAKE2B e63cf670c4cd2678afc4d7b96be85c3d157bf91a69510f980d9a0a07f61b449b22ff28d63753f32e63afedb4a7077c662a633f689a660b5047a83bcf1fb7f009 SHA512 0b737dde832c5907a0cac41fe1d594b61e85dd405eee42b39f09233db62b44543204ccc775e52e2981f9c9f0683b234526e288a3a7a04f712280fb3a575abcaf
24 -DIST openmp-5.0.2.src.tar.xz 2081560 BLAKE2B fbe41c6aaf4c8e961253609a598bec531ab4685cd8c307ab2528b9d7553eaa38122ee02a2c4d481454f9233c062b3a24bb174a182702a183907a3d15a10a9655 SHA512 511895ca6049c17de81ad86c39dcb940a7c1a793005e16d33e58d72ad47f62b8cb61003c234a7544a88e79f25d2c86e9df834f90d37ccbd4b47f71c369e90437
25 DIST openmp-6.0.1.src.tar.xz 2048320 BLAKE2B 08b3a7051c985903f78331f55a1c6e928399b87c862c43c991e9bf78b66b6e412fc96f202b82c051176dbbe02422f8ceb7414f44ea8f3522f418e515c0f70c62 SHA512 abb956583e5d11d0c6f6d97183c081d658616a74933be884a591eaa3d8c4bb04f08f02016d2c86d7384c7ff1aa44fb949b0d967fc0ff50e3132aaba412e9add8
26 DIST openmp-7.0.1.src.tar.xz 909316 BLAKE2B b8adbf67738b8d2d2d42b45b24aabd2f5e65a7b9cdda0d4a62511808c2101d9bb925b4904a9ecb98f77a1b7f38f13408fea6f724748183f9d5f5419c3fdeac54 SHA512 2062db8b87bce2c130bab528a6d654cb05b3de7641737552fc263724ceaa5e322afc2787796a0bddcda8d1bdf913a49f5a0180abcc57f8842b7e8ea8df4d6f51
27 DIST openmp-8.0.0rc2.src.tar.xz 934468 BLAKE2B e3496bc58a86282ac75417b98675f490c7a4c94038d5e79ef48b14ad4adcfcadc883caade3f9b8f6d189250cfb770a63984baca982e1295058f200494aaaf0f7 SHA512 56c73affd5533c40123464218d225a25f47fdf93fe3e1288f6c4ff6743ee745929ecc881334ded2aae193786366397a9add60aa6b3675631548980f80d9ac6c9
28
29 diff --git a/sys-libs/libomp/files/4.0.1/0001-test-Try-to-link-latomic-to-provide-atomics-when-ava.patch b/sys-libs/libomp/files/4.0.1/0001-test-Try-to-link-latomic-to-provide-atomics-when-ava.patch
30 deleted file mode 100644
31 index 68817558326..00000000000
32 --- a/sys-libs/libomp/files/4.0.1/0001-test-Try-to-link-latomic-to-provide-atomics-when-ava.patch
33 +++ /dev/null
34 @@ -1,94 +0,0 @@
35 -From 7bd70635240f69fcd4da4d98a4aca8aaa779dd11 Mon Sep 17 00:00:00 2001
36 -From: Michal Gorny <mgorny@g.o>
37 -Date: Fri, 24 Feb 2017 22:15:24 +0000
38 -Subject: [PATCH] [test] Try to link -latomic to provide atomics when available
39 -
40 -When using -rtlib=libgcc, the fallback implementation of __atomic_*
41 -builtins is provided via libatomic (included in GCC). However, neither
42 -GCC itself nor clang link libatomic implicitly, and it seems that GCC
43 -upstream expects projects to link it explicitly as necessary.
44 -
45 -Since compiler-rt provides __atomic_* builtins directly in the main
46 -library, check if they are provided by the default libraries first.
47 -If they are not, check if -latomic is available to provide them
48 -and add explicit -latomic for tests in this case.
49 -
50 -This fixes unresolved __atomic_load() references when running openmp
51 -tests on i386 with libgcc backend.
52 -
53 -Differential Revision: https://reviews.llvm.org/D30083
54 -
55 -git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@296183 91177308-0d34-0410-b5e6-96231b3b80d8
56 ----
57 - runtime/test/CMakeLists.txt | 13 +++++++++++++
58 - runtime/test/lit.cfg | 2 ++
59 - runtime/test/lit.site.cfg.in | 2 +-
60 - 3 files changed, 16 insertions(+), 1 deletion(-)
61 -
62 -diff --git a/runtime/test/CMakeLists.txt b/runtime/test/CMakeLists.txt
63 -index 8162855..88c02c8 100644
64 ---- a/runtime/test/CMakeLists.txt
65 -+++ b/runtime/test/CMakeLists.txt
66 -@@ -1,6 +1,7 @@
67 - # CMakeLists.txt file for unit testing OpenMP Library
68 - include(FindPythonInterp)
69 - include(CheckTypeSize)
70 -+include(CheckFunctionExists)
71 - include(CheckLibraryExists)
72 -
73 - if(NOT PYTHONINTERP_FOUND)
74 -@@ -11,6 +12,17 @@ endif()
75 -
76 - # Some tests use math functions
77 - check_library_exists(m sqrt "" LIBOMP_HAVE_LIBM)
78 -+# When using libgcc, -latomic may be needed for atomics
79 -+# (but when using compiler-rt, the atomics will be built-in)
80 -+# Note: we can not check for __atomic_load because clang treats it
81 -+# as special built-in and that breaks CMake checks
82 -+check_function_exists(__atomic_load_1 LIBOMP_HAVE_BUILTIN_ATOMIC)
83 -+if(NOT LIBOMP_HAVE_BUILTIN_ATOMIC)
84 -+ check_library_exists(atomic __atomic_load_1 "" LIBOMP_HAVE_LIBATOMIC)
85 -+else()
86 -+ # not needed
87 -+ set(LIBOMP_HAVE_LIBATOMIC 0)
88 -+endif()
89 -
90 - macro(pythonize_bool var)
91 - if (${var})
92 -@@ -25,6 +37,7 @@ pythonize_bool(LIBOMP_OMPT_SUPPORT)
93 - pythonize_bool(LIBOMP_OMPT_BLAME)
94 - pythonize_bool(LIBOMP_OMPT_TRACE)
95 - pythonize_bool(LIBOMP_HAVE_LIBM)
96 -+pythonize_bool(LIBOMP_HAVE_LIBATOMIC)
97 -
98 - set(LIBOMP_TEST_CFLAGS "" CACHE STRING
99 - "Extra compiler flags to send to the test compiler")
100 -diff --git a/runtime/test/lit.cfg b/runtime/test/lit.cfg
101 -index 7f18da4..bef61d4 100644
102 ---- a/runtime/test/lit.cfg
103 -+++ b/runtime/test/lit.cfg
104 -@@ -52,6 +52,8 @@ config.test_cflags = config.test_openmp_flag + \
105 - libs = ""
106 - if config.has_libm:
107 - libs += " -lm"
108 -+if config.has_libatomic:
109 -+ libs += " -latomic"
110 -
111 - # Allow XFAIL to work
112 - config.target_triple = [ ]
113 -diff --git a/runtime/test/lit.site.cfg.in b/runtime/test/lit.site.cfg.in
114 -index 448132e..b0d57ce 100644
115 ---- a/runtime/test/lit.site.cfg.in
116 -+++ b/runtime/test/lit.site.cfg.in
117 -@@ -12,7 +12,7 @@ config.hwloc_library_dir = "@LIBOMP_HWLOC_LIBRARY_DIR@"
118 - config.using_hwloc = @LIBOMP_USE_HWLOC@
119 - config.has_ompt = @LIBOMP_OMPT_SUPPORT@ and @LIBOMP_OMPT_BLAME@ and @LIBOMP_OMPT_TRACE@
120 - config.has_libm = @LIBOMP_HAVE_LIBM@
121 -+config.has_libatomic = @LIBOMP_HAVE_LIBATOMIC@
122 -
123 - # Let the main config do the real work.
124 - lit_config.load_config(config, "@LIBOMP_BASE_DIR@/test/lit.cfg")
125 --
126 ---
127 -2.12.0
128 -
129
130 diff --git a/sys-libs/libomp/libomp-4.0.1.ebuild b/sys-libs/libomp/libomp-4.0.1.ebuild
131 deleted file mode 100644
132 index 7b78f15ca8d..00000000000
133 --- a/sys-libs/libomp/libomp-4.0.1.ebuild
134 +++ /dev/null
135 @@ -1,97 +0,0 @@
136 -# Copyright 1999-2017 Gentoo Foundation
137 -# Distributed under the terms of the GNU General Public License v2
138 -
139 -EAPI=6
140 -
141 -: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
142 -# (needed due to CMAKE_BUILD_TYPE != Gentoo)
143 -CMAKE_MIN_VERSION=3.7.0-r1
144 -PYTHON_COMPAT=( python2_7 )
145 -
146 -inherit cmake-multilib linux-info python-any-r1
147 -
148 -DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
149 -HOMEPAGE="https://openmp.llvm.org"
150 -SRC_URI="https://releases.llvm.org/${PV/_//}/openmp-${PV/_/}.src.tar.xz"
151 -
152 -# Additional licenses:
153 -# - MIT-licensed Intel code,
154 -# - LLVM Software Grant from Intel.
155 -
156 -LICENSE="|| ( UoI-NCSA MIT ) MIT LLVM-Grant"
157 -SLOT="0"
158 -KEYWORDS="amd64 ~arm64 x86"
159 -IUSE="hwloc kernel_linux ompt test"
160 -RESTRICT="!test? ( test )"
161 -
162 -RDEPEND="hwloc? ( sys-apps/hwloc:0=[${MULTILIB_USEDEP}] )"
163 -# tests:
164 -# - dev-python/lit provides the test runner
165 -# - sys-devel/llvm provide test utils (e.g. FileCheck)
166 -# - sys-devel/clang provides the compiler to run tests
167 -DEPEND="${RDEPEND}
168 - dev-lang/perl
169 - test? (
170 - $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]')
171 - sys-devel/llvm
172 - >=sys-devel/clang-3.9.0
173 - )"
174 -
175 -S=${WORKDIR}/openmp-${PV/_/}.src
176 -
177 -# least intrusive of all
178 -CMAKE_BUILD_TYPE=RelWithDebInfo
179 -
180 -python_check_deps() {
181 - has_version "dev-python/lit[${PYTHON_USEDEP}]"
182 -}
183 -
184 -kernel_pds_check() {
185 - if use kernel_linux && kernel_is -lt 4 15 && kernel_is -ge 4 13; then
186 - local CONFIG_CHECK="~!SCHED_PDS"
187 - local ERROR_SCHED_PDS="\
188 -PDS scheduler versions >= 0.98c < 0.98i (e.g. used in kernels >= 4.13-pf11
189 -< 4.14-pf9) do not implement sched_yield() call which may result in horrible
190 -performance problems with libomp. If you are using one of the specified
191 -kernel versions, you may want to disable the PDS scheduler."
192 -
193 - check_extra_config
194 - fi
195 -}
196 -
197 -pkg_pretend() {
198 - kernel_pds_check
199 -}
200 -
201 -pkg_setup() {
202 - use test && python-any-r1_pkg_setup
203 -}
204 -
205 -src_prepare() {
206 - # fix atomic tests with gcc
207 - eapply "${FILESDIR}"/4.0.1/0001-test-Try-to-link-latomic-to-provide-atomics-when-ava.patch
208 -
209 - cmake-utils_src_prepare
210 -}
211 -
212 -multilib_src_configure() {
213 - local libdir="$(get_libdir)"
214 - local mycmakeargs=(
215 - -DLIBOMP_LIBDIR_SUFFIX="${libdir#lib}"
216 - -DLIBOMP_USE_HWLOC=$(usex hwloc)
217 - -DLIBOMP_OMPT_SUPPORT=$(usex ompt)
218 - # do not install libgomp.so & libiomp5.so aliases
219 - -DLIBOMP_INSTALL_ALIASES=OFF
220 - # disable unnecessary hack copying stuff back to srcdir
221 - -DLIBOMP_COPY_EXPORTS=OFF
222 - -DLIBOMP_TEST_COMPILER="$(type -P "${CHOST}-clang")"
223 - )
224 - cmake-utils_src_configure
225 -}
226 -
227 -multilib_src_test() {
228 - # respect TMPDIR!
229 - local -x LIT_PRESERVES_TMP=1
230 -
231 - cmake-utils_src_make check-libomp
232 -}
233
234 diff --git a/sys-libs/libomp/libomp-5.0.2.ebuild b/sys-libs/libomp/libomp-5.0.2.ebuild
235 deleted file mode 100644
236 index 38e97e4bf43..00000000000
237 --- a/sys-libs/libomp/libomp-5.0.2.ebuild
238 +++ /dev/null
239 @@ -1,90 +0,0 @@
240 -# Copyright 1999-2018 Gentoo Foundation
241 -# Distributed under the terms of the GNU General Public License v2
242 -
243 -EAPI=6
244 -
245 -: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
246 -# (needed due to CMAKE_BUILD_TYPE != Gentoo)
247 -CMAKE_MIN_VERSION=3.7.0-r1
248 -PYTHON_COMPAT=( python2_7 )
249 -
250 -inherit cmake-multilib linux-info python-any-r1
251 -
252 -DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
253 -HOMEPAGE="https://openmp.llvm.org"
254 -SRC_URI="https://releases.llvm.org/${PV/_//}/openmp-${PV/_/}.src.tar.xz"
255 -
256 -# Additional licenses:
257 -# - MIT-licensed Intel code,
258 -# - LLVM Software Grant from Intel.
259 -
260 -LICENSE="|| ( UoI-NCSA MIT ) MIT LLVM-Grant"
261 -SLOT="0"
262 -KEYWORDS="amd64 ~arm64 ~ppc64 x86 ~amd64-linux ~x64-macos"
263 -IUSE="hwloc kernel_linux ompt test"
264 -RESTRICT="!test? ( test )"
265 -
266 -RDEPEND="hwloc? ( sys-apps/hwloc:0=[${MULTILIB_USEDEP}] )"
267 -# tests:
268 -# - dev-python/lit provides the test runner
269 -# - sys-devel/llvm provide test utils (e.g. FileCheck)
270 -# - sys-devel/clang provides the compiler to run tests
271 -DEPEND="${RDEPEND}
272 - dev-lang/perl
273 - test? (
274 - $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]')
275 - sys-devel/llvm
276 - >=sys-devel/clang-3.9.0
277 - )"
278 -
279 -S=${WORKDIR}/openmp-${PV/_/}.src
280 -
281 -# least intrusive of all
282 -CMAKE_BUILD_TYPE=RelWithDebInfo
283 -
284 -python_check_deps() {
285 - has_version "dev-python/lit[${PYTHON_USEDEP}]"
286 -}
287 -
288 -kernel_pds_check() {
289 - if use kernel_linux && kernel_is -lt 4 15 && kernel_is -ge 4 13; then
290 - local CONFIG_CHECK="~!SCHED_PDS"
291 - local ERROR_SCHED_PDS="\
292 -PDS scheduler versions >= 0.98c < 0.98i (e.g. used in kernels >= 4.13-pf11
293 -< 4.14-pf9) do not implement sched_yield() call which may result in horrible
294 -performance problems with libomp. If you are using one of the specified
295 -kernel versions, you may want to disable the PDS scheduler."
296 -
297 - check_extra_config
298 - fi
299 -}
300 -
301 -pkg_pretend() {
302 - kernel_pds_check
303 -}
304 -
305 -pkg_setup() {
306 - use test && python-any-r1_pkg_setup
307 -}
308 -
309 -multilib_src_configure() {
310 - local libdir="$(get_libdir)"
311 - local mycmakeargs=(
312 - -DLIBOMP_LIBDIR_SUFFIX="${libdir#lib}"
313 - -DLIBOMP_USE_HWLOC=$(usex hwloc)
314 - -DLIBOMP_OMPT_SUPPORT=$(usex ompt)
315 - # do not install libgomp.so & libiomp5.so aliases
316 - -DLIBOMP_INSTALL_ALIASES=OFF
317 - # disable unnecessary hack copying stuff back to srcdir
318 - -DLIBOMP_COPY_EXPORTS=OFF
319 - -DLIBOMP_TEST_COMPILER="$(type -P "${CHOST}-clang")"
320 - )
321 - cmake-utils_src_configure
322 -}
323 -
324 -multilib_src_test() {
325 - # respect TMPDIR!
326 - local -x LIT_PRESERVES_TMP=1
327 -
328 - cmake-utils_src_make check-libomp
329 -}