Gentoo Archives: gentoo-portage-dev

From: "Zou
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] Emerging binary package into a ROOT directory failure
Date: Thu, 05 Oct 2006 16:35:24
Message-Id: 0727B6E63350324FAEEE940CB0746D7E9BD109@orsmsx419.amr.corp.intel.com
1 Hi,
2
3 I am trying to use emerge to create an entire file system, using only
4 binary packages that I created ealier:
5
6 ROOT=/root_directory emerge -g package_list
7
8 All the binary packages are stored on a server. The "root_directory"
9 is empty. When the command is issued, I got the following error:
10
11 ------------------------------------------------------------------------
12 ---
13
14 xyz ~ # ROOT=/sdk_target_base emerge -pvg linux-headers
15
16 These are the packages that would be merged, in order:
17
18 Fetching binary packages info...
19 Loaded metadata pickle.
20 Location has moved: http://foo.bar.com/esdk/packages/All/
21 cache miss: 'x' --- cache hit: 'o'
22 oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
23 oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
24 oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
25 oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
26 oooooooo
27 -- DONE!
28
29 Calculating dependencies
30
31 !!! Problem in 'sys-kernel/linux-headers' dependencies.
32 !!! 'NoneType' object has no attribute 'split' exceptions
33
34 Traceback (most recent call last):
35 File "/usr/bin/emerge", line 3450, in ?
36 retval, favorites = mydepgraph.select_files(myfiles)
37 File "/usr/bin/emerge", line 1152, in select_files
38 self.mysd = self.select_dep(portage.root,mykey,arg=x)
39 File "/usr/bin/emerge", line 1339, in select_dep
40 binpkguseflags=portage.db[portage.root]["bintree"].get_use(myeb_pkg)
41 File "/usr/lib/portage/pym/portage.py", line 5794, in get_use
42 return string.split(tbz2.getfile("USE"))
43 File "/usr/lib/python2.4/string.py", line 292, in split
44 return s.split(sep, maxsplit)
45 AttributeError: 'NoneType' object has no attribute 'split'
46
47
48 ------------------------------------------------------------------------
49
50 The weird thing is this error only happens if I emerge into the $ROOT
51 using -g, in other words, if I do "emerge -pvg linux-headers", or any
52 other package, there will be no error.
53
54 Also, if I put the packages in $PKGDIR, and run
55 "ROOT=/root_directly, emerge -pvk linux-headers", there will be no
56 error either.
57
58
59 My portage tree is quite update, btw. Based on a snapshot on 9/27.
60
61 Anybody knows how to fix this thing? Thanks for your help.
62
63
64
65
66 --
67 gentoo-portage-dev@g.o mailing list