1 |
hello gentoo devs, |
2 |
|
3 |
i'm working on an ebuild for the VRB library. i need this library for |
4 |
compiling other things. i have read the developer howtos and the skel.ebuild |
5 |
file and still have no idea how i can fix my problems. |
6 |
|
7 |
i think (please correct me if it's false), that when i'm setting DESTDIR=${D} |
8 |
between make and install in src_install(), the ebuild has write access to the |
9 |
DESTDIR. when installing VRB i need to have write access to /usr/bin, |
10 |
/usr/lib and /usr/include. is this possible?? |
11 |
|
12 |
you can find the error messsage and a part of my ebuild script below. |
13 |
|
14 |
regards |
15 |
hanez... ;-) |
16 |
|
17 |
### |
18 |
test -d /usr/bin || ( mkdir -p /usr/bin ; chmod 0755 /usr/bin ) |
19 |
test -d /usr/include/libvrb || ( mkdir -p /usr/include/libvrb ; chmod 0755 |
20 |
/usr/include/libvrb ) |
21 |
ACCESS DENIED mkdir: /usr/include/libvrb |
22 |
mkdir: cannot create directory `/usr/include/libvrb': Permission denied |
23 |
chmod: failed to get attributes of `/usr/include/libvrb': No such file or |
24 |
directory |
25 |
make: [install_dirs] Error 1 (ignored) |
26 |
test -d /usr/lib || ( mkdir -p /usr/lib ; chmod 0755 /usr/lib ) |
27 |
rm -f /usr/bin/_new_iobuffer |
28 |
cp -fp bin/iobuffer /usr/bin/_new_iobuffer |
29 |
ACCESS DENIED open_wr: /usr/bin/_new_iobuffer |
30 |
cp: cannot create regular file `/usr/bin/_new_iobuffer': Permission denied |
31 |
make: *** [install_all] Error 1 |
32 |
|
33 |
!!! ERROR: The ebuild did not complete successfully. |
34 |
!!! Function src_install, Line 3, Exitcode 2 |
35 |
!!! make install failed |
36 |
|
37 |
--------------------------- ACCESS VIOLATION SUMMARY |
38 |
--------------------------- |
39 |
LOG FILE = "/tmp/sandbox-vrb-0.3.0-14558.log" |
40 |
|
41 |
mkdir: /usr/include/libvrb |
42 |
open_wr: /usr/bin/_new_iobuffer |
43 |
-------------------------------------------------------------------------------- |
44 |
### |
45 |
|
46 |
part of the ebuild script: |
47 |
|
48 |
### |
49 |
src_unpack() { |
50 |
|
51 |
unpack "${P}.tar.gz" |
52 |
|
53 |
} |
54 |
|
55 |
|
56 |
src_compile() { |
57 |
|
58 |
cd ${S} |
59 |
|
60 |
# hmmm, why is the script called "C"onfigure??? |
61 |
./Configure \ |
62 |
--prefix=/usr || die "./Configure failed" |
63 |
emake || die "emake failed" |
64 |
} |
65 |
|
66 |
src_install () { |
67 |
|
68 |
cd ${S} |
69 |
make DESTDIR=${D} install || die "make install failed" |
70 |
|
71 |
dodoc INSTALL LICENSE README |
72 |
|
73 |
} |
74 |
|
75 |
### |