1 |
On 12/8/05, Billy Holmes <billy@××××××.net> wrote: |
2 |
> Billy Holmes wrote: |
3 |
> > (2) copy the patch to sys-apps/l32/files |
4 |
> |
5 |
> sorry for replying to my own message, but just to let you know.. files |
6 |
> should be a directory: |
7 |
> |
8 |
> # mkdir -p /usr/local/portage/sys-apps/l32/files |
9 |
> |
10 |
> -- |
11 |
> gentoo-amd64@g.o mailing list |
12 |
> |
13 |
> |
14 |
|
15 |
Hi, |
16 |
I'm apparently not able to get the path edit quite right. It's |
17 |
asking about /home/32-bit. Please double check me if possible: |
18 |
|
19 |
1) Everything, including the patch file, is copied to |
20 |
/usr/local/portage/sys-apps/l32: |
21 |
|
22 |
lightning ~ # ls -la /usr/local/portage/sys-apps/l32 |
23 |
total 20 |
24 |
drwxr-xr-x 3 root root 4096 Dec 8 15:31 . |
25 |
drwxr-xr-x 3 root root 4096 Dec 8 15:08 .. |
26 |
-rw-rw-r-- 1 root portage 948 Dec 8 15:32 Manifest |
27 |
drwxr-xr-x 3 root portage 4096 Dec 8 15:29 files |
28 |
-rw-r--r-- 1 root portage 610 Dec 8 14:55 l32-1.1.ebuild |
29 |
lightning ~ # |
30 |
|
31 |
lightning ~ # ls -la /usr/local/portage/sys-apps/l32/files/ |
32 |
total 132 |
33 |
drwxr-xr-x 3 root portage 4096 Dec 8 15:29 . |
34 |
drwxr-xr-x 3 root root 4096 Dec 8 15:31 .. |
35 |
-rw-r--r-- 1 root portage 18011 Nov 2 16:13 COPYING |
36 |
-rw-r--r-- 1 root portage 143 Nov 3 10:13 Changelog |
37 |
-rw-r--r-- 1 root portage 932 Nov 2 16:13 INSTALL |
38 |
-rw-r--r-- 1 root portage 1795 Nov 3 10:13 Makefile |
39 |
-rw-rw-r-- 1 root portage 58 Dec 8 15:32 digest-l32-1.1 |
40 |
drwxr-xr-x 2 root portage 4096 Nov 3 10:14 gentoo |
41 |
-rw-r--r-- 1 root portage 6463 Nov 3 09:05 l32.1 |
42 |
-rw-r--r-- 1 root portage 2278 Nov 3 09:05 l32.1.pod |
43 |
-rw-r--r-- 1 root portage 2369 Nov 3 07:59 l32.c |
44 |
-rw-r--r-- 1 root portage 665 Dec 8 15:25 l32.h |
45 |
-rw-r--r-- 1 root portage 51200 Dec 8 15:11 l32_1.1.tar |
46 |
-rw-r--r-- 1 root portage 334 Dec 8 15:19 l32_h-gentoo.patch |
47 |
-rwxr-xr-x 1 root portage 285 Nov 2 16:13 mkman.sh |
48 |
lightning ~ # |
49 |
|
50 |
2) I edited l32.h as follows to point at the chroot directory I built yesterday: |
51 |
|
52 |
lightning ~ # cat /usr/local/portage/sys-apps/l32/files/l32.h |
53 |
/* |
54 |
* Copyright 2005 by Billy Holmes |
55 |
* |
56 |
* Copying and distribution of this file, with or without modification, are |
57 |
* permitted in any medium without royalty provided the copyright notice and |
58 |
* this notice are preserved. |
59 |
* |
60 |
* This file released under the GPLv2 license found here: |
61 |
* http://www.gnu.org/licenses/gpl.txt |
62 |
*/ |
63 |
#ifndef L32_INCLUDE_H |
64 |
#define L32_INCLUDE_H |
65 |
|
66 |
#define DEFAULT_LOWDIR "/mnt/gentoo32" |
67 |
#ifndef DEFAULT_LOWDIR |
68 |
#error "Please edit l32.h and define your DEFAULT_LOWDIR" |
69 |
#endif |
70 |
#define PACKAGE "l32" |
71 |
#define VERSION "1.1" |
72 |
#define COPYRIGHT "Copyright 2005 by Billy Holmes <billy@××××××.net>" |
73 |
#define LICENSE "Distributed under the GPL2" |
74 |
#endif |
75 |
lightning ~ # |
76 |
|
77 |
3) I build the digest: |
78 |
|
79 |
lightning ~ # ebuild /usr/local/portage/sys-apps/l32/l32-1.1.ebuild digest |
80 |
>>> Generating digest file... |
81 |
<<< l32_1.1.tar.gz |
82 |
>>> Generating manifest file... |
83 |
<<< l32-1.1.ebuild |
84 |
<<< files/digest-l32-1.1 |
85 |
<<< files/l32_1.1.tar |
86 |
<<< files/COPYING |
87 |
<<< files/Changelog |
88 |
<<< files/INSTALL |
89 |
<<< files/Makefile |
90 |
<<< files/l32.1 |
91 |
<<< files/l32.1.pod |
92 |
<<< files/l32.c |
93 |
<<< files/l32.h |
94 |
<<< files/mkman.sh |
95 |
<<< files/l32_h-gentoo.patch |
96 |
<<< files/gentoo/l32_h-gentoo.patch |
97 |
<<< files/gentoo/l32-1.1.ebuild |
98 |
<<< files/gentoo/README |
99 |
>>> Computed message digests. |
100 |
|
101 |
lightning ~ # |
102 |
|
103 |
4) I emerge it successfully: |
104 |
|
105 |
lightning ~ # emerge l32 |
106 |
Calculating dependencies ...done! |
107 |
>>> emerge (1 of 1) sys-apps/l32-1.1 to / |
108 |
>>> md5 files ;-) l32-1.1.ebuild |
109 |
<SNIP> |
110 |
>>> original instance of package unmerged safely. |
111 |
>>> Regenerating /etc/ld.so.cache... |
112 |
>>> sys-apps/l32-1.1 merged. |
113 |
|
114 |
>>> clean: No packages selected for removal. |
115 |
|
116 |
>>> Auto-cleaning packages ... |
117 |
|
118 |
>>> No outdated packages were found on your system. |
119 |
|
120 |
|
121 |
* GNU info directory index is up-to-date. |
122 |
|
123 |
lightning ~ # |
124 |
|
125 |
5) Whether I run as root or user I get the same message: |
126 |
|
127 |
lightning ~ # l32 /bin/bash |
128 |
Unable to chroot(/home/32-bit): No such file or directory |
129 |
lightning ~ # exit |
130 |
logout |
131 |
mark@lightning ~ $ l32 /bin/bash |
132 |
Unable to chroot(/home/32-bit): No such file or directory |
133 |
mark@lightning ~ $ |
134 |
|
135 |
|
136 |
6) My chroot directory is /mnt/gentoo32 as per the build instructions: |
137 |
|
138 |
mark@lightning ~ $ ls -la /mnt/ |
139 |
total 36 |
140 |
drwxr-xr-x 9 root root 4096 Dec 7 11:19 . |
141 |
drwxr-xr-x 22 root root 4096 Nov 4 15:24 .. |
142 |
-rw-r--r-- 1 root root 0 Jul 27 09:17 .keep |
143 |
drwxr-xr-x 2 root root 4096 Sep 2 09:27 Musiclib |
144 |
drwxr-xr-x 2 root root 4096 Sep 18 13:23 camera |
145 |
drwxr-xr-x 2 root root 4096 Jul 27 09:17 cdrom |
146 |
drwxr-xr-x 2 root root 4096 Sep 26 11:05 dvd |
147 |
drwx------ 2 root root 4096 Jul 27 09:17 floppy |
148 |
drwxr-xr-x 18 root root 4096 Aug 10 04:47 gentoo32 |
149 |
drwxr-xr-x 2 root root 4096 Oct 3 11:21 media |
150 |
mark@lightning ~ $ ls -la /mnt/gentoo32/ |
151 |
total 72 |
152 |
drwxr-xr-x 18 root root 4096 Aug 10 04:47 . |
153 |
drwxr-xr-x 9 root root 4096 Dec 7 11:19 .. |
154 |
drwxr-xr-x 2 root root 4096 Dec 7 13:27 bin |
155 |
drwxr-xr-x 2 root root 4096 Jul 26 10:12 boot |
156 |
drwxr-xr-x 17 root root 13920 Dec 8 07:38 dev |
157 |
drwxr-xr-x 45 root root 4096 Dec 8 11:50 etc |
158 |
drwxr-xr-x 2 root root 4096 Jul 26 10:11 home |
159 |
drwxr-xr-x 7 root root 4096 Dec 8 09:11 lib |
160 |
drwx------ 2 root root 16384 Dec 7 11:27 lost+found |
161 |
drwxr-xr-x 4 root root 4096 Jul 26 10:11 mnt |
162 |
drwxr-xr-x 4 root root 4096 Dec 7 19:25 opt |
163 |
dr-xr-xr-x 145 root root 0 Dec 7 23:37 proc |
164 |
drwx------ 7 root root 4096 Dec 8 11:50 root |
165 |
drwxr-xr-x 2 root root 4096 Dec 7 18:10 sbin |
166 |
drwxr-xr-x 10 root root 0 Dec 7 23:37 sys |
167 |
drwxrwxrwt 20 root root 4096 Dec 8 14:48 tmp |
168 |
drwxr-xr-x 15 root root 4096 Dec 7 17:02 usr |
169 |
drwxr-xr-x 12 root root 4096 Dec 7 18:50 var |
170 |
mark@lightning ~ $ |
171 |
|
172 |
Thanks, |
173 |
Mark |
174 |
|
175 |
-- |
176 |
gentoo-amd64@g.o mailing list |