View previous topic :: View next topic |
Author |
Message |
Hayl Guru
Joined: 28 Jan 2003 Posts: 442 Location: Calgary, Alberta, Canada
|
Posted: Thu Aug 21, 2003 5:39 pm Post subject: How to enable an ebuild to create the files for etc-update ? |
|
|
I am getting the following error in an ebuild I wrote:
Quote: | /bin/install -c -m 644 ./guid-resolv.conf /etc/guid-resolv.conf
ACCESS DENIED unlink: /etc/guid-resolv.conf
/bin/install: cannot remove `/etc/guid-resolv.conf': Permission denied
make[1]: *** [install-data-local] Error 1
make[1]: Leaving directory `/var/tmp/portage/gscanbus-0.7.1/work/gscanbus-0.7.1'
make: *** [install-am] Error 2
man:
prepallstrip:
strip:
strip:
usr/bin/gscanbus
>>> Completed installing into /var/tmp/portage/gscanbus-0.7.1/image/
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-gscanbus-0.7.1-24118.log"
unlink: /etc/guid-resolv.conf
----------------------------------------------------------------------------- |
How can I fix this? I think it is doing this becuase the /etc directory is protected by portage. I want it to create the file for etc-update and not error out.
Here is my ebuild:
Code: | # Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/app-admin/gscanbus/gscanbus-0.7.1,v 1.1 2003/08/21 21:40:31 dkd$
DESCRIPTION="GUI for viewing the ieee1394 (firewire) bus"
HOMEPAGE="http://gscanbus.berlios.de/"
SRC_URI="http://download.berlios.de/gscanbus/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=x11-libs/gtk+-2.0.0"
# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
#RDEPEND=""
S=${WORKDIR}/${P}
src_compile() {
econf || die
emake || die
}
src_install() {
make prefix=${D}/usr libdir=${D}/etc install die
dodoc README
}
|
|
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
|
Back to top |
|
|
Hayl Guru
Joined: 28 Jan 2003 Posts: 442 Location: Calgary, Alberta, Canada
|
Posted: Thu Aug 21, 2003 8:08 pm Post subject: |
|
|
excellent! thank you. |
|
Back to top |
|
|
|