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

[PATCH] improve error output with missing apr binary directory

From: Stefan <luke1410_at_posteo.de>
Date: Tue, 26 Jul 2016 00:57:08 +0200

Hi,

when generating the project files on Windows and the apr bin-directory
being missing the python gen-make.py call currently produces the
following cryptic error message:

Traceback (most recent call last):
  File "gen-make.py", line 326, in <module>
    main(conf, gentype, skip_depends=skip, other_options=rest.list)
  File "gen-make.py", line 62, in main
    generator = gen_module.Generator(fname, verfname, other_options)
  File "build\generator\gen_vcnet_vcproj.py", line 36, in __init__
    'vcnet-vcproj')
  File "build\generator\gen_win.py", line 83, in __init__
    self.find_libraries(True)
  File "build\generator\gen_win_dependencies.py", line 299, in
find_libraries
    self._find_apr()
  File "build\generator\gen_win_dependencies.py", line 408, in _find_apr
    bin_files = os.listdir(dll_dir)
WindowsError: [Error 3] The system cannot find the path specified:
'[...]\\dependencies\\httpd\\srclib\\apr\\bin/*.*'

The attached patch adds a check to produce a better readable error instead:

ERROR: no apr bin folder detected.
Make sure to have apr built prior to generating the SVN project.

Regards,
Stefan

Received on 2016-07-26 00:57:29 CEST

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.