1 |
On 06/21/2018 12:40 AM, Ulrich Mueller wrote: |
2 |
>>>>>> On Wed, 20 Jun 2018, Michael Haubenwallner wrote: |
3 |
> |
4 |
>> Path starting with "//" is a Network path for Cygwin: |
5 |
>> As DATAPATH starts with EPREFIX, we have to use it with ${ROOT%/}. |
6 |
>> --- |
7 |
>> eclass/toolchain.eclass | 6 +++--- |
8 |
>> 1 file changed, 3 insertions(+), 3 deletions(-) |
9 |
> |
10 |
>> diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass |
11 |
>> index a51d8e84f5e..bc3a80e0e8a 100644 |
12 |
>> --- a/eclass/toolchain.eclass |
13 |
>> +++ b/eclass/toolchain.eclass |
14 |
>> @@ -2133,12 +2133,12 @@ toolchain_pkg_postinst() { |
15 |
> |
16 |
>> mkdir -p "${EROOT}"usr/{share/gcc-data,sbin,bin} |
17 |
>> # DATAPATH has EPREFIX already, use ROOT with it |
18 |
>> - cp "${ROOT}${DATAPATH}"/fixlafiles.awk "${EROOT}"usr/share/gcc-data/ || die |
19 |
>> - cp "${ROOT}${DATAPATH}"/fix_libtool_files.sh "${EROOT}"usr/sbin/ || die |
20 |
>> + cp "${ROOT%/}${DATAPATH}"/fixlafiles.awk "${EROOT}"usr/share/gcc-data/ || die |
21 |
>> + cp "${ROOT%/}${DATAPATH}"/fix_libtool_files.sh "${EROOT}"usr/sbin/ || die |
22 |
> |
23 |
> Looks a bit short-sighted for the destinations, since EROOT lost its |
24 |
> trailing slash in EAPI 7. So better use "${EROOT%/}/" there too. |
25 |
|
26 |
Well, DATAPATH already has the leading slash, and I have to avoid double slash here. |
27 |
|
28 |
/haubi/ |