1 |
commit: 2c225ccf4290ca7ff62969fe624bbf623f509638 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 28 17:39:40 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 28 17:55:22 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c225ccf |
7 |
|
8 |
dev-libs/dietlibc: Fix compilation (#644116 by Mike Hiretsky) |
9 |
|
10 |
Package-Manager: Portage-2.3.38, Repoman-2.3.9 |
11 |
|
12 |
.../dietlibc/dietlibc-0.34_pre20140729-r1.ebuild | 13 +++++++++---- |
13 |
.../files/dietlibc-0.34_pre20140729-dyn-lib.patch | 22 ++++++++++++++++++++++ |
14 |
2 files changed, 31 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/dev-libs/dietlibc/dietlibc-0.34_pre20140729-r1.ebuild b/dev-libs/dietlibc/dietlibc-0.34_pre20140729-r1.ebuild |
17 |
index ab312bfd873..ac5939a008d 100644 |
18 |
--- a/dev-libs/dietlibc/dietlibc-0.34_pre20140729-r1.ebuild |
19 |
+++ b/dev-libs/dietlibc/dietlibc-0.34_pre20140729-r1.ebuild |
20 |
@@ -1,8 +1,8 @@ |
21 |
# Copyright 1999-2018 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=5 |
25 |
-inherit eutils flag-o-matic toolchain-funcs |
26 |
+EAPI=6 |
27 |
+inherit flag-o-matic toolchain-funcs |
28 |
|
29 |
DESCRIPTION="A libc optimized for small size" |
30 |
HOMEPAGE="http://www.fefe.de/dietlibc/" |
31 |
@@ -16,11 +16,16 @@ IUSE="" |
32 |
DEPEND="" |
33 |
RDEPEND="" |
34 |
|
35 |
-DIETHOME=/usr/diet |
36 |
+DIETHOME="/usr/diet" |
37 |
|
38 |
-S=${WORKDIR}/dietlibc |
39 |
+S="${WORKDIR}/dietlibc" |
40 |
|
41 |
src_prepare() { |
42 |
+ default |
43 |
+ |
44 |
+ # use __DYN_LIB instead of __PIC__ in i386 socketcalls, bug #644116 |
45 |
+ eapply "${FILESDIR}"/${P}-dyn-lib.patch |
46 |
+ |
47 |
# Replace sparc64 related C[XX]FLAGS (see bug #45716) |
48 |
use sparc && replace-sparc64-flags |
49 |
|
50 |
|
51 |
diff --git a/dev-libs/dietlibc/files/dietlibc-0.34_pre20140729-dyn-lib.patch b/dev-libs/dietlibc/files/dietlibc-0.34_pre20140729-dyn-lib.patch |
52 |
new file mode 100644 |
53 |
index 00000000000..fe3fcb072f6 |
54 |
--- /dev/null |
55 |
+++ b/dev-libs/dietlibc/files/dietlibc-0.34_pre20140729-dyn-lib.patch |
56 |
@@ -0,0 +1,22 @@ |
57 |
+From 843c667c1b516c0764840c6e4d41188f9c96a415 Mon Sep 17 00:00:00 2001 |
58 |
+From: leitner <leitner> |
59 |
+Date: Mon, 4 Sep 2017 21:59:50 +0000 |
60 |
+Subject: [PATCH] use __DYN_LIB instead of __PIC__ in i386 socketcalls |
61 |
+ |
62 |
+--- |
63 |
+ i386/syscalls.h | 2 +- |
64 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
65 |
+ |
66 |
+diff --git a/i386/syscalls.h b/i386/syscalls.h |
67 |
+index 11d6f1d5..14ac517b 100644 |
68 |
+--- a/i386/syscalls.h |
69 |
++++ b/i386/syscalls.h |
70 |
+@@ -416,7 +416,7 @@ sym: \ |
71 |
+ .Lend##sym: ; \ |
72 |
+ .size sym,.Lend##sym-sym |
73 |
+ |
74 |
+-#ifndef __PIC__ |
75 |
++#ifndef __DYN_LIB |
76 |
+ #define __socketcall(name,NAME) \ |
77 |
+ .text; \ |
78 |
+ .type name,@function; \ |