From kevin.burge at systemware.com Fri Jan 6 20:47:48 2006 From: kevin.burge at systemware.com (Kevin Burge) Date: Fri, 06 Jan 2006 19:47:48 -0600 Subject: [Rant] Really confusing problem with FileList Message-ID: <43BF1DC4.5050908@systemware.com> Hi Stefan, I've run into this issue several times, and I don't know if it's a bug, or if I'm just using this in correctly. Given: sources = sys['*.c'] and objs = sources.sub_ext('.o') when I make: file 'someexe' => objs do |t| # execute the linking command end t.prerequisites ends up looking like this: post.o post.o sample.o sample.o text.o text.o util.o util.o (dups of all the obj files) I finally found the workaround, which was to do this: file 'someexe' => objs.to_ary do |t| # execute the linking command end Then t.prerequisites has no dups. Help? Kevin Please visit http://www.systemware.com/. From kevin.burge at systemware.com Fri Jan 6 20:51:07 2006 From: kevin.burge at systemware.com (Kevin Burge) Date: Fri, 06 Jan 2006 19:51:07 -0600 Subject: [Rant] Really confusing problem with FileList In-Reply-To: <43BF1DC4.5050908@systemware.com> References: <43BF1DC4.5050908@systemware.com> Message-ID: <43BF1E8B.7040903@systemware.com> Actually, my "to_ary" workaround didn't work. I still see t.preqrequisites having two entries for every object file. Please visit http://www.systemware.com/. From kevin.burge at systemware.com Fri Jan 6 20:57:28 2006 From: kevin.burge at systemware.com (Kevin Burge) Date: Fri, 06 Jan 2006 19:57:28 -0600 Subject: [Rant] Really confusing problem with FileList In-Reply-To: <43BF1E8B.7040903@systemware.com> References: <43BF1DC4.5050908@systemware.com> <43BF1E8B.7040903@systemware.com> Message-ID: <43BF2008.8060706@systemware.com> I think the problem is this: @rac.file exe => [ 'args.o' ] do |t| p t.prerequisites end reveals: ["args.o", "args.o"] which, I don't think is right. I have no idea why it's doing that. Kevin Burge wrote: >Actually, my "to_ary" workaround didn't work. I still see >t.preqrequisites having two entries for every object file. > > > >Please visit http://www.systemware.com/. > >_______________________________________________ >make-cafe mailing list >make-cafe at rubyforge.org >http://rubyforge.org/mailman/listinfo/make-cafe > > > From kevin.burge at systemware.com Fri Jan 6 21:22:59 2006 From: kevin.burge at systemware.com (Kevin Burge) Date: Fri, 06 Jan 2006 20:22:59 -0600 Subject: [Rant] Really confusing problem with FileList In-Reply-To: <43BF2008.8060706@systemware.com> References: <43BF1DC4.5050908@systemware.com> <43BF1E8B.7040903@systemware.com> <43BF2008.8060706@systemware.com> Message-ID: <43BF2603.2010803@systemware.com> Actually, I did run into this before, and I figured it out. I just figured it out again. Elsewhere I had essentially: file 'args.o' => somedirectory to make the object file depend on the directory it was going to be placed in. I guess I'm doing that incorrectly. I think that would need to use SubFile, but I don't want Autoclean to trash my drive (again - at least I was in windows). Not sure of the way to do this. Kevin Please visit http://www.systemware.com/. From langstefan at gmx.at Sat Jan 7 03:24:30 2006 From: langstefan at gmx.at (Stefan Lang) Date: Sat, 7 Jan 2006 09:24:30 +0100 Subject: [Rant] Really confusing problem with FileList In-Reply-To: <43BF1DC4.5050908@systemware.com> References: <43BF1DC4.5050908@systemware.com> Message-ID: <200601070924.30649.langstefan@gmx.at> On Saturday 07 January 2006 02:47, Kevin Burge wrote: > Hi Stefan, > > I've run into this issue several times, and I don't know if it's a > bug, or if I'm just using this in correctly. > > Given: > sources = sys['*.c'] > and > objs = sources.sub_ext('.o') This should be objs = sources.sub_ext('o') > when I make: > > file 'someexe' => objs do |t| > # execute the linking command > end > > t.prerequisites ends up looking like this: > > post.o > post.o > sample.o > sample.o > text.o > text.o > util.o > util.o I couldn't reproduce this with Rant 0.5.4. But you can use "objs.uniq!" on the final FileList, then the list won't contain duplicate entries. Regards, Stefan From kevin.burge at systemware.com Sat Jan 7 11:54:51 2006 From: kevin.burge at systemware.com (Kevin Burge) Date: Sat, 07 Jan 2006 10:54:51 -0600 Subject: [Rant] Really confusing problem with FileList In-Reply-To: <200601070924.30649.langstefan@gmx.at> References: <43BF1DC4.5050908@systemware.com> <200601070924.30649.langstefan@gmx.at> Message-ID: <43BFF25B.3030106@systemware.com> Hi Stefan, Thanks. I'm using 0.5.4 also, I'll see if I can write a simple test case and send it to you. Kevin Please visit http://www.systemware.com/. From nickel at cip.ifi.lmu.de Tue Jan 10 09:44:45 2006 From: nickel at cip.ifi.lmu.de (Max Nickel) Date: Tue, 10 Jan 2006 15:44:45 +0100 Subject: [Rant] 2 patches Message-ID: <200601101544.45935.nickel@cip.ifi.lmu.de> Hi, i'd like to offer 2 patches for rant which i find useful. The first one changes Rant::RantApp#plugin to also accept Plugins not lying in rant/plugins. This way you can distribute custom plugins in the Rantfile or anywhere else without needing access to this directory. Right now you would have to put 'Rant::CODE_IMPORTS << "your_plugin"' in the Rantfile to get it loaded and i think this is unnecessary. The second one changes RubyTest to require 'test/unit' instead of running testrb as this is sufficient for TestCases and 'testrb' isnt available on all systems (debian-like use testrb1.8 for example) kind regards and keep up the great work /max -------------- next part -------------- A non-text attachment was scrubbed... Name: rantlib.rb.patch Type: text/x-diff Size: 439 bytes Desc: not available Url : http://rubyforge.org/pipermail/make-cafe/attachments/20060110/036e40d6/rantlib.rb.bin -------------- next part -------------- A non-text attachment was scrubbed... Name: rubytest.rb.patch Type: text/x-diff Size: 446 bytes Desc: not available Url : http://rubyforge.org/pipermail/make-cafe/attachments/20060110/036e40d6/rubytest.rb.bin From kevin.burge at systemware.com Mon Jan 30 23:14:42 2006 From: kevin.burge at systemware.com (Kevin Burge) Date: Mon, 30 Jan 2006 22:14:42 -0600 Subject: [Rant] sys.rant and -jN Message-ID: <43DEE432.8090605@systemware.com> Hi Stefan, I'm workng on an autobuild process, and I want to run rant for each "component". Each component has it's own "root.rant" file. How would you recommend calling this? I thought about a sys.rant method, since you already have sys.ruby. My ultimate goal is to have the "children" rant's not cause the overall build process to fail, but only the one that failed, and any of it's dependants. I.e. if C depends on A and B, and if B fails to build, C shouldn't build, but D, E and F that are unrelated should still build (all of these components each having their own "root.rant"). Along these same lines: would it be difficult to add parallel dependency processing like the -jN switch to make? I'm wanting to use distcc, and that partly depends on the make-tool. Thanks, Kevin http://www.systemware.com/