Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:master commit in: targets/support/
Date: Tue, 30 Jul 2013 07:08:47
Message-Id: 1375168095.c0fcbf027169da8b6f0d5e3c80c1526642c6c672.mattst88@gentoo
1 commit: c0fcbf027169da8b6f0d5e3c80c1526642c6c672
2 Author: Matt Turner <mattst88 <AT> gmail <DOT> com>
3 AuthorDate: Tue Jul 30 07:04:51 2013 +0000
4 Commit: Matt Turner <mattst88 <AT> gmail <DOT> com>
5 CommitDate: Tue Jul 30 07:08:15 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=c0fcbf02
7
8 kmerge.sh: Don't set USE=build for emerging kernels.
9
10 USE=build for kernels means that they're not going to be built and that
11 we just want to install the sources. In catalyst, we do also want to
12 build the kernels, so settings the (badly named) USE flag prevents
13 installing sys-devel/bc, ultimately leading to the kernel build failing.
14
15 Remove USE=build from kmerge.sh and let it install dependencies
16 necessary for actually building the kernel. Fixes Live CD builds with
17 kernels that require bc (>= 3.9, I believe). See bug 478244.
18
19 Tested-by: Ben Kohler <bkohler <AT> gmail.com>
20
21 ---
22 targets/support/kmerge.sh | 4 ----
23 1 file changed, 4 deletions(-)
24
25 diff --git a/targets/support/kmerge.sh b/targets/support/kmerge.sh
26 index e78e0b4..364d226 100644
27 --- a/targets/support/kmerge.sh
28 +++ b/targets/support/kmerge.sh
29 @@ -196,9 +196,6 @@ then
30 fi
31 fi
32
33 -[ -e /etc/portage/make.conf ] && \
34 - echo "USE=\"\${USE} ${clst_kernel_use} build\"" >> /etc/portage/make.conf
35 -
36 if [ -n "${clst_KERNCACHE}" ]
37 then
38 mkdir -p /tmp/kerncache/${clst_kname}
39 @@ -237,7 +234,6 @@ then
40 fi
41
42 build_kernel
43 -sed -i "/USE=\"\${USE} ${clst_kernel_use} build\"/d" /etc/portage/make.conf
44 # grep out the kernel version so that we can do our modules magic
45 VER=`grep ^VERSION\ \= /usr/src/linux/Makefile | awk '{ print $3 };'`
46 PAT=`grep ^PATCHLEVEL\ \= /usr/src/linux/Makefile | awk '{ print $3 };'`