Bugzilla – Bug 801
ns-3.7 and SVN not coexisting nicely
Last modified: 2010-04-16 12:41:41 UTC
Reported here: http://mailman.isi.edu/pipermail/ns-developers/2010-January/007365.html I use SVN to manage my ns-3 repository. After committing base ns-3.7 to SVN, I get the following when I try to build: $ ./waf Waf: Entering directory `/cygdrive/c/users/kevin/ns3.7/build' error: Could not read the file '/cygdrive/c/users/kevin/ns3.7/examples/.svn/wscript' It's trying to find wscript in my .svn directories. I had to comment out the following from the root wscript for the build to go through for me: # if env['ENABLE_EXAMPLES']: # bld.add_subdirs('examples') #for dir in os.listdir('examples'): # if os.path.isdir(os.path.join('examples', dir)): # bld.add_subdirs(os.path.join('examples', dir)) This did not happen in ns-3.6 as it looks like building the examples was done differently.
Created attachment 758 [details] proposed fix Omit CVS and .* subdirectories from examples/ listing.
(In reply to comment #0) > It's trying to find wscript in my .svn directories. I had to comment > out the following from the root wscript for the build to go through > for me: > > # if env['ENABLE_EXAMPLES']: > # bld.add_subdirs('examples') > #for dir in os.listdir('examples'): > # if os.path.isdir(os.path.join('examples', dir)): > # bld.add_subdirs(os.path.join('examples', dir)) Instead of commenting out this block of code, you can just "./waf configure --disable-examples".
Similar to bug 387 [1]. [1] http://www.nsnam.org/bugzilla/0
tested proposed fix with latest ns-3-dev and svn. fixes problem, pushing. changeset 3f7f94c78f0a