1 |
commit: d826d453eb9d096b24ad2b6e51c6baa14fc23ddb |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 28 02:06:19 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 28 02:07:04 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d826d453 |
7 |
|
8 |
dev-libs/dietlibc: bump to v0.34 |
9 |
|
10 |
Note: Doesn't work with current binutils-2.31.1 version, see $S/FAQ |
11 |
or bug 672126 for details. |
12 |
|
13 |
Bug: https://bugs.gentoo.org/672126 |
14 |
Closes: https://bugs.gentoo.org/639728 |
15 |
Closes: https://bugs.gentoo.org/671756 |
16 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
17 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
18 |
|
19 |
dev-libs/dietlibc/Manifest | 1 + |
20 |
dev-libs/dietlibc/dietlibc-0.34.ebuild | 77 ++++++++++++++++++++++++++++++++++ |
21 |
2 files changed, 78 insertions(+) |
22 |
|
23 |
diff --git a/dev-libs/dietlibc/Manifest b/dev-libs/dietlibc/Manifest |
24 |
index 5610c77f2ad..09f53a3ba4b 100644 |
25 |
--- a/dev-libs/dietlibc/Manifest |
26 |
+++ b/dev-libs/dietlibc/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
+DIST dietlibc-0.34.tar.xz 662732 BLAKE2B ac709f19f98c298ee424f8320cbc7bca997156323e64d3a219251146b4257185f27519262914d3df044638ecfcf06e1e3680d8af226704dca65d6e4be20b3dc4 SHA512 2b38528c0ccf50e426f587b6448fed997fab1147eecc9e1af2f3fb3efe3d8f3997656d8e66e7cf1045ceb1f602cef43456c62ba83ff494f9c9816721bdb4d6c6 |
29 |
DIST dietlibc-0.34_pre20140729.tar.bz2 670195 BLAKE2B 9479c97c09b0c8c7e5d85536afd962613e9f5fbcb1aff3ef9b2aace19d246b2d0b637f00c3abee0a2c06f170263e85ffba94247171afc47e40c8ab0e95fe5191 SHA512 a0bb5465f7fc985fd074dfcc4039003ec26b6b5fde5f2ccc53322067bd1a6459e742c9debeffda0b5146e287baa8e49f74f4a8ffafdf1daacacec4768d13db36 |
30 |
|
31 |
diff --git a/dev-libs/dietlibc/dietlibc-0.34.ebuild b/dev-libs/dietlibc/dietlibc-0.34.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..4a35f612fa6 |
34 |
--- /dev/null |
35 |
+++ b/dev-libs/dietlibc/dietlibc-0.34.ebuild |
36 |
@@ -0,0 +1,77 @@ |
37 |
+# Copyright 1999-2018 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI="7" |
41 |
+inherit flag-o-matic toolchain-funcs |
42 |
+ |
43 |
+DESCRIPTION="A libc optimized for small size" |
44 |
+HOMEPAGE="https://www.fefe.de/dietlibc/" |
45 |
+SRC_URI="https://www.fefe.de/dietlibc/${P}.tar.xz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~sparc ~x86 ~amd64-linux ~x86-linux" |
50 |
+IUSE="" |
51 |
+ |
52 |
+DEPEND="" |
53 |
+RDEPEND="" |
54 |
+ |
55 |
+DIETHOME="/usr/diet" |
56 |
+ |
57 |
+pkg_pretend() { |
58 |
+ if [[ ${MERGE_TYPE} != binary ]]; then |
59 |
+ if $(tc-getLD) --version | grep -q "2.31.1"; then |
60 |
+ ewarn "${PN} does not work with unpatched binutils-2.31.1," |
61 |
+ ewarn "see \"${S}/FAQ\"" |
62 |
+ ewarn "and https://bugs.gentoo.org/672126 for details." |
63 |
+ ewarn "In the meanwhile you can install another binutils version" |
64 |
+ ewarn "and use binutils-config to switch version." |
65 |
+ sleep 10 |
66 |
+ fi |
67 |
+ fi |
68 |
+} |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ default |
72 |
+ |
73 |
+ # Replace sparc64 related C[XX]FLAGS (see bug #45716) |
74 |
+ use sparc && replace-sparc64-flags |
75 |
+ |
76 |
+ # gcc-hppa suffers support for SSP, compilation will fail |
77 |
+ use hppa && strip-unsupported-flags |
78 |
+ |
79 |
+ # Makefile does not append CFLAGS |
80 |
+ append-flags -W -Wall -Wchar-subscripts \ |
81 |
+ -Wmissing-prototypes -Wmissing-declarations -Wno-switch \ |
82 |
+ -Wno-unused -Wredundant-decls -fno-strict-aliasing |
83 |
+ |
84 |
+ # Disable ssp for we default to it on >=gcc-4.8.3 |
85 |
+ append-flags $(test-flags -fno-stack-protector) |
86 |
+ |
87 |
+ # only use -nopie on archs that support it |
88 |
+ tc-enables-pie && append-flags -no-pie |
89 |
+ |
90 |
+ sed -i -e 's:strip::' Makefile || die |
91 |
+ append-flags -Wa,--noexecstack |
92 |
+} |
93 |
+ |
94 |
+src_compile() { |
95 |
+ emake -j1 prefix="${EPREFIX}"${DIETHOME} \ |
96 |
+ CC="$(tc-getCC)" \ |
97 |
+ CFLAGS="${CFLAGS}" \ |
98 |
+ STRIP=":" |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ emake -j1 prefix="${EPREFIX}"${DIETHOME} \ |
103 |
+ DESTDIR="${D}" \ |
104 |
+ install-bin \ |
105 |
+ install-headers \ |
106 |
+ install-profiling |
107 |
+ |
108 |
+ dobin "${ED}"${DIETHOME}/bin/* |
109 |
+ doman "${ED}"${DIETHOME}/man/*/* |
110 |
+ rm -r "${ED}"${DIETHOME}/{man,bin} || die |
111 |
+ |
112 |
+ dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING |
113 |
+} |