Up to [cvs.NetBSD.org] / pkgsrc / lang / python
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
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.
add python as category ok'd a while back at pkgsrcCon by agc and wiz
Add a python "meta package" to install a symlink from ${PKGBASE}/bin/python
to the preferred version of python (as specified by PYTHON_VERSION_DEFAULT).
This means that cross-platform python scripts with "#!/usr/bin/env python"
actually function on pkgsrc systems without nasty hackery.
Approved by Alistair.
remove the old python-2.x pkg, this is superseded by the new framework
add a conflict with python20-* for the time remaining (when all dependant pkgs are verified to work with the new Python packages, this one will be removed)
Remove some debugging stuff. Noted by D'Arcy J.M. Cain.
update to 2.0.1 (bugfix release)
What's Fixed in Python 2.0.1
============================
- A few references to Python 2.1 in the LICENSE were changed to 2.0.1.
- Bogus indentation in Lib/statcache.py was fixed.
- A few small nits in the documentation were fixed and the new license
was included there.
What's Fixed in Python 2.0.1c1
==============================
Critical Patches (from MoinMoin)
- Core dumps in _tkinter
Fixes to bugs reported on SourceForge
Bugs with an ID below 200000 can be found at
http://sourceforge.net/bugs/?func=detailbug&bug_id=<id>&group_id=5470
More recent bugs are accessed as
http://sourceforge.net/tracker/index.php?func=detail&aid=<id>&group_id=5470&atid=105470
- Brought SRE up to date with Python 2.1
- #117278, #117167: _tkinter
- #116172, curses module fails to build on SGI, _curses
- Patch #103485, compile on NetBSD
- Rename lines to nlines, macro sometimes defined in term.h
- Patch #130117: add a prototype required to compile cleanly on IRIX
- In Lib/locale.py, setlocale emulation, use != and not is not to compare
strings
- #409651 - in Lib/fnmatch.py, make \ in a character group work
- #119622: compile errors due to redundant atof decls. Removed from
Python/compile.c and Python/marshal.c
- #121965 -- fixing containment in xrange() objects
- #126161 #123634 -- pickle.py, cPickle.c -- fix pickling unicode strings
this is *backwards incompatible* with older pickles containing unicode
strings -- but this has to be done, the previous pickling scheme broke
anyway.
- complex() could segfault on numeric types with NULL for float conversion.
Fixed.
- Fixed #407504 -- closing pwd and grp database when finished.
- Fixed memory leak in from import ...
- Importing should now be safe with multiple Py_Initialize/Py_Finalize
sequences.
- Add TELL64() hack #ifdef to FreeBSD, Apple and BSDI
- del func.func_defaults raises a TypeError instead of dumping core
- #121013 - stringobject.c -- "".join(u"this is a test") dumped core
- exceptions.c - make_class() Added a "goto finally" so that if
populate_methods() fails, the return status will be -1 (failure)
instead of 0 (success).
fini_exceptions(): When decref'ing the static pointers to the
exception classes, clear out their dictionaries too. This breaks a
cycle from class->dict->method->class and allows the classes with
unbound methods to be reclaimed. This plugs a large memory leak in a
common Py_Initialize()/dosomething/Py_Finalize() loop.
- #122162 -- unicodeobject.c --- Fix unicode .split() off-by-one
- Loosely based on patch #103249 -- Fix core dumps in PyUnicode_Count
- #125981 -- socketmodule.c -- closing sockets was not thread-safe.
- Use openssl/*.h to include the OpenSSL header files
- Patch #103636: Allow writing strings containing null bytes to an SSL socket
- #232787 -- Modules/timemodule.c, Python/errors.c, Objects/intobject.c
- posixmodule.c - Add missing prototypes in for SunOS 4.1.4, plug memory leak
- #125891 - posixmodule.c - os.popen2,3 and 4 leaked file objects on Windows.
- #128053 - posixmodule.c - #ifdef for including "tmpfile" in the
posix_methods[] array was wrong -- should be HAVE_TMPFILE
- #233200 - cPickle did not use Py_BEGIN_ALLOW_THREADS.
- #125452 - shlex.shlex hungs when it encounters a string with an unmatched
quote
- #119833 - close socket in smtplib if there was an error connecting
- #126863 - getopt long option handling fixed
- #123924 - httplib.py - Windows - using OpenSSL, problem with socket
- atexit.py - mutate list of functions in thread-safe way
- curses.ascii - space (ASCII 32) is now considered whitespace
- #125375 - parsermodule.c - fix parser.tuple2ast() failure on valid parse tree
- mpzmodule.c - make .binary() work on 64-bit system, make it compile with
Cygwin
- #127718 - '@' were '`' seem to be confused.
- #119862 - getargs.c - patched memory leak
- #128475 - pythonrun.c - In Py_Finalize, don't reset initialized flag
until after the exit funcs have run
- #128713 - mmapmodule.c - type(mmap_object) blew up on Linux.
- mmap on windows creates a mapping without a name when tagname isn't
specified
- #117745 - UserString.py - Fix two typos in __imul__.
- #130306 - statcache.py - full of thread problems.
- Made statcache.forget_dir more portable
- In site.py, the ".pth" code knew about the layout of Python trees on
unix and windows, but not on the mac. Fixed.
- #121706 - config.c - _PyImport_Inittab: define the exceptions module's init
function.
- Update install-sh using version from automake 1.4.
- #12195 - webbrowser.py - there was typo in Mac code
- quopri.py - treat \r as whitespace too
- xmllib.py - Moved clearing of "literal" flag. The flag is set in setliteral
which can be called from a start tag handler. When the corresponding end
tag is read the flag is cleared. However, it didn't get cleared when
the start tag was for an empty element of the type <tag .../>. This
modification fixes the problem.
- #117606 - configure.in, configure - use gcc -shared and gcc -fPIC
- #227562 - urllib.py - call URLopener.http_error_default when
an invalid 401 request is being handled.
- urllib.py - provide simple recovery/escape from apparent redirect recursion
- #129288 - urllib.py - changing %02x to %02X in quoting
- urllib.py - HTTPS now works with string URLs
- distutils/command/install.py - make .get_outputs() produce a list of unique
filenames
- pyexpat.c - removed memory leaks
- #233253 - distutils/command/build_ext.py - the --define and --undef options
didn't work, whether specified on the command-line or in setup.cfg.
- distutils/command/build_ext.py - make docstrings raw
- #128930 - distutils/command/build_ext.py - split rpath argument
- #131064, #129584, #127722 - PC/getpathp.c
- asynchat.py - now checking for empty buffer with ==, not "is"
- Lib/xml/sax/xmlreader.py - import the exceptions this module can raise
sparc64 does dynamic linking.
Move the COMMENT from being in its own file to a definition in the package Makefile.
correct MASTER_SITES
First batch of upgrades for Python 2.0: lang/python upgraded to 2.0 lang/py-html-docs upgraded to 2.0 misc/py-readline upgraded to 2.0 databases/py-gdbm upgraded to 2.0 x11/py-Tk upgraded to 2.0 devel/py-curses upgraded to 2.0 lang/py-extclass upgraded to 2.2.2 and for Python 2.0 textproc/py-dtml upgraded to 2.2.2 and for Python 2.0 www/py-zpublisher upgraded to 2.2.2 and for Python 2.0 print/py-reportlab upgraded to 1.01 and for Python 2.0 More coming...
replaced some more commands by their ${COMMAND} counterparts
Provide a default value for "ZOULARIS"
Take a stab at Zoularis support
Upgrade to 1.5.2
Make python work properly on pmax: with 1.3.3 it can do dynamic loading, so don't set NOSHARED=#.
Finish ELF support
This is now broken on Alpha.
Make dynamicly loaded modules work on NetBSD/alpha. May work on NetBSD/mips, if its ELF dlopen support is non-broken. Anyone willing to test this, please get in touch with me. Also, add more recent patches from python.org
Put the distribution archive and all the patches into a sub directory.
The Grand Homepagification: - New, optional Makefile variable HOMEPAGE, specifies a URL for the home page of the software if it has one. - The value of HOMEPAGE is used to add a link from the README.html files. - pkglint updated to know about it. The "correct" location for HOMEPAGE in the Makefile is after MAINTAINER, in that same section.
Forgot portlint. Also, should have credited tron for patchfiles idea in last.
Two changes: - Use -fPIC instead of -fpic (latter breaks py-Numeric on sparc). Suggested by tv@netbsd.org. This is inherited by most py-* packages. Change sent to guido@cnri.reston.va.us. - Remove official patches from patches dir. Use PATCHFILES mechanism instead to get them from www.python.org.
Update package Makefiles for automatic manual page handling.
Cleanup "Makefile" as suggested by Jaromir Dolecek in PR pkg/5408.
Update python to version 1.5.1 using package by Jaromir Dolecek. Fixes PR pkg/5361.
Use the bsd.pkg.mk and bsd.pkg.subdir.mk files in the pkgsrc tree. Remove redundant (and sometimes erroneous) comments.
portlint: remove empty line
Initial import of python 1.5 package made by Ty Sarna.