From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E5MOX-0006OI-UX for garchives@archives.gentoo.org; Wed, 17 Aug 2005 11:47:46 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7HBk2sr003937; Wed, 17 Aug 2005 11:46:02 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7HBgIOW014683 for ; Wed, 17 Aug 2005 11:42:19 GMT Received: by zproxy.gmail.com with SMTP id v1so109031nzb for ; Wed, 17 Aug 2005 04:43:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qXzZsUct3pv6Y1SNB5ILPRRJHFy8Q3hkVgw2RIc486iNB0vET4TQEnXqpJ45R0mV3R+uRKQvoaU53/NxLLFpcNDj6P1Fg2Xk5mm+bgoJ1XaM2fmqX9hQkqxfw7pV8LiQuv5fXPJ2aaoPBAPM3/hxlYRnU3+f4a4nZQ4OB8Hz114= Received: by 10.36.135.1 with SMTP id i1mr56089nzd; Wed, 17 Aug 2005 04:43:08 -0700 (PDT) Received: by 10.36.101.11 with HTTP; Wed, 17 Aug 2005 04:43:08 -0700 (PDT) Message-ID: <3212b1a805081704435d37a47@mail.gmail.com> Date: Wed, 17 Aug 2005 13:43:08 +0200 From: Andreas Fredriksson To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: Ebuild with scons and sandbox In-Reply-To: <4301B89E.8010900@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <4301B89E.8010900@gmail.com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j7HBgIOW014683 X-Archives-Salt: 9cb24c89-a811-4506-a719-8ebdf38e8394 X-Archives-Hash: c090005d52d3cdb05263476ac1b4dda8 On 8/16/05, Nagatoro wrote: > Hi, > > First off, I'm sorry if this is the wrong place to ask! > > I'm trying to write an ebuild for linuxdcpp (a gtk port of DC++). This > nice app uses scons and not make as the build tool. When I build it > manually it works just fine, but when I try to build it with emerge (or > ebuild) I get this: > Code: > > scons: done building targets. > ACCESS DENIED open_wr: /usr/include/gtk-2.0/gtk/.scons25064 [ SNIP ] > it seems to me like scons is littering the filesystem with somesort of > lock files but I've been unable to find any information on this. Does > anyone know how I can prevent scons from trying to make these files or > how I can fool scons into thinking that it could? I'm a SCons user so maybe I can shed some light on the issue. SCons uses content signatures rather than time stamps by default, that is it detects file changes by accumulating MD5 signatures of preprocessed data (i.e. with dependencies). This doesn't work very well on directories such as /usr, but SCons suppresses these errors by default since it's a normal situation on UNIX-like systems. The usual way is to move the include paths from SCons' CPPPATH construction variable to the CXXFLAGS (or CCFLAGS). This way SCons doesn't get to see the directories and therefore ignores the files during the dependency scan. You can also change the target signatures method to use time stamps ranther than content stamps. A good resource for making these modifications would be the scons site at www.scons.org and the wiki on the same site which has lots of information. Regards, Andreas -- And I hate redundancy, and having different functions for the same thing. - Linus Torvalds on linux-kernel -- gentoo-user@gentoo.org mailing list