Gentoo Archives: gentoo-catalyst

From: "Raúl Porcel" <armin76@g.o>
To: gentoo-catalyst@l.g.o
Cc: release@g.o
Subject: [gentoo-catalyst] Fwd: spaces in parameters
Date: Tue, 24 Jun 2014 16:50:03
Message-Id: 53A9AC32.90303@gentoo.org
1 I never got any answer from genkernel.
2
3 Can we implement the workaround in catalyst somehow?
4
5 Thanks
6
7
8 -------- Original Message --------
9 Subject: spaces in parameters
10 Date: Wed, 21 Aug 2013 11:11:00 +0200
11 From: Raúl Porcel <armin76@g.o>
12 To: gentoo-genkernel@l.g.o
13 CC: release@g.o
14
15 Hi,
16
17 when using catalyst, it passes some parameters to genkernel. Now it
18 turns out I need to use some parameters with spaces in genkernel and
19 seems it doesn't like them.
20
21 Right now catalyst does something like this script:
22
23 #######
24 parm="--kernel-cc='gcc -m64'
25 --kernel-config=/root/installcd-ibm-2.6.34.config all"
26
27 genkernel ${parm}
28 #######
29
30 This returns:
31 Error: Unknown option '-m64''!
32
33 If we quote ${parm}, it returns the help.
34
35
36 If we modify it a little:
37
38 ######
39 parm="--kernel-cc='gcc -m64'
40 --kernel-config=/root/installcd-ibm-2.6.34.config"
41
42 genkernel "${parm}" all
43 ######
44
45 It says it can't find the configuration file.
46
47 A workaround i've found is:
48
49 ######
50 parm="--kernel-cc='gcc -m64'
51 --kernel-config=/root/installcd-ibm-2.6.34.config all"
52
53 echo "genkernel ${parm}" > /tmp/tmp.sh
54 bash /tmp/tmp.sh
55 ######
56
57 Any ideas? If its too hard to fix, we can simply add this workaround on
58 catalyst.
59
60 Thanks
61 ######

Replies

Subject Author
[gentoo-catalyst] Re: Fwd: spaces in parameters "Rick \\\"Zero_Chaos\\\" Farina" <zerochaos@g.o>