1 |
blueness 15/02/05 23:28:17 |
2 |
|
3 |
Modified: ChangeLog toolchain.eclass |
4 |
Log: |
5 |
Restore the old way of dealing with fixed includes for bsd, bug #536878. |
6 |
|
7 |
Revision Changes Path |
8 |
1.1522 eclass/ChangeLog |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1522&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1522&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1521&r2=1.1522 |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
17 |
retrieving revision 1.1521 |
18 |
retrieving revision 1.1522 |
19 |
diff -u -r1.1521 -r1.1522 |
20 |
--- ChangeLog 4 Feb 2015 09:44:24 -0000 1.1521 |
21 |
+++ ChangeLog 5 Feb 2015 23:28:17 -0000 1.1522 |
22 |
@@ -1,6 +1,9 @@ |
23 |
# ChangeLog for eclass directory |
24 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1521 2015/02/04 09:44:24 ulm Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1522 2015/02/05 23:28:17 blueness Exp $ |
27 |
+ |
28 |
+ 05 Feb 2015; Anthony G. Basile <blueness@g.o> toolchain.eclass: |
29 |
+ Restore the old way of dealing with fixed includes for bsd, bug #536878. |
30 |
|
31 |
04 Feb 2015; Ulrich Müller <ulm@g.o> git-r3.eclass: |
32 |
Respect the EVCS_UMASK variable to override the default umask when writing |
33 |
|
34 |
|
35 |
|
36 |
1.649 eclass/toolchain.eclass |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.649&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.649&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.648&r2=1.649 |
41 |
|
42 |
Index: toolchain.eclass |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v |
45 |
retrieving revision 1.648 |
46 |
retrieving revision 1.649 |
47 |
diff -u -r1.648 -r1.649 |
48 |
--- toolchain.eclass 21 Jan 2015 21:59:31 -0000 1.648 |
49 |
+++ toolchain.eclass 5 Feb 2015 23:28:17 -0000 1.649 |
50 |
@@ -1,6 +1,6 @@ |
51 |
-# Copyright 1999-2014 Gentoo Foundation |
52 |
+# Copyright 1999-2015 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.648 2015/01/21 21:59:31 blueness Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.649 2015/02/05 23:28:17 blueness Exp $ |
56 |
|
57 |
# Maintainer: Toolchain Ninjas <toolchain@g.o> |
58 |
|
59 |
@@ -595,15 +595,6 @@ |
60 |
einfo " ${f%%...}" |
61 |
done |
62 |
fi |
63 |
- |
64 |
- # We don't need fixed header files. This is a gcc hack for dealing with broken |
65 |
- # (ie non-ansi compliant) header files on old unix systems. On modern systems, |
66 |
- # these "fixed" headers are known to break things. We just stub them out. |
67 |
- if tc_version_is_at_least 4.0; then |
68 |
- echo : > "${S}"/fixincludes/fixinc.in || die |
69 |
- else |
70 |
- echo : > "${S}"/gcc/fixinc/fixincl.sh || die |
71 |
- fi |
72 |
} |
73 |
|
74 |
guess_patch_type_in_dir() { |
75 |
@@ -1607,6 +1598,9 @@ |
76 |
toolchain_src_install() { |
77 |
cd "${WORKDIR}"/build |
78 |
|
79 |
+ # Do allow symlinks in private gcc include dir as this can break the build |
80 |
+ find gcc/include*/ -type l -delete |
81 |
+ |
82 |
# Copy over the info pages. We disabled their generation earlier, but the |
83 |
# build system only expects to install out of the build dir, not the source. #464008 |
84 |
mkdir -p gcc/doc |
85 |
@@ -1617,6 +1611,17 @@ |
86 |
fi |
87 |
done |
88 |
|
89 |
+ # We remove the generated fixincludes, as they can cause things to break |
90 |
+ # (ncurses, openssl, etc). We do not prevent them from being built, as |
91 |
+ # in the following commit which we revert: |
92 |
+ # http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.647&r2=1.648 |
93 |
+ # This is because bsd userland needs fixedincludes to build gcc, while |
94 |
+ # linux does not. Both can dispose of them afterwards. |
95 |
+ while read x ; do |
96 |
+ grep -q 'It has been auto-edited by fixincludes from' "${x}" \ |
97 |
+ && rm -f "${x}" |
98 |
+ done < <(find gcc/include*/ -name '*.h') |
99 |
+ |
100 |
# Do the 'make install' from the build directory |
101 |
S="${WORKDIR}"/build emake -j1 DESTDIR="${D}" install || die |