diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-04-21 14:23:42 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-04-21 14:37:33 +0200 |
commit | d2f1a1a720e33f2448697e190c53ca56d937b946 (patch) | |
tree | 2c94cbacb23db0de87f8311b2da1260c8a7d33cd /dev-util/creduce | |
parent | dev-python/llvmlite: Fix building against LLVM 7.1.0 (diff) | |
download | gentoo-d2f1a1a720e33f2448697e190c53ca56d937b946.tar.gz gentoo-d2f1a1a720e33f2448697e190c53ca56d937b946.tar.bz2 gentoo-d2f1a1a720e33f2448697e190c53ca56d937b946.zip |
dev-util/creduce: Bump to 2.8.0
Closes: https://bugs.gentoo.org/683356
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-util/creduce')
-rw-r--r-- | dev-util/creduce/Manifest | 1 | ||||
-rw-r--r-- | dev-util/creduce/creduce-2.8.0.ebuild | 41 | ||||
-rw-r--r-- | dev-util/creduce/files/creduce-2.8.0-link-libs.patch | 31 |
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-util/creduce/Manifest b/dev-util/creduce/Manifest index fdc206e410f4..344546cbdd92 100644 --- a/dev-util/creduce/Manifest +++ b/dev-util/creduce/Manifest @@ -1,2 +1,3 @@ DIST creduce-2.7.0.tar.gz 768832 BLAKE2B ddc471b658a7feb8591dd4e402ac51d7c97a1705ef5b3787eec0b652bba64fb82cc39db21fa7c87ae0104977514f792b77802b6b35cf7afecb79b4cde16a5b52 SHA512 0ded47fdb4303d84619d63fbedd7bc12141b4857679dda8438683199dbdc98b985f848e797b9dc25a31dda591ee54bcb94580285890b23495fcf151aa3636226 +DIST creduce-2.8.0.tar.gz 774668 BLAKE2B d799372d107c0cb45e9ed95f82c29634fd9de053c4eda1a2dfce8b2152ca84f7fff5e7b679e21e6dbe869d139e1cfd73963c02751ad30809a3470316ce10e077 SHA512 9d616dc421d0e932656ab0220ebfe1a4f20a08d46bf4ee004ef96a693ff37caeadf96c769262574a9789ac52c2bb4586e2b8602f7d44b627229b8eb45f5af0ea DIST creduce-48e622ba74bc35c5a81299d3a34b9b14038d6a70.tar.gz 720872 BLAKE2B 031104f5e7ca3d3cfb41087f432ec0cf1b1c125171ffac31b6f3b0a9a4483b5ca8a667331aacae7f5acdaaf99e8b688bb62b332405c1266d2b114a4bdceca9cc SHA512 36cc12015d85acfa99f0d04440184517da1f766df7a804ee02719f1208f67aff4f4db7af4066817b17efdc89a6d2cf7ab62b0c622a611bc9b03a89b8d1b68d01 diff --git a/dev-util/creduce/creduce-2.8.0.ebuild b/dev-util/creduce/creduce-2.8.0.ebuild new file mode 100644 index 000000000000..5d6570d88f66 --- /dev/null +++ b/dev-util/creduce/creduce-2.8.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +: ${CMAKE_MAKEFILE_GENERATOR=ninja} +inherit cmake-utils llvm + +DESCRIPTION="C-Reduce - a plugin-based C program reducer" +HOMEPAGE="https://embed.cs.utah.edu/creduce/" +SRC_URI="https://embed.cs.utah.edu/creduce/${P}.tar.gz" + +LICENSE="UoI-NCSA" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +LLVM_MAX_SLOT=7 + +COMMON_DEPEND=" + >=dev-lang/perl-5.10.0 + sys-devel/clang:${LLVM_MAX_SLOT}" +RDEPEND="${COMMON_DEPEND} + dev-perl/Benchmark-Timer + dev-perl/Exporter-Lite + dev-perl/File-Which + dev-perl/Getopt-Tabular + dev-perl/Regexp-Common + dev-perl/Sys-CPU + dev-util/astyle + dev-util/indent" +DEPEND="${COMMON_DEPEND}" + +PATCHES=( + "${FILESDIR}"/creduce-llvm-7.patch + "${FILESDIR}"/creduce-2.8.0-link-libs.patch +) + +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" +} 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 new file mode 100644 index 000000000000..25e9ef229165 --- /dev/null +++ b/dev-util/creduce/files/creduce-2.8.0-link-libs.patch @@ -0,0 +1,31 @@ +From 885a675474d93ae4ef929de7520d3ac38ba39156 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sun, 21 Apr 2019 14:20:34 +0200 +Subject: [PATCH] Revert "Do not list `LLVM_LIBS` in the + `target_link_libraries`." + +This breaks linking against shared LLVM. +--- + clang_delta/CMakeLists.txt | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/clang_delta/CMakeLists.txt b/clang_delta/CMakeLists.txt +index 6493abf..ab1dc42 100644 +--- a/clang_delta/CMakeLists.txt ++++ b/clang_delta/CMakeLists.txt +@@ -242,11 +242,7 @@ add_executable(clang_delta + git_version.h + ) + +-# ENE, LLVM 6.0: LLVM_LIBS end up in the link command line anyway. I'm not +-# quite sure why! But if you list LLVM_LIBS here, the `clang_delta' binary +-# can end up with dynamic link errors when it runs (multiply defined symbols). +-# +-target_link_libraries(clang_delta ${CLANG_LIBS}) ++target_link_libraries(clang_delta ${CLANG_LIBS} ${LLVM_LIBS}) + + # Custom target for running clang_delta tests + # +-- +2.21.0 + |