Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to enable an ebuild to create the files for etc-update ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Hayl
Guru
Guru


Joined: 28 Jan 2003
Posts: 442
Location: Calgary, Alberta, Canada

PostPosted: Thu Aug 21, 2003 5:39 pm    Post subject: How to enable an ebuild to create the files for etc-update ? Reply with quote

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
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Thu Aug 21, 2003 5:59 pm    Post subject: Reply with quote

Here's a working ebuild for gscanbus:

https://bugs.gentoo.org/show_bug.cgi?id=26745

see my src_install() to see to answer your question:
https://forums.gentoo.org/viewtopic.php?t=75420&highlight=gscanbus
Back to top
View user's profile Send private message
Hayl
Guru
Guru


Joined: 28 Jan 2003
Posts: 442
Location: Calgary, Alberta, Canada

PostPosted: Thu Aug 21, 2003 8:08 pm    Post subject: Reply with quote

excellent! thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum