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 3B5EFAC4FD for ; Fri, 14 Jun 2002 19:05:33 -0500 (CDT) Received: from list by main.gmane.org with local (Exim 3.33 #1 (Debian)) id 17J14P-0008Sj-00 for ; Sat, 15 Jun 2002 02:05:33 +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 17J14O-0008Sb-00 for ; Sat, 15 Jun 2002 02:05:32 +0200 Path: not-for-mail From: Thomas de Grenier de Latour Newsgroups: gmane.linux.gentoo.devel Date: Sat, 15 Jun 2002 02:08:42 +0200 Organization: Fasmz Message-ID: <20020615020842.53da3aaf.degrenier@easyconnect.fr> References: <20020615010924.45b657a7.degrenier@easyconnect.fr> <3D0A7DB9.4090109@acm.org> 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 1024099532 26688 212.11.38.64 (15 Jun 2002 00:05:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 15 Jun 2002 00:05:32 +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: 474d0367-727b-4d9c-909f-5484c099a694 X-Archives-Hash: 5325ef07a35f4b7468d636d5822dc5d3 On Fri, 14 Jun 2002 19:35:21 -0400 "Chad M. Huneycutt" wrote: > Thomas de Grenier de Latour wrote: > > I'm trying to write an ebuild for "xawdecode", a TV program based on > > "xawtv". I've based on xawtv-3.7.2.ebuild, but I have a problem: 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. How are we supposed to deal with this kind of > > incompatibility ? I've though about patching the Makefile to place the > > font somewhere else, but I don't feel it really satisfying. > > You are missing a very important point. Your ebuild should not be writing > *anything* to the live filesystem. Everything goes in ${D} > (/var/tmp/portage//image/). Have you looked at other ebuilds? > In particular, you should look at some examples of dodir and doins. > Ok, I start to understand... I've got something like this, middle-clicked from the original xawtv ebuild: [...] 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 [...] But $fontdir is probably not used in xawdecode Makefiles as it is in xawtv ones. Sorry about this, I think I need to give a closer look to several things before writing things I don't understand. No TV tonight ;) Thanks for your help, -- Thomas.