Gentoo Archives: gentoo-embedded

From: "René Berber" <r.berber@××××××××.org>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] crossdev stores the EXTRA_ECONF options w/o quotes
Date: Sun, 05 Feb 2012 00:04:48
Message-Id: jgkeje$9qq$1@dough.gmane.org
1 Hi,
2
3 Minor bug in crossdev, as the title says its storing the options I
4 passed without the quotes. That means emerge spills some messages about
5 'command not found' referring to the second options on those lines.
6
7 Here's an example of what I'm doing (mind you it doesn't work for what
8 its intended -- i.e. the mingw-w64 tools are not quite right, they are
9 missing the 32 bit libc++ and other details):
10
11 $ sudo crossdev -t x86_64-w64-mingw32 \
12 > --b 2.22 --g 4.6.2 \
13 > --benv
14 EXTRA_ECONF="--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32" \
15 > --genv EXTRA_ECONF="--enable-multilib --enable-targets=all" \
16 > --lenv EXTRA_ECONF="--enable-lib64 --enable-lib32"
17
18 That command succeeds.
19
20 Later using emerge for my weekly update:
21
22 /etc/portage/env/cross-x86_64-w64-mingw32/mingw64-runtime: line 2:
23 --enable-lib32: command not found
24 /etc/portage/env/cross-x86_64-w64-mingw32/gcc: line 2:
25 --enable-targets=all: command not found
26
27 And the offending lines:
28
29 $ head -n 2 /etc/portage/env/cross-x86_64-w64-mingw32/mingw64-runtime
30 /etc/portage/env/cross-x86_64-w64-mingw32/gcc
31 ==> /etc/portage/env/cross-x86_64-w64-mingw32/mingw64-runtime <==
32 SYMLINK_LIB=no
33 EXTRA_ECONF=--enable-lib64 --enable-lib32
34
35 ==> /etc/portage/env/cross-x86_64-w64-mingw32/gcc <==
36 SYMLINK_LIB=no
37 EXTRA_ECONF=--enable-multilib --enable-targets=all
38
39 Same thing with /etc/portage/env/cross-x86_64-w64-mingw32/binutils (but
40 emerge didn't spill anything about it).
41 --
42 René Berber

Replies