Commit graph

32 commits

Author SHA1 Message Date
obache
822849e3a9 Fixes module names in disabled_module_list
* "bsddb" does not exists, probably removed/renamed before/in Python24.
 * "mpz" was removed in Python24.
2009-09-19 09:30:41 +00:00
dsainty
72087cc6b9 Fix a possibly long-standing issue, but also possibly fallout from the db4
changes.  The "dbm" module could fail to build correctly, erroring out with:

*** WARNING: renaming "dbm" since importing it failed: build/lib.linux-i686-2.4/dbm.so: undefined symbol: dbm_firstkey

In this case, the "dbm" module has accidentally linked with "databases/gdbm",
which happens to be installed, but was never buildlinked in.  It may be
relevant that /usr/include/gdbm/ndbm.h is installed on this system.

Remove the "gdbm" test from the "dbm" module configuration, leaving the "ndbm"
support, and the fall-back "bdb" support (which will likely fall back to db4).

Bump PKGREVISION - the package would still install, but with missing
functionality.
2009-09-09 05:59:37 +00:00
drochner
35baa89b31 Add a patch from the upstream 2.5 branch (svn rev.63883) to fix an
integer overflow in the vsnprintf replacement function.
This is likely not a real problem, and the patch wasn't pulled to
the upstream 2.4 branch, but so we can formally declare our 2.4
as not vulnerable now.
2008-08-07 11:20:18 +00:00
drochner
20cca7e4a5 also apply upstream svn rev.65262, fixes overflow checks in memory
allocation (CVE-2008-3142), ride on PKGREVISION bump some minutes ago
2008-08-05 10:45:45 +00:00
drochner
ed29f353e5 add patches from upstream svn rev.65333, fix integer overflows in
memory allocation (CVE-2008-2315)
2008-08-05 10:13:34 +00:00
drochner
95931af496 fix possible buffer overflow by negative atguments to zlib.flush(),
from upstream CVS, bump PKGREVISION
2008-04-11 10:32:33 +00:00
joerg
e26004958b Don't use FreeBSD's bluetooth define on DragonFly as well.
From PR 37821.
2008-02-22 13:03:25 +00:00
joerg
b626b37fa4 NetBSD has a 4-argument mremap, so adjust for that. 2007-07-17 21:08:52 +00:00
wiz
1e8671d641 Update to 2.4.4:
We are pleased to announce the release of Python 2.4.4 (FINAL), a
bugfix release of Python 2.4, on October 18, 2006.

Important: 2.4.4 includes a security fix (PSF-2006-001) for the
repr() of unicode strings in wide unicode builds (UCS-4) [does not
affect pkgsrc]

Python 2.4 is now in bugfix-only mode; no new features are being
added. At least 80 bugs have been squished since Python 2.4.3,
including a number of bugs and potential bugs found by with the
Coverity and Klocwork static analysis tools. We'd like to offer
our thanks to both these firms for making this available for open
source projects - see their websites if you're interested.
2007-06-08 14:16:15 +00:00
joerg
cd0ebd2244 Fix build on FreeBSD. 2006-12-27 20:49:04 +00:00
joerg
450decce94 On NetBSD, assume that MKYP=no when /usr/bin/ypcat doesn't exist.
The NIS module is not available in that case.
Call the regen script with RUNSHARED, so that it finds libpython.so,
even in the DESTDIR case.

XXX The call to regen should be moved to the build phase.
2006-11-03 07:15:41 +00:00
rillig
b2a13218c0 Fixed "test ==" and improved the randomness of $RANDOM. 2006-10-11 18:20:37 +00:00
rillig
d0cfa8cd6b libpython needs the pkgsrc-provided LDFLAGS to resolve all dependencies
at runtime. Fixes PR 34565.
2006-09-20 12:07:19 +00:00
tron
ab5ff69efc Don't try to compile in Bluetooth support under NetBSD(-current).
The stub code is not compatible with the API presented by NetBSD.
2006-06-20 13:29:01 +00:00
joerg
053f691e9b Strip of anything after the version number in distutils.util.get_platform
on DragonFly. Since that version is used e.g. as part of the file name
for python eggs, it makes handling easier to match normal pkgsrc
platform policy. Bump revisions of all Python packages.
2006-04-13 02:26:54 +00:00
drochner
a8e1710951 update python24 to 2.4.3
Python 2.4 is now in bugfix-only mode, no new features are being added. At
least 50 bugs have been squashed since Python 2.4.2, including a number of
bugs and potential bugs found by Coverity.
2006-04-12 20:21:48 +00:00
recht
24793f62f2 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.
2006-01-23 08:00:02 +00:00
joerg
d4b0eafdb2 Fix Python's makesetup script to treat -pthread as linker flag.
This is needed for databases/py-psycopg at least to compile properly.
Since the installed version changed, bump revision.
2005-11-16 19:18:58 +00:00
recht
5d71b63ce0 Update to Python 2.4.2
Python 2.4.2 is a bugfix release of Python 2.4 - Python 2.4 is now in
bugfix-only mode, no new features are being added. More than 60 bugs have
been squashed since Python 2.4.1, including bugs that prevented Python working
properly on 64 bit AIX and HP/UX.

For a detailed list of changes see:
http://python.org/2.4.2/NEWS.html
2005-10-01 21:12:05 +00:00
darcy
9e697ebec6 Fix problem where LDFLAGS is not being expanded on the command line.
Patch supplied by KISHIMOTO, Makoto <ksmakoto (you know what ) dd.iij4u.or.jp>
Closes PR 31027
2005-08-31 12:13:02 +00:00
darcy
a7ece3e577 There was a bug in Python that was supposed to be fixed but it seems to have
regressed in the latest version.  I have contacted a Python developer to
have this fixed properly.  In the meantime I have created a patch to fix
it in our tree.  See
http://sourceforge.net/tracker/index.php?func=detail&aid=1196315&group_id=5470&atid=105470
for details of the bug.

Bumped PKGREVISION.
2005-08-23 20:55:46 +00:00
grant
9cfb53fa80 include LDFLAGS when linking shared libraries, so they can find their
prerequisite libraries at runtime.

fixes build on Solaris (and probably others).
2005-08-19 05:22:04 +00:00
drochner
3b80fee363 make the fcntl selftest recognize "netbsd3" so that the right
structure padding is used
not application relevant, so I abstain from bumping PKGREVISION
2005-07-29 13:27:26 +00:00
wiz
df008f92b8 patch-an was removed from distinfo during 2.4.1 update, remove file too. 2005-07-21 09:20:08 +00:00
recht
3454dd63f5 Add devel/gettext-lib as dependency to avoid problems with the locale module not being built.
- fix suggested by Simon Kuhn in PR 29735

Add a patch from darwinports to workaround for deprecated ostat in sys/stat.h on OS X 10.4.

bump PKGREVISION
2005-07-03 19:48:22 +00:00
recht
5bfae3ed28 update to Python 2.4.1
Highlights of this new release include:
  - Bug fixes. According to the release notes, several dozen bugs
    have been fixed, including a fix for the SimpleXMLRPCServer
    security issue (PSF-2005-001).

Also add a patch by Joerg Sonnenberger to add basic support
for DragonFly BSD.

For a detailed list of changes see:
http://python.org/2.4.1/NEWS.html
2005-05-09 20:37:51 +00:00
drochner
2cefade65d apply the security fix from
http://www.python.org/security/PSF-2005-001/
This disables hierarchical object lookups in SimpleXMLRPCServer.
Unfortunately, this breaks some applications (eg kenosis). Don't
shoot me for this.
bump PKGREVISION
2005-02-04 15:39:04 +00:00
tv
a374e2c5f7 Pull in first-stab Interix support from lang/python23. 2005-01-24 21:46:33 +00:00
minskim
ff7fee44a5 Honor LDFLAGS when building shared libraries on Linux. Previously,
python2[34]{,-pth} failed on Linux when Berkeley DB from pkgsrc was
used.
2004-12-30 21:56:20 +00:00
grant
b9c5791d74 fix missed from previous: Darwin 7.x doesn't appear to want the
"-u PyMac_Error" when linking the shared library.
2004-12-19 05:45:39 +00:00
grant
ea18ba8089 Darwin build fixes:
- ignore poll()
- needs dlopen.buildlink3.mk
- pass -fPIC -fno-common to CC for objects being linked into a shared
  library
2004-12-19 05:30:14 +00:00
recht
bd1aff620a initial import of Python 2.4
Python is an interpreted, interactive, object-oriented
programming language that combines remarkable power with
very clear syntax. For an introduction to programming in
Python you are referred to the Python Tutorial. The
Python Library Reference documents built-in and standard
types, constants, functions and modules. Finally, the
Python Reference Manual describes the syntax and semantics
of the core language in (perhaps too) much detail.

Python's basic power can be extended with your own modules
written in C or C++. On most systems such modules may be
dynamically loaded. Python is also adaptable as an exten-
sion language for existing applications. See the internal
documentation for hints.

This package has been compiled without support for threads.
2004-12-05 23:27:28 +00:00