1 |
mgorny 13/04/01 11:05:27 |
2 |
|
3 |
Modified: ChangeLog autotools-multilib.eclass |
4 |
Log: |
5 |
Fix path handling in header wrapping code. |
6 |
|
7 |
Revision Changes Path |
8 |
1.764 eclass/ChangeLog |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.764&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.764&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.763&r2=1.764 |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
17 |
retrieving revision 1.763 |
18 |
retrieving revision 1.764 |
19 |
diff -u -r1.763 -r1.764 |
20 |
--- ChangeLog 1 Apr 2013 09:18:57 -0000 1.763 |
21 |
+++ ChangeLog 1 Apr 2013 11:05:27 -0000 1.764 |
22 |
@@ -1,6 +1,9 @@ |
23 |
# ChangeLog for eclass directory |
24 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.763 2013/04/01 09:18:57 mgorny Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.764 2013/04/01 11:05:27 mgorny Exp $ |
27 |
+ |
28 |
+ 01 Apr 2013; Michał Górny <mgorny@g.o> autotools-multilib.eclass: |
29 |
+ Fix path handling in header wrapping code. |
30 |
|
31 |
01 Apr 2013; Michał Górny <mgorny@g.o> autotools-multilib.eclass: |
32 |
Support wrapping headers for multilib. |
33 |
|
34 |
|
35 |
|
36 |
1.14 eclass/autotools-multilib.eclass |
37 |
|
38 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/autotools-multilib.eclass?rev=1.14&view=markup |
39 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/autotools-multilib.eclass?rev=1.14&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/autotools-multilib.eclass?r1=1.13&r2=1.14 |
41 |
|
42 |
Index: autotools-multilib.eclass |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/eclass/autotools-multilib.eclass,v |
45 |
retrieving revision 1.13 |
46 |
retrieving revision 1.14 |
47 |
diff -u -r1.13 -r1.14 |
48 |
--- autotools-multilib.eclass 1 Apr 2013 09:18:57 -0000 1.13 |
49 |
+++ autotools-multilib.eclass 1 Apr 2013 11:05:27 -0000 1.14 |
50 |
@@ -1,6 +1,6 @@ |
51 |
# Copyright 1999-2013 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-multilib.eclass,v 1.13 2013/04/01 09:18:57 mgorny Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-multilib.eclass,v 1.14 2013/04/01 11:05:27 mgorny Exp $ |
55 |
|
56 |
# @ECLASS: autotools-multilib.eclass |
57 |
# @MAINTAINER: |
58 |
@@ -83,18 +83,18 @@ |
59 |
die "Wrapping headers outside of /usr/include is not supported at the moment." |
60 |
fi |
61 |
# and then usr/include |
62 |
- f=${f#usr/include/} |
63 |
+ f=${f#usr/include} |
64 |
|
65 |
local dir=${f%/*} |
66 |
|
67 |
# $CHOST shall be set by multilib_toolchain_setup |
68 |
- dodir "/tmp/multilib-include/${CHOST}/${dir}" |
69 |
- mv "${ED}/usr/include/${f}" "${ED}/tmp/multilib-include/${CHOST}/${dir}/" || die |
70 |
+ dodir "/tmp/multilib-include/${CHOST}${dir}" |
71 |
+ mv "${ED}/usr/include${f}" "${ED}/tmp/multilib-include/${CHOST}${dir}/" || die |
72 |
|
73 |
- if [[ ! -f ${ED}/tmp/multilib-include/${f} ]]; then |
74 |
- dodir "/tmp/multilib-include/${dir}" |
75 |
+ if [[ ! -f ${ED}/tmp/multilib-include${f} ]]; then |
76 |
+ dodir "/tmp/multilib-include${dir}" |
77 |
# a generic template |
78 |
- cat > "${ED}/tmp/multilib-include/${f}" <<_EOF_ || die |
79 |
+ cat > "${ED}/tmp/multilib-include${f}" <<_EOF_ || die |
80 |
/* This file is auto-generated by autotools-multilib.eclass |
81 |
* as a multilib-friendly wrapper. For the original content, |
82 |
* please see the files that are #included below. |
83 |
@@ -129,7 +129,7 @@ |
84 |
|
85 |
# Note: match a space afterwards to avoid collision potential. |
86 |
sed -e "/${abi_flag} /s&error.*&include <${CHOST}/${f}>&" \ |
87 |
- -i "${ED}/tmp/multilib-include/${f}" || die |
88 |
+ -i "${ED}/tmp/multilib-include${f}" || die |
89 |
done |
90 |
} |