Gentoo Archives: gentoo-embedded

From: Marc Blumentritt <marc.blumentritt@×××××.de>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] Re: Problem with ROOT
Date: Thu, 18 Oct 2007 09:13:46
Message-Id: ff77c3$le3$1@ger.gmane.org
In Reply to: Re: [gentoo-embedded] Problem with ROOT by Jason
1 Hi Jason,
2
3 Jason schrieb:
4 >>
5 >
6 > If you haven't already, try this [1] out. Could you attach mm_emerge?
7 >
8 > hth,
9 >
10 > Jason.
11 >
12 > [1] - http://www.gentoo.org/proj/en/base/embedded/cross-development.xml
13
14 I was using [1] to write mm_emerge:
15
16 (build) hive / # cat /mediamachine/tools/mm_emerge
17 #!/bin/bash
18
19 check_bind || bind_dirs
20
21 # source and export vars
22 . /mediamachine/tools/vars
23 export PORTAGE_CONFIGROOT ROOT
24
25 cp /etc/passwd /tmp
26 cp /etc/shadow /tmp
27 cp /etc/group /tmp
28
29 # run emerge
30 emerge $*
31
32 echo "****** passwd diff *******"
33 diff /tmp/passwd /etc/passwd
34 mv -f /tmp/passwd /etc/passwd
35 echo "###### shadow diff ######"
36 diff /tmp/shadow /etc/shadow
37 mv -f /tmp/shadow /etc/shadow
38 echo "++++++ group diff +++++++"
39 diff /tmp/group /etc/group
40 mv -f /tmp/group /etc/group
41
42
43
44 With bind_dirs I bind some dirs, which I need for building, but not for
45 running my embedded system. The passwd/shadow/group stuff is there to
46 show me changes in these files, because they are made to my build system
47 and not to the embedded system in ROOT. /mediamachine/tools/vars
48 contains the definition of ROOT and PORTAGE_CONFIGROOT .
49
50
51 Concerning [1], if I would use cross compilation with ROOT and
52 PORTAGE_CONFIGROOT, would the same happen there? I mean, would some
53 packages be installed in the build system? That would be really bad,
54 wouldn't it?
55
56 Regards
57 Marc
58
59 --
60 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] Re: Problem with ROOT Jason <gentoo@××××××××××.net>