1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
Commit Graph

218 Commits

Author SHA1 Message Date
Marcus von Appen
a9682d1571 - Fix Python OPT flags for WITH_PTH knob
PR:		ports/168767
Submitted by:	Marcus von Appen <mva@freebsd.org>
2012-07-22 09:45:24 +00:00
Marcus von Appen
2f377af2d0 - Fix builds, if the NLS option switch is set. In some cases
expat-related modules are not built correctly.

PR:		ports/169276
Submitted by:	Greg Byshenk <freebsd@byshenk.net>
2012-06-20 22:35:15 +00:00
Marcus von Appen
b89f9ab26f - Fix gettext detection for the locale module
- Explicitly enable/disable gettext support via a new NLS OPTION switch.

PR:		ports/168684 ports/136917
On behalf of:	python@
2012-06-19 17:48:42 +00:00
Martin Wilke
58183419a8 - Revert back UCS changes 2012-05-31 15:17:32 +00:00
Martin Wilke
7e94fe3d3d - Correct PYMALLOC logic (that fix the build of devel/gobject-introspection)
- Remove old OPTION layout from py32
- Bump PORTREVISON
2012-05-31 10:13:55 +00:00
Martin Wilke
8c2c328510 - Convert to new options framework
Reviewed by:	bapt
2012-05-29 16:42:24 +00:00
Martin Wilke
bf2aa23152 - Unbreak build on powerpc
PR:		168361
Submitted by:	linimon
2012-05-28 05:16:37 +00:00
Martin Wilke
19425757a8 - Update:
* python26 -> 2.6.8
  * python27 -> 2.7.3
  * python31 -> 3.1.5
  * python32 -> 3.2.1

Security:	http://www.vuxml.org/freebsd/b4f8be9e-56b2-11e1-9fb7-003067b2972c.html
		CVE-2012-0845 CVE-2012-0876 CVE-2012-1150 CVE-2012-0845 CVE-2011-3389
2012-04-11 12:52:17 +00:00
Martin Wilke
c70027929c - Mark Python as Secure
- Fix DoS via malformed XML-RPC / HTTP POST

Submitted by:	rm@
Reported by:	many
Obtained from:	python hg
Security:	http://www.vuxml.org/freebsd/b4f8be9e-56b2-11e1-9fb7-003067b2972c.html
2012-02-18 17:53:53 +00:00
Martin Wilke
e1c6649edf - Remove WITH_FBSD10_FIX, is no longer needed 2011-11-09 15:26:04 +00:00
Sunpoet Po-Chuan Hsieh
03ff71952d - Remove outdated patch to prune __wchar_t from CFLAGS (python-config --cflags)
- Bump PORTREVISION for package change

PR:		ports/161564
Submitted by:	Nali Toja <nalitoja@gmail.com>
2011-11-05 13:18:26 +00:00
Beat Gaetzi
5bc148fb49 - Fix build on FreeBSD 10
Approved by:	miwi (implicit)
2011-10-28 10:42:24 +00:00
Li-Wen Hsu
fc7b20b6d4 - Remove the HUGE_STACK_SIZE option, now Python will use default
thread stack size of the system.
2011-09-25 15:05:18 +00:00
Dmitry Marakasov
6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00
Chris Rees
d03cd9afc5 Handle built world without NIS more gracefully; detect missing ypcat and
disable NIS module.

PR:		ports/115940
Submitted by:	Alex Deiter <tiamat@komi.mts.ru>
Reviewed by:	bf
2011-09-18 08:33:15 +00:00
Li-Wen Hsu
80b804c403 - Fix pkg-plist when building with WITHOUT_THREADS
PR:		ports/159842
Submitted by:	Ruslan Mahmatkhanov <cvs-src@yandex.ru>
2011-08-19 13:09:30 +00:00
Wen Heping
1dd8e6661c - Update to 2.6.7 2011-06-08 08:17:06 +00:00
Wen Heping
cd7a0077ee - Apply two patch from svn.python.org to fix CVE-2010-3493 and SA43463
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-3493
http://secunia.com/advisories/43463
2011-03-07 06:57:38 +00:00
Mark Linimon
a0d6245c01 Changes to make python ports work on powerpc (32-bit mode; 64-bit not
yet tested).

Tested on:	powerpc, i386
Hat:		portmgr
PR:		ports/153657 (partial)
Submitted by:	andreast
2011-02-24 23:50:28 +00:00
Mark Linimon
314cb862ff Changes to make python ports work on powerpc (32-bit mode; 64-bit not
yet tested).

Tested on:	powerpc, i386
Hat:		portmgr
PR:		ports/153657 (partial)
Submitted by:	andreast
2011-02-24 23:50:27 +00:00
Mark Linimon
a24db69934 Changes to make python ports work on powerpc (32-bit mode; 64-bit not
yet tested).

Tested on:	powerpc, i386
Hat:		portmgr
PR:		ports/153657 (partial)
Submitted by:	andreast
2011-02-24 23:50:26 +00:00
Wen Heping
24a672c7d5 - Fix the build with pth. 2010-09-13 02:12:03 +00:00
Wen Heping
a332f5435d - Update to 2.6.6 2010-09-12 09:07:44 +00:00
Jung-uk Kim
5045cff4a0 Fix fcntl module to accept 'unsigned long' type commands for ioctl(2).
Although POSIX says the type is 'int', all BSD variants (including Mac OS X)
have been using 'unsigned long' type for very long time and its use predates
the standard long enough.  For certain commands (e.g., TIOCSWINSZ, FIONBIO),
the Python value may get sign-extended on 64-bit platforms (by implicit type
promotion) and it causes annoying warnings from kernel such as this:

WARNING pid 24509 (python2.6): ioctl sign-extension ioctl ffffffff8004667e

Approved by:	python (maintainer timeout)
2010-07-19 21:59:28 +00:00
Wen Heping
25e48ae956 - Update lang/python26 to 2.6.5
- Update lang/python31 to 3.1.2

Reviewed by:	miwi@, lwhsu@
2010-05-12 12:13:07 +00:00
Martin Wilke
492dce90c8 - Update to 2.6.4
Changelog:
	http://python.org/download/releases/2.6.4/NEWS.txt
2009-11-26 22:21:20 +00:00
Martin Wilke
87ee28693e Fix build if POSIX semaphore enabled is
Reported by:	many on ports@/python@
Patched by:	beat@

Feature safe: yes
2009-09-15 21:41:21 +00:00
Martin Wilke
7ab93f8778 - Add support for FreeBSD 9.0
PR:		based on 138600
2009-09-11 14:58:08 +00:00
Martin Wilke
e3b22deb7d - Use dirrmtry in lib-old dir to fix some plist leftlovers 2009-08-13 12:12:20 +00:00
Li-Wen Hsu
af509f97c9 - Fix build with WITH_SEM but ${OSVERSION} < 701106 (mark IGNORE correctly)
PR:		ports/136992
Submitted by:	Andrey Zonov <andrey.zonov AT gmail.com>
2009-08-02 10:58:58 +00:00
Li-Wen Hsu
2b97db48a6 - Ask the first Python installed to install the bin/python link,
and be the default Python version

PR:		ports/109550
Submitted by:	David Yeske <dyeske AT yahoo.com>
Obtained from:	tmclaugh
2009-07-14 09:29:03 +00:00
Li-Wen Hsu
986242b42a - Honor EXAMPLESDIR, DATADIR, NOPORTEXAMPLES, NOPORTDATA
- portlint(1)
2009-07-12 17:17:52 +00:00
Martin Wilke
81100672d4 - Update lang/python26 and make Python 2.6.2 to the default Python version
Tested by:	3 pointyhat runs
Thanks to:	pav, gahr, lwhsu, mva, amdmi3
2009-06-08 22:30:55 +00:00
Bruce M Simpson
a95007e208 Add support for building Python against GNU Portable Threads (Pth),
and also add experimental support for POSIX semaphores in FreeBSD
7-STABLE and up. The option knobs PTH and SEM respectively are
added to enable this behaviour.

Python is able to use POSIX semaphores for thread synchronization
in threading, and prefers them.
The multiprocessing module in Python 2.6 requires POSIX semaphores,
however, the FreeBSD rtld and malloc need further work to allow
a process to call pthread_create() immediately after fork() as it is
not something allowed by a strict interpretation of the POSIX specs;
therefore allow GNU Pth to be used until the situation is resolved.

Approved by:	miwi
2009-03-14 09:33:40 +00:00
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
Tom McLaughlin
d8cb06964c Fix typo in UCS4 knob handling.
Noted by:	Dominic Fandrey <kamikaze@bsdforen.de> via freebsd-python@
2009-02-22 19:56:00 +00:00
Martin Wilke
c95782ae1a - Update to python 2.5.4 and python 2.6.1
Reviewed by:	perky | lwhsu
Tested with:	exp-run via pav
2009-02-16 23:32:02 +00:00
Hye-Shik Chang
3813a5dbe7 Introduce two new versions of Python: 2.6 and 3.0rc1 (finally!)
Python 2.6 will be the next default python version when enough
testings of consumer ports are done.  The new "2to3" program is
renamed to 2to3-2.6 and 2to3-3.0 for each version, respectively.

Repo-copied by:	marcus
2008-10-13 08:23:00 +00:00
Martin Wilke
8a1ff65b9b - Security fixes
Multiple vulnerabilities:

	1) Various integer overflow errors exist in core modules e.g. stringobject,
	   unicodeobject, bufferobject, longobject, tupleobject, stropmodule, gcmodule, mmapmodule.
	2) An integer overflow in the hashlib module can lead to an unreliable cryptographic digest results.
	3) Integer overflow errors in the processing of unicode strings can be exploited to cause
	   buffer overflows on 32-bit systems.
	4) An integer overflow exists in the PyOS_vsnprintf() function on architectures that do not
	   have a "vsnprintf()" function.
	5) An integer underflow error in the PyOS_vsnprintf() function when passing zero-length strings
	   can lead to memory corruption.

PR:		127172 (based on)
Submitted by:	bf <bf2006a@yahoo.com>
Obtained from:	python svn
Security:	CVE-2008-2315, CVE-2008-2316, CVE-2008-3142, CVE-2008-3144, CVE-2008-3143. (vuxml come later)
2008-09-08 00:14:06 +00:00
Rong-En Fan
741aa71483 Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
2008-08-21 06:18:49 +00:00
Martin Wilke
87262d65c4 - 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

Reviewed by:	alexbl
Obtained from:	python svn
Security:	http://www.vuxml.org/freebsd/ec41c3e2-129c-11dd-bab7-0016179b2dd5.html
2008-04-25 08:16:04 +00:00
Martin Wilke
3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00
Hye-Shik Chang
3c61d8d746 Force to build bsddb185 module to make pkg-plist consistent.
Reported by:	ports/121191
2008-02-29 14:05:31 +00:00
Pav Lucistnik
ae4d9bdc60 - Fix plist
Reported by:	pointyhat
2008-02-25 16:39:19 +00:00
Hye-Shik Chang
bfb5f6f187 Update to Python 2.5.2. 2008-02-24 13:42:27 +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
Edwin Groothuis
c0b3ecac44 Remove support for OSVERSION < 5 2007-10-03 23:22:04 +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
Hye-Shik Chang
ab1df0e8f4 Correct a patch not to install unwanted files.
Approved by:	portmgr (kris)
2006-10-16 03:12:44 +00:00