Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ispc/files/, dev-lang/ispc/
Date: Sun, 25 Jul 2021 01:36:36
Message-Id: 1627176910.8a91f68c7b24c9482f470ddfb4e04fe1cadefafe.ionen@gentoo
1 commit: 8a91f68c7b24c9482f470ddfb4e04fe1cadefafe
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 25 00:50:56 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 25 01:35:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a91f68c
7
8 dev-lang/ispc: drop 1.14.1
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 dev-lang/ispc/Manifest | 1 -
13 .../files/ispc-1.13.0-cmake-gentoo-release.patch | 13 ---
14 dev-lang/ispc/files/ispc-1.13.0-werror.patch | 13 ---
15 dev-lang/ispc/files/ispc-1.14.0-llvm-10.patch | 106 ---------------------
16 dev-lang/ispc/ispc-1.14.1.ebuild | 82 ----------------
17 5 files changed, 215 deletions(-)
18
19 diff --git a/dev-lang/ispc/Manifest b/dev-lang/ispc/Manifest
20 index 30167e29bb8..e70729967c1 100644
21 --- a/dev-lang/ispc/Manifest
22 +++ b/dev-lang/ispc/Manifest
23 @@ -1,2 +1 @@
24 -DIST ispc-1.14.1.tar.gz 19454189 BLAKE2B 615698e64ffbd2c82808d6ddd0b5b90f7c52bb8c202a04364d63af26f0e062631f4a8ad01895c1a4f1a8f11e7f91aec381354ddd873d0a4f2908431dcaabe383 SHA512 468e8a44408047ba7b43dc4baf05c2659093b986e131ebe973954ff3b9cf707a4ed22c705b6e01a9abc9a3911669ab31cd191449442c4ac73112a1297da32c5e
25 DIST ispc-1.16.0.tar.gz 19548153 BLAKE2B 9b6d9329430d59041a76c20332b527560afa47a5585652abdf93aedb7907483d1647c829f2bd3f396cd53301bc79367cd91606b90a543fa8bec2f6ab34452989 SHA512 8469db4e3e9834477345b431162543f1c8e680aa9834c9a50239781dc7febfdde0561c2f13d1387e37f95a18c4376a85cb9cbae33cb614dc8977dfc9f47da215
26
27 diff --git a/dev-lang/ispc/files/ispc-1.13.0-cmake-gentoo-release.patch b/dev-lang/ispc/files/ispc-1.13.0-cmake-gentoo-release.patch
28 deleted file mode 100644
29 index b89e6150400..00000000000
30 --- a/dev-lang/ispc/files/ispc-1.13.0-cmake-gentoo-release.patch
31 +++ /dev/null
32 @@ -1,13 +0,0 @@
33 -diff --git a/CMakeLists.txt b/CMakeLists.txt
34 -index 13e66268..27ff8364 100644
35 ---- a/CMakeLists.txt
36 -+++ b/CMakeLists.txt
37 -@@ -137,7 +137,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin )
38 -
39 - if(CMAKE_BUILD_TYPE)
40 - # Validate build type
41 -- set(CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo")
42 -+ set(CONFIGURATION_TYPES "Debug;Release;RelWithDebInfo;Gentoo")
43 -
44 - string(FIND "${CONFIGURATION_TYPES}" "${CMAKE_BUILD_TYPE}" MATCHED_CONFIG)
45 - if (${MATCHED_CONFIG} EQUAL -1)
46
47 diff --git a/dev-lang/ispc/files/ispc-1.13.0-werror.patch b/dev-lang/ispc/files/ispc-1.13.0-werror.patch
48 deleted file mode 100644
49 index 3fa144b78db..00000000000
50 --- a/dev-lang/ispc/files/ispc-1.13.0-werror.patch
51 +++ /dev/null
52 @@ -1,13 +0,0 @@
53 -diff --git a/CMakeLists.txt b/CMakeLists.txt
54 -index 13e66268..27ff8364 100644
55 ---- a/CMakeLists.txt
56 -+++ b/CMakeLists.txt
57 -@@ -352,7 +352,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE
58 - ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR})
59 - # Compile options
60 - if (UNIX)
61 -- target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-sign-compare -Wno-unused-function -Werror ${LLVM_CPP_FLAGS})
62 -+ target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-sign-compare -Wno-unused-function ${LLVM_CPP_FLAGS})
63 - # Security options
64 - target_compile_options(${PROJECT_NAME} PRIVATE -fstack-protector -fdata-sections -ffunction-sections
65 - -Wformat -Wformat-security -fpie -fwrapv)
66
67 diff --git a/dev-lang/ispc/files/ispc-1.14.0-llvm-10.patch b/dev-lang/ispc/files/ispc-1.14.0-llvm-10.patch
68 deleted file mode 100644
69 index 7a76d99aca8..00000000000
70 --- a/dev-lang/ispc/files/ispc-1.14.0-llvm-10.patch
71 +++ /dev/null
72 @@ -1,106 +0,0 @@
73 -diff --git a/CMakeLists.txt b/CMakeLists.txt
74 -index 13e66268..27ff8364 100644
75 ---- a/CMakeLists.txt
76 -+++ b/CMakeLists.txt
77 -@@ -218,7 +218,7 @@ if (WASM_ENABLED)
78 - list(APPEND ISPC_TARGETS wasm-i32x4)
79 - endif()
80 -
81 --set(CLANG_LIBRARY_LIST clangFrontend clangDriver clangSerialization clangParse clangSema clangAnalysis clangAST clangBasic clangEdit clangLex)
82 -+set(CLANG_LIBRARY_LIST clang clang-cpp)
83 - set(LLVM_COMPONENTS engine ipo bitreader bitwriter instrumentation linker option)
84 -
85 - if (${LLVM_VERSION_NUMBER} VERSION_GREATER_EQUAL "10.0.0")
86 -@@ -402,11 +402,8 @@ if (ISPC_USE_ASAN)
87 - endif()
88 -
89 - # Link against Clang libraries
90 --foreach(clangLib ${CLANG_LIBRARY_LIST})
91 -- find_library(${clangLib}Path NAMES ${clangLib} HINTS ${LLVM_LIBRARY_DIRS})
92 -- list(APPEND CLANG_LIBRARY_FULL_PATH_LIST ${${clangLib}Path})
93 --endforeach()
94 --target_link_libraries(${PROJECT_NAME} ${CLANG_LIBRARY_FULL_PATH_LIST})
95 -+find_package(Clang REQUIRED)
96 -+target_link_libraries(${PROJECT_NAME} ${CLANG_LIBRARY_LIST})
97 -
98 - # Link against LLVM libraries
99 - target_link_libraries(${PROJECT_NAME} ${LLVM_LIBRARY_LIST})
100 -diff --git a/src/llvmutil.cpp b/src/llvmutil.cpp
101 -index 06fab989..57a7130f 100644
102 ---- a/src/llvmutil.cpp
103 -+++ b/src/llvmutil.cpp
104 -@@ -42,6 +42,7 @@
105 - #include <llvm/IR/BasicBlock.h>
106 - #include <llvm/IR/Instructions.h>
107 - #include <llvm/IR/Module.h>
108 -+#include <llvm/Support/raw_ostream.h>
109 -
110 - #ifdef ISPC_GENX_ENABLED
111 - #include <llvm/GenXIntrinsics/GenXIntrinsics.h>
112 -@@ -1394,7 +1395,7 @@ static void lDumpValue(llvm::Value *v, std::set<llvm::Value *> &done) {
113 - return;
114 -
115 - fprintf(stderr, " ");
116 -- v->dump();
117 -+ v->print(llvm::outs(), false);
118 - done.insert(v);
119 -
120 - if (inst == NULL)
121 -diff --git a/src/opt.cpp b/src/opt.cpp
122 -index d78ac374..a607594a 100644
123 ---- a/src/opt.cpp
124 -+++ b/src/opt.cpp
125 -@@ -142,7 +142,7 @@ static llvm::Pass *CreateFixBooleanSelectPass();
126 - getenv("FUNC"), strlen(getenv("FUNC")))))) { \
127 - fprintf(stderr, "Start of " NAME "\n"); \
128 - fprintf(stderr, "---------------\n"); \
129 -- bb.dump(); \
130 -+ bb.print(llvm::outs(), false); \
131 - fprintf(stderr, "---------------\n\n"); \
132 - } else /* eat semicolon */
133 -
134 -@@ -152,7 +152,7 @@ static llvm::Pass *CreateFixBooleanSelectPass();
135 - getenv("FUNC"), strlen(getenv("FUNC")))))) { \
136 - fprintf(stderr, "End of " NAME " %s\n", modifiedAny ? "** CHANGES **" : ""); \
137 - fprintf(stderr, "---------------\n"); \
138 -- bb.dump(); \
139 -+ bb.print(llvm::outs(), false); \
140 - fprintf(stderr, "---------------\n\n"); \
141 - } else /* eat semicolon */
142 - #else
143 -@@ -453,7 +453,7 @@ void Optimize(llvm::Module *module, int optLevel) {
144 - #ifndef ISPC_NO_DUMPS
145 - if (g->debugPrint) {
146 - printf("*** Code going into optimization ***\n");
147 -- module->dump();
148 -+ module->print(llvm::outs(), nullptr);
149 - }
150 - #endif
151 - DebugPassManager optPM;
152 -@@ -666,7 +666,7 @@ void Optimize(llvm::Module *module, int optLevel) {
153 - #ifndef ISPC_NO_DUMPS
154 - if (g->debugPrint) {
155 - printf("\n*****\nFINAL OUTPUT\n*****\n");
156 -- module->dump();
157 -+ module->print(llvm::outs(), nullptr);
158 - }
159 - #endif
160 - }
161 -@@ -4256,7 +4256,7 @@ char DebugPass::ID = 0;
162 - bool DebugPass::runOnModule(llvm::Module &module) {
163 - fprintf(stderr, "%s", str_output);
164 - fflush(stderr);
165 -- module.dump();
166 -+ module.print(llvm::outs(), nullptr);
167 - return true;
168 - }
169 -
170 -@@ -4303,7 +4303,7 @@ void DebugPassFile::run(llvm::Module &module, bool init) {
171 - snprintf(fname, sizeof(fname), "%s_%d_%s.ll", init ? "init" : "ir", pnum, sanitize(std::string(pname)).c_str());
172 - llvm::raw_fd_ostream OS(fname, EC, llvm::sys::fs::F_None);
173 - Assert(!EC && "IR dump file creation failed!");
174 -- module.print(OS, 0);
175 -+ module.print(OS, nullptr);
176 - }
177 -
178 - bool DebugPassFile::runOnModule(llvm::Module &module) {
179
180 diff --git a/dev-lang/ispc/ispc-1.14.1.ebuild b/dev-lang/ispc/ispc-1.14.1.ebuild
181 deleted file mode 100644
182 index d05dbeb20bd..00000000000
183 --- a/dev-lang/ispc/ispc-1.14.1.ebuild
184 +++ /dev/null
185 @@ -1,82 +0,0 @@
186 -# Copyright 1999-2020 Gentoo Authors
187 -# Distributed under the terms of the GNU General Public License v2
188 -
189 -EAPI=7
190 -
191 -PYTHON_COMPAT=( python3_{7,8,9} )
192 -
193 -inherit cmake toolchain-funcs python-any-r1 llvm
194 -
195 -LLVM_MAX_SLOT=10
196 -
197 -DESCRIPTION="Intel SPMD Program Compiler"
198 -HOMEPAGE="https://ispc.github.com/"
199 -
200 -if [[ ${PV} = *9999 ]]; then
201 - inherit git-r3
202 - EGIT_REPO_URI="https://github.com/ispc/ispc.git"
203 -else
204 - SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
205 - KEYWORDS="~amd64 ~x86"
206 -fi
207 -
208 -LICENSE="BSD BSD-2 UoI-NCSA"
209 -SLOT="0"
210 -IUSE="examples"
211 -
212 -RDEPEND="<sys-devel/clang-11:="
213 -
214 -DEPEND="
215 - ${RDEPEND}
216 - ${PYTHON_DEPS}
217 - "
218 -BDEPEND="
219 - sys-devel/bison
220 - sys-devel/flex
221 - "
222 -
223 -PATCHES=(
224 - "${FILESDIR}/${PN}-1.13.0-cmake-gentoo-release.patch"
225 - "${FILESDIR}/${PN}-1.14.0-llvm-10.patch"
226 - "${FILESDIR}/${PN}-1.13.0-werror.patch"
227 -)
228 -
229 -llvm_check_deps() {
230 - has_version -d "sys-devel/clang:${LLVM_SLOT}"
231 -}
232 -
233 -src_prepare() {
234 - if use amd64; then
235 - # On amd64 systems, build system enables x86/i686 build too.
236 - # This ebuild doesn't even have multilib support, nor need it.
237 - # https://bugs.gentoo.org/730062
238 - elog "Removing auto-x86 build on amd64"
239 - sed -i -e 's:set(target_arch "i686"):return():' cmake/GenerateBuiltins.cmake || die
240 - fi
241 -
242 - cmake_src_prepare
243 -}
244 -
245 -src_configure() {
246 - local mycmakeargs=(
247 - "-DARM_ENABLED=$(usex arm)"
248 - "-DCMAKE_SKIP_RPATH=ON"
249 - )
250 - cmake_src_configure
251 -}
252 -
253 -src_install() {
254 - dobin "${BUILD_DIR}"/bin/ispc
255 - dodoc README.md
256 -
257 - if use examples; then
258 - insinto "/usr/share/doc/${PF}/examples"
259 - docompress -x "/usr/share/doc/${PF}/examples"
260 - doins -r "${BUILD_DIR}"/examples/*
261 - fi
262 -}
263 -
264 -src_test() {
265 - # Inject path to prevent using system ispc
266 - PATH="${BUILD_DIR}/bin:${PATH}" ${EPYTHON} run_tests.py || die "Testing failed under ${EPYTHON}"
267 -}