Gentoo Archives: gentoo-dev

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

Replies

Subject Author
Re: [gentoo-dev] ebuild problem Paul de Vrieze <pauldv@××××××.nl>