This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [mingw patches] alloca and posixmodule
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: ghaering Nosy List: ghaering, gvanrossum, nnorwitz, tim.peters
Priority: low Keywords: patch

Created on 2002-10-04 23:43 by ghaering, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
mingw_posixmodule.patch ghaering, 2002-10-04 23:43
Messages (8)
msg41327 - (view) Author: Gerhard Häring (ghaering) * (Python committer) Date: 2002-10-04 23:43
This is the first patch in a series of patching of
porting Python to native win32, while still using the
autoconf-based build process. The compiler used is
mingw, the build environment used is msys, a stripped
down Cygwin from the mingw project.

This patch does several things:

* change _alloca to alloca for both mingw and Visual
C++, to avoid unnecessary #ifdef-ing.

* Change the makesetup shell script to work for win32,
where for some weird reason we have a module 'nt' built
from a posixmodule.c file.

* Change on occurence of  #ifdef MS_WINDOWS in
posixmodule.c where it should really have been #ifdef
Py_WIN_WIDE_FILENAMES

* Change the #ifdefs in posixmodule.c so that it can be
built with both MSVC and mingw

The result of this patch is that we can build a
statically built python.exe with a simple
./configure
make
under mingw/msys.

There's, however, still of additional work to do until
we can build a native win32 Python with the
autoconf-based build process.

Please apply this ASAP, as I want to avoid having a
diverging Python tree on my harddisk (this makes patch
creation a lot more difficult).
msg41328 - (view) Author: Gerhard Häring (ghaering) * (Python committer) Date: 2002-11-04 14:14
Logged In: YES 
user_id=163326

Guido, if you think that there should either be one big
patch that enables Python to be built with mingw or nothing
at all, then please close this as 'rejected' or whatever.
There are good reasons for doing so, just as there are
arguments for incremental patches, like I described above.

I won't feel offended, especially as I know how annoying it
is for myself to have a SF entry page full of this kind of
patches/bugs :)
msg41329 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-11-04 20:04
Logged In: YES 
user_id=6380

What I'd like to see most is for somebody with CVS commit
permission for Python *and* an understanding of mingw to
start making the changes in Python's CVS. I'd be willing to
give you CVS permission for this, if you're willing to work
with python-dev regarding the acceptability of the various
changes you're proposing. I presume you'll quickly get a
sense for what kind of changes are non-controversional and
can be checked in without asking.
msg41330 - (view) Author: Gerhard Häring (ghaering) * (Python committer) Date: 2002-11-05 00:57
Logged In: YES 
user_id=163326

Sounds great. I'd have needed advice from python-dev anyway,
especially on the parts where autoconf is concerned (I'm
relatively green there).
msg41331 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2002-11-05 03:39
Logged In: YES 
user_id=31435

Welcome, Gerhard!  You have commit privileges now.  If 
you need any help with SourceForge mechanics, ask on 
Python-Dev and you'll get more advice than you can stand 
<wink>.
msg41332 - (view) Author: Gerhard Häring (ghaering) * (Python committer) Date: 2002-11-05 10:35
Logged In: YES 
user_id=163326

Cool :-)

I'm assigning this patch to myself now.
msg41333 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2003-04-12 01:31
Logged In: YES 
user_id=33168

Gerhard, is there any reason to leave this patch open?
msg41334 - (view) Author: Gerhard Häring (ghaering) * (Python committer) Date: 2003-04-22 14:20
Logged In: YES 
user_id=163326

This patch is too incomplete to be useful. I'm working on
posixmodule.c again right now and will try to come up with
something more complete. I'll have to ask on python-dev on
how to proceed, anyway.
History
Date User Action Args
2022-04-10 16:05:43adminsetgithub: 37267
2002-10-04 23:43:02ghaeringcreate