Subject: CVS commit: pkgsrc/lang/python24
To: None <pkgsrc-changes@NetBSD.org>
From: Marc Recht <recht@netbsd.org>
List: pkgsrc-changes
Date: 01/23/2006 08:00:02
Module Name:	pkgsrc
Committed By:	recht
Date:		Mon Jan 23 08:00:02 UTC 2006

Modified Files:
	pkgsrc/lang/python24: Makefile distinfo
	pkgsrc/lang/python24/patches: patch-af patch-al

Log Message:
Fix module compilation / libpython build on Darwin. This enables modules
not part of the std. Python install to work again.
Secondly, add a patch from Christoph Ludwig (
http://sourceforge.net/tracker/?func=detail&aid=1324762&group_id=5470&atid=305470
)
which contains the following changes (from the SourceForge post):

1) The configure option --with-cxx is renamed
--with-cxx-main. This was done to avoid surprising the user
by the changed meaning. Furthermore, it is now possible
that CXX has a different value than provided by
--with-cxx-main, so the old name would have been
confusing.

2) The compiler used to translate python's main() function is
stored in the configure / Makefile variable MAINCC. By
default, MAINCC=$(CC). If --with-cxx-main is given (without
an appended compiler name), then MAINCC=$(CXX). If
--with-cxx-main=<compiler> is on the configure command
line, then MAINCC=<compiler>. Additionally, configure sets
CXX=<compiler> unless CXX was already set on the
configure command line.

3) The command used to link the python executable is (as
before) stored in LINKCC. By default, LINKCC='$(PURIFY)
$(MAINCC)', i.e. the linker front-end is the compiler used to
translate main(). If necessary, LINKCC can be set on the
configure command line in which case it won't be altered.

4) If CXX is not set by the user (on the command line or via
--with-cxx-main), then configure tries several likely C++
compiler names. CXX is assigned the first name that refers
to a callable program in the system. (CXX is set even if
python is built with a C compiler only, so distutils can build
C++ extensions.)

5) Modules/ccpython.cc is no longer used and can be
removed.


To generate a diff of this commit:
cvs rdiff -r1.18 -r1.19 pkgsrc/lang/python24/Makefile
cvs rdiff -r1.15 -r1.16 pkgsrc/lang/python24/distinfo
cvs rdiff -r1.4 -r1.5 pkgsrc/lang/python24/patches/patch-af
cvs rdiff -r1.8 -r1.9 pkgsrc/lang/python24/patches/patch-al

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.