[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

gen-make.py fails unless --with-httpd is given (related to r24116)

From: Daniel <danielsh+svn-dev_at_fastmail.fm>
Date: 2007-04-01 04:29:33 CEST

Hello all,

using current trunk (r24300), if I run gen-make.py without the --with-
httpd argument, I get an error:

=======================================================
> python gen-make.py --release [--with apr,openssl,neon,sqlite,zlib,ml,vsnet-version=2003,-t=vcproj]
    ...
    Found neon version 0.26.1
    Traceback (most recent call last):
      File "gen-make.py", line 261, in ?
        main(conf, gentype, skip_depends=skip, other_options=rest.list)
      File "gen-make.py", line 40, in main
        generator.write()
      File "build\generator\gen_vcnet_vcproj.py", line 173, in write
        self.write_project(target, fname)
      File "build\generator\gen_vcnet_vcproj.py", line 61, in
      write_project
        configs = self.get_configs(target)
      File "build\generator\gen_win.py", line 400, in get_configs
        libdirs=self.get_win_lib_dirs(target, cfg),
      File "build\generator\gen_win.py", line 848, in get_win_lib_dirs
        fakelibdirs.append(self.apath(self.httpd_path, cfg))
      File "build\generator\gen_win.py", line 285, in apath
        if os.path.isabs(path):
      File "E:\Python\lib\ntpath.py", line 53, in isabs
        s = splitdrive(s)[1]
      File "E:\Python\lib\ntpath.py", line 119, in splitdrive
        if p[1:2] == ':':
    TypeError: unsubscriptable object
=======================================================

If I add the "--with-httpd" argument (even "--with-httpd=nul"), gen-
make.py completes without error; however, doing so causes
mod_dav_svn and mod_authz_svn to be needlessly added to the
compilation targets list (needlessly, because any attempt to compile
them will fail: httpd won't be found).

Both symptoms (the gen-make.py error and mod_dav_svn and
mod_authz_svn being added as targets) disappear if r24116 is
reverted. Until r24115, I have always run gen-make.py without
any --with-httpd switch, and never had either symptom.

Lieven Govaerts (on IRC) reproduced this error.

If I run win-tests.py, I get a similar error:

=======================================================
> python win-tests.py -r -v -c -f fsfs 2>&1
    Traceback (most recent call last):
      File "win-tests.py", line 451, in ?
        locate_libs()
      File "win-tests.py", line 214, in locate_libs
        partial_path = os.path.join(gen_obj.bdb_path, 'bin',
        gen_obj.bdb_lib)
      File "E:\Python\lib\ntpath.py", line 67, in join
        elif isabs(b):
      File "E:\Python\lib\ntpath.py", line 53, in isabs
        s = splitdrive(s)[1]
      File "E:\Python\lib\ntpath.py", line 119, in splitdrive
        if p[1:2] == ':':
    TypeError: unsubscriptable object
=======================================================

which also disappears if r24116 is reversed.

I am using Python 2.4.3. I am not using BDB or the Apache modules.

I hope this description is clear -- if it isn't, could you
please point out which parts should be clarified.

Thanks,

Daniel

P.S. I am not subscribed; please CC me on replies.

-- 
http://www.fastmail.fm/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 2 14:03:12 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.