From: Martin v. Löwis Date: Thu, 17 Aug 2006 18:54:43 +0000 (+0000) Subject: Invoke debug mk1mf.pl after running Configure. X-Git-Tag: v2.5c2~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=552262409dffc06b57c64ca8bfe011b8a10b2453;p=thirdparty%2FPython%2Fcpython.git Invoke debug mk1mf.pl after running Configure. --- diff --git a/Misc/NEWS b/Misc/NEWS index c4824110ebb9..d9bff35ba77d 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -4,6 +4,16 @@ Python News (editors: check NEWS.help for information about editing NEWS using ReST.) +What's New in Python 2.5 ? +============================================= + +*Release date: XX-SEP-2006* + +Build +----- + +- Fix OpenSSL debug build process. + What's New in Python 2.5 release candidate 1? ============================================= diff --git a/PCbuild/build_ssl.py b/PCbuild/build_ssl.py index 03f3d767c1e8..5ab34498a846 100644 --- a/PCbuild/build_ssl.py +++ b/PCbuild/build_ssl.py @@ -139,23 +139,26 @@ def main(): try: os.chdir(ssl_dir) # If the ssl makefiles do not exist, we invoke Perl to generate them. - if not os.path.isfile(makefile): + # Due to a bug in this script, the makefile sometimes ended up empty + # Force a regeneration if it is. + if not os.path.isfile(makefile) or os.path.getsize(makefile)==0: print "Creating the makefiles..." sys.stdout.flush() # Put our working Perl at the front of our path os.environ["PATH"] = os.path.dirname(perl) + \ os.pathsep + \ os.environ["PATH"] + run_configure(configure, do_script) if arch=="x86" and debug: # the do_masm script in openssl doesn't generate a debug # build makefile so we generate it here: os.system("perl util\mk1mf.pl debug "+configure+" >"+makefile) - run_configure(configure, do_script) # Now run make. - print "Executing nmake over the ssl makefiles..." + makeCommand = "nmake /nologo PERL=\"%s\" -f \"%s\"" %(perl, makefile) + print "Executing ssl makefiles:", makeCommand sys.stdout.flush() - rc = os.system("nmake /nologo PERL=\"%s\" -f \"%s\"" %(perl, makefile)) + rc = os.system(makeCommand) if rc: print "Executing "+makefile+" failed" print rc