From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DMARC_MISSING, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by chiba.3jane.net (Postfix) with ESMTP id 1F3C2ABD78 for ; Fri, 14 Jun 2002 18:49:11 -0500 (CDT) Received: from list by main.gmane.org with local (Exim 3.33 #1 (Debian)) id 17J0oZ-00089I-00 for ; Sat, 15 Jun 2002 01:49:11 +0200 To: gentoo-dev@lists.gentoo.org X-Injected-Via-Gmane: http://gmane.org/ Received: from news by main.gmane.org with local (Exim 3.33 #1 (Debian)) id 17J0oY-00089A-00 for ; Sat, 15 Jun 2002 01:49:10 +0200 Path: not-for-mail From: Thomas de Grenier de Latour Newsgroups: gmane.linux.gentoo.devel Date: Sat, 15 Jun 2002 01:52:19 +0200 Organization: Fasmz Message-ID: <20020615015219.1acbafd8.degrenier@easyconnect.fr> References: <20020615010924.45b657a7.degrenier@easyconnect.fr> NNTP-Posting-Host: 212.11.38.64 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1024098550 26688 212.11.38.64 (14 Jun 2002 23:49:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Jun 2002 23:49:10 +0000 (UTC) X-Newsreader: Sylpheed version 0.7.6claws (GTK+ 1.2.10; i686-pc-linux-gnu) Subject: [gentoo-dev] Re: Problem writing my first ebuild Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: b433967c-6b19-41b3-b93d-2e72620e65b3 X-Archives-Hash: 44031d764ce006a022621b7d10ee40ff On Sat, 15 Jun 2002 01:09:24 +0200 Thomas de Grenier de Latour wrote: > a few files, some fonts to go in /usr/X11R6/lib/X11/fonts/misc, are > shared by this two program, so I can't emerge my application because > of a sandbox write lock. Sorry about replying to myself, but I'm wondering if the problem is related to xawtv... I tried even after unmerging xawtv, and it still happens: [...] Making install in font make[1]: Entering directory `/var/tmp/portage/xawdecode-1.6.1/work/xawdecode-1.6.1/font' mkfontdir mkdir -p //usr/X11R6/lib/X11/fonts/misc for file in led-fixed.pcf; do \ install -m 644 $file //usr/X11R6/lib/X11/fonts/misc; \ done ACCESS DENIED open_wr: //usr/X11R6/lib/X11/fonts/misc/led-fixed.pcf install: cannot create regular file `//usr/X11R6/lib/X11/fonts/misc/led-fixed.pcf': Permission denied make[1]: *** [install] Error 1 [...] For informations, here is my attempt of ebuild file (all the fonts related stuff is exact copy of the xawtv ebuild, wich I'm not sure to understand...) : # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # Author Thomas de Grenier de Latour # (based on xawtv-3.7.3.ebuild by Craig Dooley) S=${WORKDIR}/${P} DESCRIPTION="TV application for the bttv driver, with decrypting plugin support" SRC_URI="http://www.geocities.com/Xawdecode/download/xawdecode-1.6.1.tar.gz" HOMEPAGE="http://www.xawdecode.fr.st" SLOT="0" DEPEND="virtual/glibc >=media-libs/jpeg-6b >=x11-base/xfree-4.0.1 encode? ( media-libs/divx4linux ) encode? ( media-sound/lame ) # for lirc support, have a look here: # http://bugs.gentoo.org/show_bug.cgi?id=3328 lirc? ( sys-apps/lirc )" src_unpack() { unpack ${PN}-${PV}.tar.gz cd ${S} } src_compile() { local myconf use encode && myconf="--enable-divx" \ || myconf="--disable-divx" use lirc && myconf="$myconf --enable-lirc" \ || myconf="$myconf --disable-lirc" ./configure --prefix=/usr --host=${CHOST} \ --enable-jpeg \ --enable-xfree-ext \ --enable-xvideo \ --with-x $myconf || die emake || die } src_install() { fontdir=${D}/usr/X11R6/lib/X11/fonts/misc make install \ prefix=${D}/usr \ mandir=${D}/usr/share/man resdir=${D}/etc/X11 \ fontdir=$fontdir || die # remove the bogus fonts.dir so it isn't "owned" by this ebuild rm -f $fontdir/fonts.dir dodoc AUTHORS Changelog COPYING NEWS dodoc README* Readme* } src_postinst() { mkfontdir /usr/X11R6/lib/X11/fonts/misc } src_postrm() { mkfontdir /usr/X11R6/lib/X11/fonts/misc }