Commit graph

70 commits

Author SHA1 Message Date
Maxim Sobolev
f4711ece62 Make sure the singal is delivered to the main thread, where python
runs its signal handlers, not to a random thread that happens to be
executing at the time when signal arrives. This functionality has been
lost since Python 2.3, possible cause is that the linux implementation
of POSIX threads always delivered signal to the main thread. This
bug results in rather annoying inability to terminate threading script
with ^C for example and there could be other issues as well.

Bump PORTREVISION.

PR:		ports/131080
Submitted by:	Andriy Pylypenko <bamby@sippysoft.com>
Approved by:	MAINTAINER's timeout
2009-02-27 01:25:32 +00:00
Martin Wilke
5d6556dc39 - add patches from upstream svn rev.65333, fix integer overflows in
memory allocation (CVE-2008-2315 and CVE-2008-2316)
- also apply upstream svn rev.65262, fixes overflow checks in memory
  allocation (CVE-2008-3142 and CVE-2008-3144)

Approved by:	portmgr (pav)
Security:	http://www.vuxml.org/freebsd/0dccaa28-7f3c-11dd-8de5-0030843d3802.html
2008-09-11 08:05:23 +00:00
Martin Wilke
a90aa21ef5 - Fix zlib crash from zlib.decompressobj().flush(val)
when val was not positive. It tried to allocate negative
  or zero memory.  That fails.
- Bump PORTREVISION

PR:		123153
Submitted by:	Nick Barkas <snb@threerings.net>
Security:	http://www.vuxml.org/freebsd/ec41c3e2-129c-11dd-bab7-0016179b2dd5.html
2008-04-28 07:39:59 +00:00
Hye-Shik Chang
6e02f1db93 Add support for FreeBSD 8.
Obtained from:	Python SVN (r58697, r58698)
2007-10-29 00:14:50 +00:00
Alexander Botero-Lowry
4942ce5a7d - Make Python 2.5.1 the default Python version
- Add significantly better support in bsd.python.mk for working with
   Python Eggs and the easy_install system

Tested by:	pointyhat runs
Approved by:	pav (portmgr)
Most work by:	perky
Thanks to:	pav
2007-07-30 09:42:28 +00:00
Rong-En Fan
ec9c55f34b - Force setup.py picks up readline and ncurses from base. This fixes build
when devel/ncurses installed.
- Similar to python24, don't pick up ncursesw in python25. This results
  in both ncurses are linked into _curses.so

Tested by:	krion
Approved by:	alexbl (python@)
2007-02-27 19:00:23 +00:00
Xin LI
f523e0e7b2 Update to Python 2.4.4.
Approved by:	maintainer timeout, alexbl (python@)
Tested by:	pointyhat
PR:		ports/105901
2007-02-14 06:07:29 +00:00
Hye-Shik Chang
e18b838fd9 Revert the default version of Python to 2.4 for the ports freeze
period.  Python 2.5 brought a vast range of incompatibility to a
large number of ports, so the python@ team will do more basic
compatibility work in a private repository and merge it later.
Sorry for the inconvenience.

Approved by:	portmgr (kris)
2006-10-13 07:16:45 +00:00
Hye-Shik Chang
1d18bb4fff - Update the main python version to 2.5.
- Now, lang/python is just a meta-port which depends on lang/python25.
  - And all versions of Python ports have short version identifier in its
    package name; python25-2.5, python24-2.4.3 and etc.
  - Also you must upgrade all python modules after lang/python updated,
     cd /usr/ports/lang/python && make upgrade-site-packages

- Give maintainership of Python ports to the new python@ group which
  includes me, alexbl@ and others.
2006-10-09 14:29:18 +00:00
Simon L. B. Nielsen
a1560e82eb Fix buffer overrun when performing repr() on a unicode string in a build
with wide unicode (UCS-4) support.

Obtained from:	Python SVN (#51466)
Security:	CVE-2006-4980
With hat:	secteam
2006-10-08 06:48:01 +00:00
Hye-Shik Chang
773ced5faf Avoid to use "ncursesw" which causes segfault when the system has
devel/ncurses installed due to a shared library collision between
a base ncurses from libreadline dependency and a local ncurses from
libncursesw dependency.

PR:		99496
Submitted by:	rachid achellal <rachid@in.nl>,
		Xiao-Yong Jin <xj2106@columbia.edu>
2006-08-12 03:57:46 +00:00
Hye-Shik Chang
5c0873479e Update to Python 2.4.3. 2006-03-30 09:40:13 +00:00
Hye-Shik Chang
b9805fae01 Bring a bugfix enabling WITHOUT_THREADS build again.
Requested by:	Mike Harding <mvh@ix.netcom.com>
Obtained from:	Python CVS
2005-10-04 13:50:02 +00:00
Hye-Shik Chang
08a19a2887 - Update to Python 2.4.2. [1]
- Allow to override a command passing to distutils using
  PYDISTUTILS_{CONFIGURE,BUILD,INSTALL}_TARGET [2]
- Allow to specify BUILD/RUN dependency separatedly. [3]
- Replace shell executions with regex replacement on bsd.python.mk. [3]
- Remove thread serialization from socket.getaddrinfo() on FreeBSD 5.3
  and later versions because we've got thread-safe implementation. [4]
- Add a workaround to avoid curses.h problem of FreeBSD base.

PR:		86685 [1]
Submitted by:	Soeren Straarup <xride@x12.dk> [1],
		lioux [2], vsevolod [3], sobomax [4]
Obtained from:	Python CVS [4]
2005-10-02 14:31:39 +00:00
Hye-Shik Chang
b185b497ae Fix fcntl.ioctl argument parsing to accept termios.TIOCGWINSZ.
Submitted by:	jkim
Obtained from:	Python CVS
2005-07-28 06:23:56 +00:00
Hye-Shik Chang
ecd685d3d6 Backport support for FreeBSD 7 and drop support for FreeBSD 3.
Fixes for other versions of python will be followed tomorrow.

Submitted by:	nork
Obtained from:	Python CVS
2005-07-18 12:44:08 +00:00
Hye-Shik Chang
88c5d79c02 Update to Python 2.4.1 2005-04-03 13:55:44 +00:00
Hye-Shik Chang
d19bc113cf Add a patch from PSF-2005-001 which fixes SimpleXMLRPCServer
vulnerability.

PR:		77078
Submitted by:	Marcus Grando <marcus@corp.grupos.com.br>
Security:	CAN-2005-0089
Security:	http://www.vuxml.org/freebsd/6afa87d3-764b-11d9-b0e7-0000e249a0a2.html
Security:	SimpleXMLRPCServer.py allows unrestricted traversal
2005-02-04 04:13:41 +00:00
Hye-Shik Chang
cbee63519e - Update lang/python to 2.4 final release.
- Finish repocopy lang/python -> lang/python23 for Python 2.3.4
2004-12-01 15:04:05 +00:00
Hye-Shik Chang
d918a1e17c - Add support for FreeBSD 6.
- Remove support for FreeBSD 2.

Spotted by:	marcus, kris
Obtained from:	Python CVS
2004-08-20 23:56:16 +00:00
Hye-Shik Chang
7d6e16a1f2 Use ${CC} instead of cc on dynamic linkings.
PR:		67515
Submitted by:	michael johnson <ahze@ahze.net>
2004-06-04 05:21:57 +00:00
Hye-Shik Chang
7866c5194c - Update to Python 2.3.4.
- Test WITHOUT_* instead of WITH_* for values which are on by default
  so that package build clusters detect correctly.
2004-05-27 15:58:02 +00:00
Hye-Shik Chang
9e1cf11978 Fixed a bug where the configure script couldn't detect getaddrinfo()
properly if the KAME stack had SCTP support.

Submitted by:	suz
2004-04-14 06:49:21 +00:00
Hye-Shik Chang
1efbe2254e - Add a workaround for the net/straw port installation problem
recently introduced by libpthread. The problem was that waitpid(2)
raised EINTR but python's distutils didn't catch it correctly.
- PORTREVISION is bumped to 2, subsequently.
2004-02-24 08:19:54 +00:00
Hye-Shik Chang
d3a457db41 - Use process scope threads instead of system scope to enable large
amount of threads on -CURRENT libpthread by default. [1]
- Merge bugfixes from python 2.3 maintenance branch: [2]
  o weakref object's garbage collection problem.
  o save unnecessary startup-time memory allocation of 100KB+ from
    intobject.
- SIZEify.
- Bump PORTREVISION subsequently.

Advised by:	eischen, julian [1]
Obtained from:	Python CVS [2]
2004-02-09 09:54:07 +00:00
Hye-Shik Chang
60d09f59f5 - Update to Python-2.3.3
- Pass PYTHON_VERSION variable to dependent builds.
- Enable email package to use cjkcodecs.
- Decrease default recursion limit to 900 on sparc64.
2003-12-20 07:13:43 +00:00
Hye-Shik Chang
f2e9fdbd86 Add fix for a fatal bug in type's GC handling causes segfaults.
http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Misc/NEWS?r1=1.831.4.75&r2=1.831.4.76&diff_format=u

Obtained from:	Python CVS
2003-11-21 03:15:02 +00:00
Hye-Shik Chang
299b967868 Ignore syntax errors on compiling 3rd party packages.
Tested by:	Lee Harr <missive@hotmail.com>
2003-11-15 19:22:37 +00:00
Hye-Shik Chang
62e80c6399 - Include pyexpat module in python base ports because python incorporated
expat 1.95.6 in its distribution from Python-2.3.
- Bump PORTREVISION subsequently.

Requested by:	Mike Brown <mike@skew.org>
		Jeremy Kloth <jeremy.kloth@fourthought.com>
2003-11-04 18:00:37 +00:00
Maxim Sobolev
75fd45d40b Add missed ossaudiodev.so into pkg-plist (only for x86, since I don't have
access to other arches yet), and enable it on freebsd5 (it's enabled on
freebsd4 OOB).
2003-10-29 20:52:32 +00:00
Hye-Shik Chang
ec722082a1 Update to Python-2.3.2 2003-10-04 05:17:10 +00:00
Hye-Shik Chang
dc8b35d2fb - Install a 'real' shared object when BUILD_SHARED=yes. [1]
- Fix plist on 32bit architectures.
- Bump PORTREVISION.

PR:		57269 [1]
Submitted by:	Tim Middleton <x@Vex.Net> [1],
		Kostik I. Belousov <kostya@tessart.kiev.ua> [1]
2003-09-29 11:44:32 +00:00
Hye-Shik Chang
e7f4671585 Use smaller recursion limits on amd64 and sparc64 to avoid
stack overflows.

Tested on:	sledge, panther
2003-09-27 18:29:04 +00:00
Hye-Shik Chang
a121af1f80 - Revive os.fsync function which is disabled by a typo of Python-2.3.1.
- Bump PORTREVISION

Obtained from:	Python CVS
2003-09-26 16:44:13 +00:00
Hye-Shik Chang
ac5bea6285 - Update to Python-2.3.1, the lastest Bugfix release.
- Disable dlmodule on amd64 and sparc64 because dlmodule isn't designed
  for them.
- Add -fPIC on CFLAGS on amd64 for mod_python3 and other ports using it
  on linking their own dynamic library.
2003-09-24 11:07:22 +00:00
Hye-Shik Chang
d6fb067853 - Update to Python-2.3
- Correct pydoc search path to lang/python-doc-html port's [1]

PR:		43036 [1]
Submitted by:	Emil Sit <sit@amsterdam.lcs.mit.edu> [1]
2003-07-31 19:34:54 +00:00
Alan Eldridge
e3f1cd18ae PORTREVISION => 1
Added lotsa missing files to pllist.
Added dl module for those who like to live dangerously (petef?).

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:
2002-11-21 16:14:10 +00:00
Hye-Shik Chang
72143e1b7c Upgrade to Python-2.2.2.
Approved by:	tg
2002-10-17 11:14:17 +00:00
Thomas Gellekum
b0bf616a46 Add patch from SF PR #541980. This fixes 4suite.
Submitted by:	nectar
2002-04-17 11:57:49 +00:00
Thomas Gellekum
70f395a1f5 Upgrade to Python-2.2.
PR:		36977
Submitted by:	Hye-Shik Chang <perky@fallin.lv>
2002-04-12 10:33:42 +00:00
Thomas Gellekum
8a7b647585 Fix sizeof(wchar_t) calculation. 2002-01-21 12:54:09 +00:00
Thomas Gellekum
7d4762e8bb Implement PyObject_DelItemString(), which was obviously forgotten for
Python-2.2. This will fix at least the metakit port.

Bump PORTREVISION.

Obtained from:	Python CVS tree
2002-01-16 12:22:20 +00:00
Thomas Gellekum
555f286ca1 Upgrade lang/python to 2.2. Adjust bsd.python.mk accordingly.
PR:		33444
Submitted by:	Hye-Shik Chang <perky@fallin.lv>

Add new MD5 to dependent ports.
2002-01-07 13:26:47 +00:00
Thomas Gellekum
998b2d08ec Don't build mpz extension, it's moved to a separate port. 2001-10-19 11:16:55 +00:00
Thomas Gellekum
a0e827ef6c Upgrade to 2.1. 2001-05-02 11:25:02 +00:00
Thomas Gellekum
566dfe5616 Fix building on -current.
PR:		26778
Obtained from:	Python CVS
2001-04-26 11:18:46 +00:00
Thomas Gellekum
78f16e0bfd Upgrade to 2.0. 2000-10-18 11:58:50 +00:00
Thomas Gellekum
21f7ea9447 Upgrade to 1.6. 2000-09-08 11:41:43 +00:00
Thomas Gellekum
0221fd2063 Don't create group-writable directories.
Submitted by:	jedgar
2000-08-14 12:36:05 +00:00
Thomas Gellekum
992725797a Add the SHA module to the build. 1999-07-28 07:54:24 +00:00