1 |
Hello. |
2 |
|
3 |
I decided to do an ebuild for "WebDownloader for X" and ran into a bizarre permission problem when the compiled package is being installed. For reference, here's the .ebuild itself: |
4 |
|
5 |
===================================================================== |
6 |
# Copyright 1999-2002 Gentoo Technologies, Inc. |
7 |
# Distributed under the terms of the GNU General Public License v2 |
8 |
# $Header: $ |
9 |
|
10 |
DESCRIPTION="A GUI program for downloading files using FTP/HTTP." |
11 |
|
12 |
NAME="d4x" |
13 |
|
14 |
SRC_URI="http://www.krasu.ru/soft/chuchelo/files/${NAME}-${PV}.tar.gz |
15 |
ftp://ftp.chg.ru/pub/X11/applications/${NAME}-${PV}.tar.gz" |
16 |
HOMEPAGE="http://www.krasu.ru/soft/chuchelo/" |
17 |
|
18 |
LICENSE="Artistic" |
19 |
|
20 |
DEPEND="=dev-libs/glib-1.2* |
21 |
=x11-libs/gtk+-1.2* |
22 |
nls? ( sys-devel/gettext )" |
23 |
|
24 |
S=${WORKDIR}/${NAME}-${PV} |
25 |
|
26 |
src_compile() { |
27 |
|
28 |
local myconf |
29 |
use nls || myconf="--disable-nls" |
30 |
use oss || myconf="${myconf} --disable-oss" |
31 |
use esd || myconf="${myconf} --disable-esd" |
32 |
|
33 |
./configure ${myconf} \ |
34 |
--prefix=/usr \ |
35 |
--datadir=/usr/share \ |
36 |
--infodir=/usr/share/info \ |
37 |
--mandir=/usr/share/man \ |
38 |
--enable-release || die "./configure failed" |
39 |
|
40 |
emake || die |
41 |
|
42 |
} |
43 |
|
44 |
src_install () { |
45 |
|
46 |
make DESTDIR=${D} install || die "install failed" |
47 |
|
48 |
dodoc AUTHORS COPYING ChangeLog NEWS PLANS README TODO |
49 |
|
50 |
} |
51 |
===================================================================== |
52 |
|
53 |
The package compiles without errors, but during the installation, it aborts with the following error: |
54 |
|
55 |
===================================================================== |
56 |
/bin/sh ../admin/mkinstalldirs /usr/share/d4x |
57 |
mkdir /usr/share/d4x |
58 |
ACCESS DENIED mkdir: /usr/share/d4x |
59 |
mkdir: cannot create directory `/usr/share/d4x': Permission denied |
60 |
make[2]: *** [install-data-local] Error 1 |
61 |
make[2]: Leaving directory `/var/tmp/portage/webdownloader-2.0/work/d4x-2.0/share' |
62 |
make[1]: *** [install-am] Error 2 |
63 |
make[1]: Leaving directory `/var/tmp/portage/webdownloader-2.0/work/d4x-2.0/share' |
64 |
make: *** [install-recursive] Error 1 |
65 |
|
66 |
!!! ERROR: The ebuild did not complete successfully. |
67 |
!!! Function src_install, Line 2, Exitcode 2 |
68 |
!!! install failed |
69 |
|
70 |
--------------------------- ACCESS VIOLATION SUMMARY --------------------------- |
71 |
LOG FILE = "/tmp/sandbox-webdownloader-2.0-7385.log" |
72 |
|
73 |
mkdir: /usr/share/d4x |
74 |
-------------------------------------------------------------------------------- |
75 |
!!! emerge aborting on /usr/portage/net-misc/webdownloader/webdownloader-2.0.ebuild . |
76 |
===================================================================== |
77 |
|
78 |
I can see that other packages have their subdirectories under /usr/share and that /usr/share itself is drwxr-xr-x and owned by root. I am (obviously) running emerge as root and for the life of me cannot figure out what prevents the ebuild from installing the package completely, any ideas ? |
79 |
|
80 |
Sincerely, |
81 |
Dan Naumov |