On Sat, Dec 03, 2005 at 11:25:45AM +0100, Istvan Varga wrote: > On Friday 02 December 2005 19:40, Jeremiah Benham wrote: > > > Is there anyway to control the creation of these files: > > .sconsign > > I find them everywhere like in my /usr/include > > > > There reason why is becuase I am trying to write and ebuild for csound5 but > > scons tries to write outside of the sandbox when doing a compile. I am not > > tring to do an install just a compile stage and yet it tries to write all > > hese .sconsign files in all the include directories. I believe these > > directories are all defined in CPPPATH. I want to know if I can either stop > > them from creating these files or put them someplace temporarily. i have > > been reading over scons documentation all morning and was wondering if > > someone could help with this. > > Try not running scons as root, and installing to some temporary directory > like /tmp/csound5/usr or similar instead of /usr. You may also make some > use of the mkpackage.py script. I fixed it with this. I can probably do this better with something other than sed. Oh well. Here it is: cat SConstruct | \ sed -e "s|return 'unsupported'|'return unsupported'\nenv = Environment()\nenv.SConsignFile()|g" > temp.txt mv temp.txt SConstruct What needed to be added was two lines of code to the SConstruct file. These lines are: env = Environment() env.SConsignFile() These lines need to be added before any of the CPPPATH,LIBPATH and all that other stuff gets defined. I placed it on lines 58-59. That may not be the most logical place for it though. These two lines has scons create the .sconsign files in one large .sconsign file in the top build directory rather than creating multiple .sconsign files all over the filesystem during the compilation. I placed the sed script in my ebuild. It may break something though if SConstruct is changed in a way that has more lines that say return 'unsupported' in it. Thanks, Jeremiah ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net