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: dev-util/creduce/files/, dev-util/creduce/
Date: Fri, 01 May 2020 08:54:10
Message-Id: 1588323215.7f6a7c736d4e6cc2f5c51e2353e18a8d30c030d8.mgorny@gentoo
1 commit: 7f6a7c736d4e6cc2f5c51e2353e18a8d30c030d8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 1 08:44:49 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 1 08:53:35 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f6a7c73
7
8 dev-util/creduce: Remove old (LLVM 7)
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-util/creduce/Manifest | 3 -
13 dev-util/creduce/creduce-2.8.0.ebuild | 38 ---------
14 .../creduce/creduce-2.8.0_pre20180411-r1.ebuild | 42 ----------
15 .../creduce/creduce-2.9.0_pre20190414-r1.ebuild | 39 ----------
16 dev-util/creduce/creduce-9999.ebuild | 39 ----------
17 .../creduce/files/creduce-2.8.0-link-libs.patch | 31 --------
18 dev-util/creduce/files/creduce-llvm-7.patch | 90 ----------------------
19 7 files changed, 282 deletions(-)
20
21 diff --git a/dev-util/creduce/Manifest b/dev-util/creduce/Manifest
22 index a67e6fd5af6..cb6764e980e 100644
23 --- a/dev-util/creduce/Manifest
24 +++ b/dev-util/creduce/Manifest
25 @@ -1,4 +1 @@
26 -DIST creduce-095c551a5f9ccaf2986edb836e7be9872d36c233.tar.gz 724597 BLAKE2B 9d7a57349b8e14599c795a27bdf2cb4536f5b41f02faf10263c3d883bf94efd83ce7483bbf72aee0c2fe00d8515490e5f5a9c8df575abe80e90231a4373c9318 SHA512 a317bae5e47ee85b4be401d8dae490bd0ba86640aff6e7b0e9d6fe14d1f87199b4e12edbfa3eddcb5341b926a753dae17131f5e571362849c01377eda00407fa
27 -DIST creduce-2.8.0.tar.gz 774668 BLAKE2B d799372d107c0cb45e9ed95f82c29634fd9de053c4eda1a2dfce8b2152ca84f7fff5e7b679e21e6dbe869d139e1cfd73963c02751ad30809a3470316ce10e077 SHA512 9d616dc421d0e932656ab0220ebfe1a4f20a08d46bf4ee004ef96a693ff37caeadf96c769262574a9789ac52c2bb4586e2b8602f7d44b627229b8eb45f5af0ea
28 DIST creduce-2a4480eb6cb72b3d2d131b536c883cc6d41bdcaa.tar.gz 732121 BLAKE2B dad2cf8ec2453a6b210a5303480e7dabfd978b7d7a1326cbc1e4ca40fa7c4e7d18da5f9309ca5f392740bbf55a1c9863e389c9789fceff062a68e9bb9a79de9f SHA512 c598f5c998f0a02d57006e640f88b951cd33a24f24507d6671067842b81bb3fe37c2fccd040b6cedb6fd5857396213e4003ee5fbd3040058050bad67226dc27f
29 -DIST creduce-48e622ba74bc35c5a81299d3a34b9b14038d6a70.tar.gz 720872 BLAKE2B 031104f5e7ca3d3cfb41087f432ec0cf1b1c125171ffac31b6f3b0a9a4483b5ca8a667331aacae7f5acdaaf99e8b688bb62b332405c1266d2b114a4bdceca9cc SHA512 36cc12015d85acfa99f0d04440184517da1f766df7a804ee02719f1208f67aff4f4db7af4066817b17efdc89a6d2cf7ab62b0c622a611bc9b03a89b8d1b68d01
30
31 diff --git a/dev-util/creduce/creduce-2.8.0.ebuild b/dev-util/creduce/creduce-2.8.0.ebuild
32 deleted file mode 100644
33 index 78b23f9fd6b..00000000000
34 --- a/dev-util/creduce/creduce-2.8.0.ebuild
35 +++ /dev/null
36 @@ -1,38 +0,0 @@
37 -# Copyright 1999-2019 Gentoo Authors
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI="6"
41 -
42 -: ${CMAKE_MAKEFILE_GENERATOR=ninja}
43 -inherit cmake-utils llvm
44 -
45 -DESCRIPTION="C-Reduce - a plugin-based C program reducer"
46 -HOMEPAGE="https://embed.cs.utah.edu/creduce/"
47 -SRC_URI="https://embed.cs.utah.edu/creduce/${P}.tar.gz"
48 -
49 -LICENSE="UoI-NCSA"
50 -SLOT="0"
51 -KEYWORDS="~amd64 ~x86"
52 -IUSE=""
53 -
54 -LLVM_MAX_SLOT=7
55 -
56 -COMMON_DEPEND="
57 - >=dev-lang/perl-5.10.0
58 - sys-devel/clang:${LLVM_MAX_SLOT}"
59 -RDEPEND="${COMMON_DEPEND}
60 - dev-perl/Exporter-Lite
61 - dev-perl/File-Which
62 - dev-perl/Getopt-Tabular
63 - dev-perl/Regexp-Common"
64 -DEPEND="${COMMON_DEPEND}
65 - sys-devel/flex"
66 -
67 -PATCHES=(
68 - "${FILESDIR}"/creduce-llvm-7.patch
69 - "${FILESDIR}"/creduce-2.8.0-link-libs.patch
70 -)
71 -
72 -llvm_check_deps() {
73 - has_version "sys-devel/clang:${LLVM_SLOT}"
74 -}
75
76 diff --git a/dev-util/creduce/creduce-2.8.0_pre20180411-r1.ebuild b/dev-util/creduce/creduce-2.8.0_pre20180411-r1.ebuild
77 deleted file mode 100644
78 index 0249ee3b93d..00000000000
79 --- a/dev-util/creduce/creduce-2.8.0_pre20180411-r1.ebuild
80 +++ /dev/null
81 @@ -1,42 +0,0 @@
82 -# Copyright 1999-2019 Gentoo Authors
83 -# Distributed under the terms of the GNU General Public License v2
84 -
85 -EAPI="6"
86 -
87 -: ${CMAKE_MAKEFILE_GENERATOR=ninja}
88 -inherit cmake-utils llvm
89 -
90 -EGIT_COMMIT="48e622ba74bc35c5a81299d3a34b9b14038d6a70"
91 -
92 -DESCRIPTION="C-Reduce - a plugin-based C program reducer"
93 -HOMEPAGE="https://embed.cs.utah.edu/creduce/"
94 -SRC_URI="https://github.com/csmith-project/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${EGIT_COMMIT}.tar.gz"
95 -
96 -LICENSE="UoI-NCSA"
97 -SLOT="0"
98 -KEYWORDS="~amd64 ~x86"
99 -IUSE=""
100 -
101 -LLVM_MAX_SLOT=7
102 -
103 -COMMON_DEPEND="
104 - >=dev-lang/perl-5.10.0
105 - sys-devel/clang:${LLVM_MAX_SLOT}"
106 -RDEPEND="${COMMON_DEPEND}
107 - dev-perl/Exporter-Lite
108 - dev-perl/File-Which
109 - dev-perl/Getopt-Tabular
110 - dev-perl/Regexp-Common
111 - dev-perl/Sys-CPU"
112 -DEPEND="${COMMON_DEPEND}
113 - sys-devel/flex"
114 -
115 -S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
116 -
117 -PATCHES=(
118 - "${FILESDIR}"/creduce-llvm-7.patch
119 -)
120 -
121 -llvm_check_deps() {
122 - has_version "sys-devel/clang:${LLVM_SLOT}"
123 -}
124
125 diff --git a/dev-util/creduce/creduce-2.9.0_pre20190414-r1.ebuild b/dev-util/creduce/creduce-2.9.0_pre20190414-r1.ebuild
126 deleted file mode 100644
127 index 15624685b35..00000000000
128 --- a/dev-util/creduce/creduce-2.9.0_pre20190414-r1.ebuild
129 +++ /dev/null
130 @@ -1,39 +0,0 @@
131 -# Copyright 1999-2019 Gentoo Authors
132 -# Distributed under the terms of the GNU General Public License v2
133 -
134 -EAPI="6"
135 -
136 -: ${CMAKE_MAKEFILE_GENERATOR=ninja}
137 -inherit cmake-utils llvm
138 -
139 -EGIT_COMMIT="095c551a5f9ccaf2986edb836e7be9872d36c233"
140 -DESCRIPTION="C-Reduce - a plugin-based C program reducer"
141 -HOMEPAGE="https://embed.cs.utah.edu/creduce/"
142 -SRC_URI="https://github.com/csmith-project/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${PN}-${EGIT_COMMIT}.tar.gz"
143 -
144 -LICENSE="UoI-NCSA"
145 -SLOT="0"
146 -KEYWORDS="~amd64 ~x86"
147 -IUSE=""
148 -
149 -LLVM_MAX_SLOT=7
150 -
151 -COMMON_DEPEND="
152 - >=dev-lang/perl-5.10.0
153 - sys-devel/clang:${LLVM_MAX_SLOT}"
154 -RDEPEND="${COMMON_DEPEND}
155 - dev-perl/Exporter-Lite
156 - dev-perl/File-Which
157 - dev-perl/Getopt-Tabular
158 - dev-perl/Regexp-Common"
159 -DEPEND="${COMMON_DEPEND}
160 - sys-devel/flex"
161 -S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
162 -
163 -PATCHES=(
164 - "${FILESDIR}"/creduce-2.8.0-link-libs.patch
165 -)
166 -
167 -llvm_check_deps() {
168 - has_version "sys-devel/clang:${LLVM_SLOT}"
169 -}
170
171 diff --git a/dev-util/creduce/creduce-9999.ebuild b/dev-util/creduce/creduce-9999.ebuild
172 deleted file mode 100644
173 index 8b8470de887..00000000000
174 --- a/dev-util/creduce/creduce-9999.ebuild
175 +++ /dev/null
176 @@ -1,39 +0,0 @@
177 -# Copyright 1999-2019 Gentoo Authors
178 -# Distributed under the terms of the GNU General Public License v2
179 -
180 -EAPI="6"
181 -
182 -EGIT_REPO_URI="https://github.com/csmith-project/${PN}"
183 -
184 -: ${CMAKE_MAKEFILE_GENERATOR=ninja}
185 -inherit cmake-utils git-r3 llvm
186 -
187 -DESCRIPTION="C-Reduce - a plugin-based C program reducer"
188 -HOMEPAGE="https://embed.cs.utah.edu/creduce/"
189 -SRC_URI=""
190 -
191 -LICENSE="UoI-NCSA"
192 -SLOT="0"
193 -KEYWORDS=""
194 -IUSE=""
195 -
196 -LLVM_MAX_SLOT=7
197 -
198 -COMMON_DEPEND="
199 - >=dev-lang/perl-5.10.0
200 - sys-devel/clang:${LLVM_MAX_SLOT}"
201 -RDEPEND="${COMMON_DEPEND}
202 - dev-perl/Exporter-Lite
203 - dev-perl/File-Which
204 - dev-perl/Getopt-Tabular
205 - dev-perl/Regexp-Common"
206 -DEPEND="${COMMON_DEPEND}
207 - sys-devel/flex"
208 -
209 -PATCHES=(
210 - "${FILESDIR}"/creduce-2.8.0-link-libs.patch
211 -)
212 -
213 -llvm_check_deps() {
214 - has_version "sys-devel/clang:${LLVM_SLOT}"
215 -}
216
217 diff --git a/dev-util/creduce/files/creduce-2.8.0-link-libs.patch b/dev-util/creduce/files/creduce-2.8.0-link-libs.patch
218 deleted file mode 100644
219 index 25e9ef22916..00000000000
220 --- a/dev-util/creduce/files/creduce-2.8.0-link-libs.patch
221 +++ /dev/null
222 @@ -1,31 +0,0 @@
223 -From 885a675474d93ae4ef929de7520d3ac38ba39156 Mon Sep 17 00:00:00 2001
224 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
225 -Date: Sun, 21 Apr 2019 14:20:34 +0200
226 -Subject: [PATCH] Revert "Do not list `LLVM_LIBS` in the
227 - `target_link_libraries`."
228 -
229 -This breaks linking against shared LLVM.
230 ----
231 - clang_delta/CMakeLists.txt | 6 +-----
232 - 1 file changed, 1 insertion(+), 5 deletions(-)
233 -
234 -diff --git a/clang_delta/CMakeLists.txt b/clang_delta/CMakeLists.txt
235 -index 6493abf..ab1dc42 100644
236 ---- a/clang_delta/CMakeLists.txt
237 -+++ b/clang_delta/CMakeLists.txt
238 -@@ -242,11 +242,7 @@ add_executable(clang_delta
239 - git_version.h
240 - )
241 -
242 --# ENE, LLVM 6.0: LLVM_LIBS end up in the link command line anyway. I'm not
243 --# quite sure why! But if you list LLVM_LIBS here, the `clang_delta' binary
244 --# can end up with dynamic link errors when it runs (multiply defined symbols).
245 --#
246 --target_link_libraries(clang_delta ${CLANG_LIBS})
247 -+target_link_libraries(clang_delta ${CLANG_LIBS} ${LLVM_LIBS})
248 -
249 - # Custom target for running clang_delta tests
250 - #
251 ---
252 -2.21.0
253 -
254
255 diff --git a/dev-util/creduce/files/creduce-llvm-7.patch b/dev-util/creduce/files/creduce-llvm-7.patch
256 deleted file mode 100644
257 index a005eebff2e..00000000000
258 --- a/dev-util/creduce/files/creduce-llvm-7.patch
259 +++ /dev/null
260 @@ -1,90 +0,0 @@
261 -From c0d9c3a2ef763eb09f0a70b8ad86250598549487 Mon Sep 17 00:00:00 2001
262 -From: Yang Chen <chenyang@×××××××.edu>
263 -Date: Fri, 28 Sep 2018 00:39:22 -0700
264 -Subject: [PATCH] building with LLVM 7.0
265 -
266 -cope with some API changes for LLVM 7.0
267 ----
268 - clang_delta/ExpressionDetector.cpp | 20 +++++++++++---------
269 - clang_delta/RemoveUnusedEnumMember.cpp | 8 ++++----
270 - clang_delta/TransformationManager.cpp | 2 +-
271 - 3 files changed, 16 insertions(+), 14 deletions(-)
272 -
273 -diff --git a/clang_delta/ExpressionDetector.cpp b/clang_delta/ExpressionDetector.cpp
274 -index aa87873..dd77068 100644
275 ---- a/clang_delta/ExpressionDetector.cpp
276 -+++ b/clang_delta/ExpressionDetector.cpp
277 -@@ -64,7 +64,8 @@ public:
278 - StringRef FileName, bool IsAngled,
279 - CharSourceRange FilenameRange, const FileEntry *File,
280 - StringRef SearchPath, StringRef RelativePath,
281 -- const Module *Imported) override;
282 -+ const Module *Imported,
283 -+ SrcMgr::CharacteristicKind FileType) override;
284 -
285 - private:
286 - SourceManager &SrcManager;
287 -@@ -77,14 +78,15 @@ private:
288 - };
289 -
290 - void IncludesPPCallbacks::InclusionDirective(SourceLocation HashLoc,
291 -- const Token &/*IncludeTok*/,
292 -- StringRef FileName,
293 -- bool /*IsAngled*/,
294 -- CharSourceRange /*FilenameRange*/,
295 -- const FileEntry * /*File*/,
296 -- StringRef /*SearchPath*/,
297 -- StringRef /*RelativePath*/,
298 -- const Module * /*Imported*/)
299 -+ const Token &/*IncludeTok*/,
300 -+ StringRef FileName,
301 -+ bool /*IsAngled*/,
302 -+ CharSourceRange /*FilenameRange*/,
303 -+ const FileEntry * /*File*/,
304 -+ StringRef /*SearchPath*/,
305 -+ StringRef /*RelativePath*/,
306 -+ const Module * /*Imported*/,
307 -+ SrcMgr::CharacteristicKind /*FileType*/)
308 - {
309 - if (!SrcManager.isInMainFile(HashLoc))
310 - return;
311 -diff --git a/clang_delta/RemoveUnusedEnumMember.cpp b/clang_delta/RemoveUnusedEnumMember.cpp
312 -index 8bf8673..469db3f 100644
313 ---- a/clang_delta/RemoveUnusedEnumMember.cpp
314 -+++ b/clang_delta/RemoveUnusedEnumMember.cpp
315 -@@ -99,15 +99,15 @@ void RemoveUnusedEnumMember::removeEnumConstantDecl()
316 - {
317 - SourceLocation StartLoc = (*TheEnumIterator)->getLocStart();
318 - if (StartLoc.isMacroID()) {
319 -- std::pair<SourceLocation, SourceLocation> Locs =
320 -+ CharSourceRange CSRange =
321 - SrcManager->getExpansionRange(StartLoc);
322 -- StartLoc = Locs.first;
323 -+ StartLoc = CSRange.getBegin();
324 - }
325 - SourceLocation EndLoc = (*TheEnumIterator)->getLocEnd();
326 - if (EndLoc.isMacroID()) {
327 -- std::pair<SourceLocation, SourceLocation> Locs =
328 -+ CharSourceRange CSRange =
329 - SrcManager->getExpansionRange(EndLoc);
330 -- EndLoc = Locs.second;
331 -+ EndLoc = CSRange.getEnd();
332 - }
333 - SourceLocation CommaLoc = Lexer::findLocationAfterToken(
334 - EndLoc, tok::comma, *SrcManager, Context->getLangOpts(),
335 -diff --git a/clang_delta/TransformationManager.cpp b/clang_delta/TransformationManager.cpp
336 -index 89e9d72..1e56b90 100644
337 ---- a/clang_delta/TransformationManager.cpp
338 -+++ b/clang_delta/TransformationManager.cpp
339 -@@ -223,7 +223,7 @@ llvm::raw_ostream *TransformationManager::getOutStream()
340 -
341 - std::error_code EC;
342 - llvm::raw_fd_ostream *Out = new llvm::raw_fd_ostream(
343 -- OutputFileName, EC, llvm::sys::fs::F_RW);
344 -+ OutputFileName, EC, llvm::sys::fs::FA_Read | llvm::sys::fs::FA_Write);
345 - assert(!EC && "Cannot open output file!");
346 - return Out;
347 - }
348 ---
349 -2.19.0
350 -