diff options
author | Yixun Lan <dlan@gentoo.org> | 2020-02-14 22:13:37 +0000 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2020-02-14 22:19:15 +0000 |
commit | 6ae15f9c5720e894da56df3b04e28ac010832893 (patch) | |
tree | 1b55b20abe439494ac978d80e16b917196ae1f1e /dev-lang/tcc | |
parent | dev-lang/tcc: QA: fix none existent blocker (diff) | |
download | gentoo-6ae15f9c5720e894da56df3b04e28ac010832893.tar.gz gentoo-6ae15f9c5720e894da56df3b04e28ac010832893.tar.bz2 gentoo-6ae15f9c5720e894da56df3b04e28ac010832893.zip |
dev-lang/tcc: drop old
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'dev-lang/tcc')
-rw-r--r-- | dev-lang/tcc/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/tcc/files/clang.patch | 18 | ||||
-rw-r--r-- | dev-lang/tcc/files/linker.patch | 18 | ||||
-rw-r--r-- | dev-lang/tcc/tcc-0.9.26-r3.ebuild | 71 |
4 files changed, 0 insertions, 108 deletions
diff --git a/dev-lang/tcc/Manifest b/dev-lang/tcc/Manifest index eaccaa273efb..170ccf6bd979 100644 --- a/dev-lang/tcc/Manifest +++ b/dev-lang/tcc/Manifest @@ -1,2 +1 @@ -DIST tcc-0.9.26.tar.bz2 525906 BLAKE2B 588e387d563ddede9842ac9012df36520fb1596bd3047fda2684ab44e49f8c1a35c1560c2fee724933cfcad5d618d84df853b72e1fee144b551cb67f7af1558a SHA512 abdbe208498cf4865a2036b5426616f5888b9b0e8d5d2fda6d1dd4afab3386167f12eca87d8a5c4c9b7dc88620d983ddce3e874b7dfa9c21eceea29ffa635d53 DIST tcc-0.9.27.tar.bz2 634999 BLAKE2B 9a76dac9f54fa0b64a72e874cfec9a4bd9b938d244d064b2e76bd31acfb9e48fdbdb8895132634be1dee4302293405bf75606a6804c8178afa8fd30daa53b73a SHA512 835184292d97c07f0ff7b36ec550e855e649b04e23c7e2a1c706d223409eb60708dc1ae969f28eba45e56c8b96ae56936b93caf9d8a13ac5adf119014d5367a7 diff --git a/dev-lang/tcc/files/clang.patch b/dev-lang/tcc/files/clang.patch deleted file mode 100644 index 01cc72335fd8..000000000000 --- a/dev-lang/tcc/files/clang.patch +++ /dev/null @@ -1,18 +0,0 @@ -# Fix compiling tcc with clang. Upstream commit 73ac39c317a20accaf3b25ba833deee0c2e2849f -# Gentoo bug #502452 -diff --git a/lib/libtcc1.c b/lib/libtcc1.c -index cf9babf..b46fb5d 100644 ---- a/lib/libtcc1.c -+++ b/lib/libtcc1.c -@@ -647,6 +647,11 @@ struct __va_list_struct { - char *reg_save_area; - }; - -+#undef __va_start -+#undef __va_arg -+#undef __va_copy -+#undef __va_end -+ - void *__va_start(void *fp) - { - struct __va_list_struct *ap = diff --git a/dev-lang/tcc/files/linker.patch b/dev-lang/tcc/files/linker.patch deleted file mode 100644 index 8304470e3682..000000000000 --- a/dev-lang/tcc/files/linker.patch +++ /dev/null @@ -1,18 +0,0 @@ -# Fixes the default linker options for portage -# Upstream commit ba286136bf8e48c71ffd6c2fd9ce97e64a6eeeb1 - -diff --git a/libtcc.c b/libtcc.c -index 127806f..dc78643 100644 ---- a/libtcc.c -+++ b/libtcc.c -@@ -1560,6 +1560,10 @@ static int tcc_set_linker(TCCState *s, const char *option) - } else - goto err; - -+ } else if (link_option(option, "as-needed", &p)) { -+ ignoring = 1; -+ } else if (link_option(option, "O", &p)) { -+ ignoring = 1; - } else if (link_option(option, "rpath=", &p)) { - s->rpath = copy_linker_arg(p); - } else if (link_option(option, "section-alignment=", &p)) { diff --git a/dev-lang/tcc/tcc-0.9.26-r3.ebuild b/dev-lang/tcc/tcc-0.9.26-r3.ebuild deleted file mode 100644 index 67fb6add1c2d..000000000000 --- a/dev-lang/tcc/tcc-0.9.26-r3.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit toolchain-funcs - -DESCRIPTION="A very small C compiler for ix86/amd64" -HOMEPAGE="https://bellard.org/tcc/" -SRC_URI="https://download.savannah.gnu.org/releases/tinycc/${P}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux" - -DEPEND="dev-lang/perl" # doc generation -RDEPEND="" -IUSE="test" -RESTRICT="!test? ( test )" - -src_prepare() { - # Don't strip - sed -i -e 's|$(INSTALL) -s|$(INSTALL)|' Makefile || die - - # Fix examples - sed -i -e '1{ - i#! /usr/bin/tcc -run - /^#!/d - }' examples/ex*.c || die - sed -i -e '1s/$/ -lX11/' examples/ex4.c || die - - # Fix texi2html invocation - sed -i -e 's/-number//' Makefile || die - sed -i -e 's/--sections//' Makefile || die - - # Fix compiling tcc with clang - eapply "${FILESDIR}"/clang.patch - - # Allows using tcc as the system compiler for Gentoo - eapply "${FILESDIR}"/linker.patch - - eapply_user -} - -src_configure() { - use test && unset CFLAGS LDFLAGS # Tests run with CC=tcc etc, they will fail hard otherwise - # better fixes welcome, it feels wrong to hack the env like this - # not autotools, so call configure directly - ./configure --cc="$(tc-getCC)" \ - --prefix="${EPREFIX}/usr" \ - --libdir="${EPREFIX}/usr/$(get_libdir)" \ - --docdir="${EPREFIX}/usr/share/doc/${PF}" -} - -src_compile() { - emake AR="$(tc-getAR)" -} - -src_install() { - emake DESTDIR="${D}" install - - dodoc Changelog README TODO VERSION - #dohtml tcc-doc.html - exeinto /usr/share/doc/${PF}/examples - doexe examples/ex*.c -} - -src_test() { - # this is using tcc bits that don't know as-needed etc. - TCCFLAGS="" emake test -} |