1 |
On Saturday 31 August 2002 21:54, mschroer wrote: |
2 |
> I am new to Gentoo and having trouble with an ebuild. I put the latest |
3 |
> tarball of anjuta-0.9.99.tar.gz in the distfile directory and built a |
4 |
> new ebuild file from the anjuta-0.1.9.ebuild. When I emerge, running as |
5 |
> root, I get the following error: |
6 |
> |
7 |
> ******** all the unpack and compile seem to work fine and the image is |
8 |
> built in var/// and I get to here ******* |
9 |
> |
10 |
> make install-man1 |
11 |
> make[3]: Entering directory |
12 |
> `/var/tmp/portage/anjuta-0.9.99/work/anjuta-0.9.99/doc' |
13 |
> /bin/sh ../mkinstalldirs /usr/share/man/man1 |
14 |
> /bin/install -c -m 644 ./anjuta.1 /usr/share/man/man1/anjuta.1 |
15 |
> ACCESS DENIED open_wr: /usr/share/man/man1/anjuta.1 |
16 |
> /bin/install: cannot create regular file `/usr/share/man/man1/anjuta.1': |
17 |
> Permission denied |
18 |
> /bin/install -c -m 644 ./anjuta_launcher.1 |
19 |
> /usr/share/man/man1/anjuta_launcher.1 |
20 |
> ACCESS DENIED open_wr: /usr/share/man/man1/anjuta_launcher.1 |
21 |
> /bin/install: cannot create regular file |
22 |
> `/usr/share/man/man1/anjuta_launcher.1': Permission denied |
23 |
> make[3]: *** [install-man1] Error 1 |
24 |
> make[3]: Leaving directory |
25 |
> `/var/tmp/portage/anjuta-0.9.99/work/anjuta-0.9.99/doc' |
26 |
> make[2]: *** [install-man] Error 2 |
27 |
> make[2]: Leaving directory |
28 |
> `/var/tmp/portage/anjuta-0.9.99/work/anjuta-0.9.99/doc' |
29 |
> make[1]: *** [install-am] Error 2 |
30 |
> make[1]: Leaving directory |
31 |
> `/var/tmp/portage/anjuta-0.9.99/work/anjuta-0.9.99/doc' |
32 |
> make: *** [install-recursive] Error 1 |
33 |
> |
34 |
> !!! ERROR: The ebuild did not complete successfully. |
35 |
> !!! Function src_install, Line 8, Exitcode 2 |
36 |
> !!! (no error message) |
37 |
> |
38 |
> --------------------------- ACCESS VIOLATION SUMMARY |
39 |
> --------------------------- |
40 |
> LOG FILE = "/tmp/sandbox-anjuta-0.9.99-23571.log" |
41 |
> |
42 |
> open_wr: /usr/share/man/man1/anjuta.1 |
43 |
> open_wr: /usr/share/man/man1/anjuta_launcher.1 |
44 |
> --------------------------------------------------------------------------- |
45 |
>----- !!! emerge aborting on |
46 |
> /usr/portage/dev-util/anjuta/anjuta-0.9.99.ebuild . |
47 |
> |
48 |
> |
49 |
> Can anyone help me ? |
50 |
> |
51 |
|
52 |
The trick is that portage uses sandboxing. This means building is only allowed |
53 |
in /var/tmp/portage/<bla> |
54 |
|
55 |
This means you must persuade anjuta to install in the destination root which |
56 |
is given in an ebuild by ${D}. This technique makes it a lot easier to track |
57 |
which files should become part of the package. |
58 |
|
59 |
Oftern this persuading can be done with the DESTDIR variable, but sometimes |
60 |
further tricks are nescesary. I advise you to look at some ebuilds (look for |
61 |
PREFIX=${D}/usr/ ), and check the makefile of anjuta. |
62 |
|
63 |
Paul |
64 |
|
65 |
-- |
66 |
Paul de Vrieze |
67 |
Junior Researcher |
68 |
Mail: pauldv@××××××.nl |
69 |
Homepage: http://www.devrieze.net |