Up to [cvs.NetBSD.org] / pkgsrc / lang / python24
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Remove python24 and all traces of it from pkgsrc. Remove devel/py-ctypes (only needed by and supporting python24). Remove PYTHON_VERSIONS_ACCEPTED and PYTHON_VERSIONS_INCOMPATIBLE lines that just mirror defaults now. Miscellaneous cleanup while editing all these files.
On recent FreeBSD, ossaudiodev.so is not created. Fix "make package" on FreeBSD 9.0.
python install different files on Linux-2.* and Linux-3.*
Revbump after updating db5
Use OpenSSL from pkgsrc on SunOS<5.11.
Fix build on SunOS. Teach configure about SunOS 5.11, preventing some pyconfig.h weirdness.
With clang, disable -OPT:Olimit usage as it disables the build of unicodedata for reasons not completely understood. It doesn't really make sense for the compiler, so just don't use it.
Update python24 to 2.4.6. What's New in Python 2.4.6? =========================== *Release date: 19-Dec-2008* What's New in Python 2.4.6c1? ============================= *Release date: 13-Dec-2008* Core and builtins ----------------- - Issue #4469: Prevent expandtabs() on string and unicode objects from causing a segfault when a large width is passed on 32-bit platforms. CVE-2008-5031. - Issue #4317: Fixed a crash in the imageop.rgb2rgb8() function. - Issue #4230: Fix a crash when a class has a custom __getattr__ and an __getattribute__ method that deletes the __getattr__ attribute. - Apply security patches from Apple. CVE-2008-2315. - Issue #2620: Overflow checking when allocating or reallocating memory was not always being done properly in some python types and extension modules. PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been updated to perform better checks and places in the code that would previously leak memory on the error path when such an allocation failed have been fixed. - Issue #1179: Fix CVE-2007-4965 and CVE-2008-1679, multiple integer overflows in the imageop and rgbimgmodule modules. - Issue #2586: Fix CVE-2008-1721, zlib crash from zlib.decompressobj().flush(val) when val is not positive. - Issues #2588, #2589: Fix potential integer underflow and overflow conditions in the PyOS_vsnprintf C API function. CVE-2008-3144. - Issue #2587: In the C API, PyString_FromStringAndSize() takes a signed size parameter but was not verifying that it was greater than zero. Values less than zero will now raise a SystemError and return NULL to indicate a bug in the calling C code. CVE-2008-1887. - Security Issue #2: imageop did not validate arguments correctly and could segfault as a result. CVE-2008-4864. Extension Modules ----------------- Library ------- Tests ----- Build ----- Tools/Demos ----------- - Tools/faqwiz/move-faqwiz.sh: Fix unsecure use of temporary files.
recursive bump from gettext-lib shlib bump.
Reset maintainer for retired developers.
Share distfile related information for each python variants with srcdist.mk to make update simplicity.
Added LICENSE information for Python. The license was approved by OSI so I added it to the acceptable set of licenses.
Recursive PKGREVISION bump for jpeg update to 8.
remove assignments to the LIBS env var -- this should have been done earlier, but there became no-ops due to my change to db4/bl3 and thus didn't do harm. Now that part of that change was backed out they became harmful again and thus need to go.
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.
bump PKGREVs for Python pkgs, as suggested by David Sainty -- at least on Linux one can't build some extensions against an old Python (with spurious -ldb4 linkage) anymore also sync the bl3 files of the non-default versions with python25 for consistency
Remove empty PLIST.common_end.
Recursive ABI depends update and PKGREVISION bump for readline-6.0 shlib major change. Reported by Robert Elz in PR 41345.
Pullup ticket 2480 - requested by drochner
Security patches for python24
Revisions pulled up:
- lang/python24/Makefile 1.44-1.45
- lang/python24/distinfo 1.29-1.31
- lang/python24/patches/patch-ba 1.1
- lang/python24/patches/patch-bb 1.1
- lang/python24/patches/patch-bc 1.1
- lang/python24/patches/patch-bd 1.1
- lang/python24/patches/patch-be 1.1
- lang/python24/patches/patch-bf 1.1
- lang/python24/patches/patch-bg 1.1
- lang/python24/patches/patch-bh 1.1
- lang/python24/patches/patch-bi 1.1
- lang/python24/patches/patch-bj 1.1
- lang/python24/patches/patch-bk 1.1
- lang/python24/patches/patch-bl 1.1
- lang/python24/patches/patch-bm 1.1
---
Module Name: pkgsrc
Committed By: joerg
Date: Mon Jul 14 14:42:51 UTC 2008
Modified Files:
pkgsrc/lang/python24: Makefile
Log Message:
Always build depend on readline, so that devel/py-readline can pick up
the right config. Bump revision.
---
Module Name: pkgsrc
Committed By: drochner
Date: Tue Aug 5 10:13:34 UTC 2008
Modified Files:
pkgsrc/lang/python24: Makefile distinfo
Added Files:
pkgsrc/lang/python24/patches: patch-ba patch-bb patch-bc patch-bd
patch-be patch-bf patch-bg
Log Message:
add patches from upstream svn rev.65333, fix integer overflows in
memory allocation (CVE-2008-2315)
---
Module Name: pkgsrc
Committed By: drochner
Date: Tue Aug 5 10:45:46 UTC 2008
Modified Files:
pkgsrc/lang/python24: distinfo
Added Files:
pkgsrc/lang/python24/patches: patch-bh patch-bi patch-bj patch-bk
patch-bl
Log Message:
also apply upstream svn rev.65262, fixes overflow checks in memory
allocation (CVE-2008-3142), ride on PKGREVISION bump some minutes ago
---
Module Name: pkgsrc
Committed By: drochner
Date: Thu Aug 7 11:20:18 UTC 2008
Modified Files:
pkgsrc/lang/python24: distinfo
Added Files:
pkgsrc/lang/python24/patches: patch-bm
Log Message:
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.
add patches from upstream svn rev.65333, fix integer overflows in memory allocation (CVE-2008-2315)
Always build depend on readline, so that devel/py-readline can pick up the right config. Bump revision.
Pullup ticket 2334 - requested by drochner
security updates for python24
Revisions pulled up:
- pkgsrc/lang/python24/Makefile 1.41,1.42
- pkgsrc/lang/python24/distinfo 1.27,1.28
- pkgsrc/lang/python24/PLIST.common 1.9
- pkgsrc/lang/python24/patches/patch-au 1.1
- pkgsrc/lang/python/srcdist.mk 1.20
Module Name: pkgsrc
Committed By: drochner
Date: Fri Apr 11 10:32:33 UTC 2008
Modified Files:
pkgsrc/lang/python24: Makefile distinfo
Added Files:
pkgsrc/lang/python24/patches: patch-au
Log Message:
fix possible buffer overflow by negative atguments to zlib.flush(),
from upstream CVS, bump PKGREVISION
To generate a diff of this commit:
cvs rdiff -r1.40 -r1.41 pkgsrc/lang/python24/Makefile
cvs rdiff -r1.26 -r1.27 pkgsrc/lang/python24/distinfo
cvs rdiff -r0 -r1.1 pkgsrc/lang/python24/patches/patch-au
---
Module Name: pkgsrc
Committed By: drochner
Date: Fri Apr 11 10:44:09 UTC 2008
Modified Files:
pkgsrc/lang/python24: Makefile PLIST.common distinfo
Log Message:
update to 2.4.5
This release includes just a small number of fixes, primarily preventing
crashes of the interpreter in certain boundary cases.
To generate a diff of this commit:
cvs rdiff -r1.41 -r1.42 pkgsrc/lang/python24/Makefile
cvs rdiff -r1.8 -r1.9 pkgsrc/lang/python24/PLIST.common
cvs rdiff -r1.27 -r1.28 pkgsrc/lang/python24/distinfo
---
Module Name: pkgsrc
Committed By: drochner
Date: Fri Apr 11 10:44:48 UTC 2008
Modified Files:
pkgsrc/lang/python: srcdist.mk
Log Message:
update for 2.4.5
To generate a diff of this commit:
cvs rdiff -r1.19 -r1.20 pkgsrc/lang/python/srcdist.mk
Convert to use PLIST_VARS instead of manually passing "@comment " through PLIST_SUBST to the plist module.
update to 2.4.5 This release includes just a small number of fixes, primarily preventing crashes of the interpreter in certain boundary cases.
fix possible buffer overflow by negative atguments to zlib.flush(), from upstream CVS, bump PKGREVISION
Per the process outlined in revbump(1), perform a recursive revbump on packages that are affected by the switch from the openssl 0.9.7 branch to the 0.9.8 branch. ok jlam@
Fix builds on Darwin
Fix build problems under Mac OS X Leopard.
Remove Ex-MASTER_SITE. From Zafer Aydogan.
Don't force su-clean on DESTDIR users.
s/PRIVILEGED_STAGE/PRIVILEGED_STAGES/g as it could refer to multiple stages in the future. Suggested by rillig@
Add PRIVILEGED_STAGE+= clean (NetBSD only)
repair build on SunOS-5.9
We have to use GNU make under Mac OS X because the "configure" script generates a GNU make specific makefile on this platform.
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.
correct installation and plist on hpux
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.
Don't use the Python platform variable to check for OSS support on FreeBSD, but OPSYS directly. We ignore FreeBSD < 4 anyway, so simply the handling for newer FreeBSD versions.
Add a missing file to PLIST.Darwin. Bump PKGREVISION.
Inspecting the setup.py file, one can see that python23 and python24 only build certain modules if the platform is *not* 64-bit. Correct the PLIST for those cases. This should fix the build on non-64bit, non-x86 platforms, e.g. powerpc.
Allow use of C++ support on all platforms for consistency, by setting USE_LANGUAGES. Fixes PR pkg/33430.
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.
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.
Fixed the interpreter paths of some installed Python programs. Bumped PKGREVISION.
Replace references to ossaudio.buildlink3.mk with oss.buildlink3.mk. Remove deprecated ossaudio.buildlink3.mk.
Recursive revision bump / recommended bump for gettext ABI change.
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.
Revert my last commit (r1.17) and add :Q back to PY_PLATNAME and PY_VER_SUFFIX. pointed out by wiz and rillig
Remove the :Q from vars that go into PLIST_SUBST, since it breaks the PLIST generation.
Bumped the PKGREVISION of the packages that have been broken by the recent "pkglint --autofix" change.
Fixed the wrong quoting introduced by the recent "pkglint --autofix". The variables are already quoted. Noted by wiz.
Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in
http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
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.
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
Pullup ticket 727 - requested by D'Arcy J.M. Cain build fix for python24 modules Revisions pulled up: - pkgsrc/lang/python24/Makefile 1.11 - pkgsrc/lang/python24/distinfo 1.13 - pkgsrc/lang/python24/patches/patch-al 1.7 Module Name: pkgsrc Committed By: darcy Date: Wed Aug 31 12:13:03 UTC 2005 Modified Files: pkgsrc/lang/python24: distinfo pkgsrc/lang/python24/patches: patch-al Log Message: 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 --- Module Name: pkgsrc Committed By: darcy Date: Thu Sep 1 13:14:35 UTC 2005 Modified Files: pkgsrc/lang/python24: Makefile Log Message: Bump PKGREVISION for change made to patches/patch-al in revision 1.7 as suggested by Lubomir Sedlacik in discussions on releng-pkgsrc and pullup request 727.
Bump PKGREVISION for change made to patches/patch-al in revision 1.7 as suggested by Lubomir Sedlacik in discussions on releng-pkgsrc and pullup request 727.
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.
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
Fix srcdist.mk usage for _PYTHON_VERSION 24, and add reminder comment to python24/Makefile for next update
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
Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
Pullup ticket 298 - requested by Marc Recht PLIST fix for python24 Revisions pulled up: - pkgsrc/lang/python24/PLIST.common 1.3 Module Name: pkgsrc Committed By: recht Date: Fri Feb 18 22:25:22 UTC 2005 Modified Files: pkgsrc/lang/python24: PLIST.common Log Message: add dl.so to PLIST.common (conditionally) addresses PR 29402 by salo
ride last change.. bump PKGREVISION for the PLIST.common change
Pullup ticket 289 - requested by Matthias Drochner
security fix for python
Patches hand-rolled, based on the following commit:
Module Name: pkgsrc
Committed By: drochner
Date: Fri Feb 4 15:39:04 UTC 2005
Modified Files:
pkgsrc/lang/python22: Makefile distinfo
pkgsrc/lang/python23: Makefile distinfo
pkgsrc/lang/python23-nth: Makefile
pkgsrc/lang/python24: Makefile distinfo
Added Files:
pkgsrc/lang/python22/patches: patch-an
pkgsrc/lang/python23/patches: patch-an
pkgsrc/lang/python24/patches: patch-an
Log Message:
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
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
Convert the python packages to use the alternatives system to install a bin/python wrapper. Bump their PKGREVISION to 1. Also remove the python package. In order to preserve a similar behavior to this one using the new framework, start by installing pkg_alternatives. Then just open its manpage, scroll down to the EXAMPLES section, Applying filters subsection, and follow the (rather short) directions given there.
Build Python with thread support by default and turn the existing python*-pth packages into meta-packages which will install the non-pth packages. Bump PKGREVISIONs on the non-pth versions to propagate the thread change, but leave the *-pth versions untouched to not affect existing installations. Sync all PYTHON_VERSIONS_AFFECTED lines in package Makefiles.
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.
Initial revision