Commit Graph

336 Commits

Author SHA1 Message Date
rpointel
cc67cdc9fd add python2.7 to the build.
ok landry@ sthen@
2011-05-15 08:25:45 +00:00
fgsch
b773a0128f Use skipIf and mention the platforms explicitly. 2011-05-08 22:46:19 +00:00
fgsch
0a79ab1fc2 Security fix for CVE-2011-1521.
prodded and ok jasper
2011-05-07 09:36:17 +00:00
fgsch
81bd45496c make the comments more prominent. 2011-05-07 09:35:13 +00:00
fgsch
e7a4d15602 - revert the handling of async callbacks pre 2.7 for the time being. this
fixes the hangs and some other problems and allow us to move further while
  a proper fix is investigated. as a result remove the patches to test_io
  and test_socket, they are ok now.
- remove the distutils diff. it doesn't seem right, nobody really knows why
  it's there and it actually breaks things with this version.
- bump
discussed and ok rpointel martynas sthen djm
2011-05-05 23:25:44 +00:00
rpointel
129e1f459d Removed AUTOCONF_VERSION?= now we have the correct AUTOCONF_VERSION in each version of Python.
From Brad, ok sthen@.
2011-05-03 17:52:04 +00:00
rpointel
ddaac7f6a1 use proper autoconf version, from Brad.
ok sthen@.
2011-05-03 17:48:08 +00:00
fgsch
0f9cb35359 install 2to3 under python2.7-2to3 so it can co-exist with 2.6
rpointel sthen martynas ok.
2011-05-03 17:18:28 +00:00
fgsch
f50c74636c - install 2to3 under python2.6-2to3 so it can co-exist with 2.7
- use right autoconf version
- fix CVE-2011-1521 (2.4 and 2.5 will be handled separately)
- bump
rpointel sthen martynas ok.
2011-05-03 17:17:01 +00:00
fgsch
14d07c603d adjust interpreter path for 2to3 and install it under pythonVERSION-2to3.
discussed with rpointel, rpointel sthen martynas ok.
2011-05-03 17:14:43 +00:00
rpointel
714b3ba354 Added 2 patch to permit to 'make regress' without blocking...
Used @unittest.skip instead of commenting out the test.
Corrected wrong value of LDSHARED in sysconfig, cf http://bugs.python.org/issue10547.
Bump REVISION.
ok landry@ (thanks).
2011-04-26 19:42:31 +00:00
rpointel
eaa3c34823 Import Python 2.7.1.
Thanks a lot to landry@, fgsch@ for feedback.
Need tests before doing this version the default.
2011-04-24 09:31:44 +00:00
rpointel
c25fe689b1 Prepare import of python 2.7.
(Not linked to the build, and not made the default python).
ok landry@, fgsch@.
2011-04-24 09:19:01 +00:00
kili
a08d197254 Whenever a package installs a script using #!/usr/bin/env, god kills
a kitten.

Let pydoc${VERSION} use #!${LOCALBASE}/bin/python${VERSION} instead
of $!/usr/bin/env python${VERSION}.

ok rpointel@, sthen@ (after some discussion wether post-build is
the proper target for this or not)
2011-04-12 19:28:13 +00:00
espie
be2f93f11d since db/v4 has db->=4,<5 as default, no need to specify it explicitly 2010-11-26 14:50:09 +00:00
espie
f7466761c3 missed some 2010-11-22 09:20:34 +00:00
espie
88d20077a4 new depends 2010-11-17 08:05:12 +00:00
sthen
1745732377 use tk.port.mk and move -tkinter to a more recent version of Tcl/Tk.
reads fine to fgsch@
2010-11-15 20:55:24 +00:00
espie
5e243a5257 convert WANTLIB on geo/lang 2010-11-07 19:12:42 +00:00
fgsch
a7fd09db10 Simplify and switch to REVISION.
From Alexandr Shadchin (firstname dot lastname at gmail dot com).
martynas@ ok.
2010-10-28 08:22:11 +00:00
ajacoutot
39407c46c2 Add a MODPY_BIN_ADJ variable for python shebang substitution. It will
automatically change from scripts from using /usr/bin/env python or
/usr/bin/python to using #!${MODPY_BIN} .
Add a MODPY_ADJ_FILES in which you can put the files that are under
${WRKSRC} you want to subtitute the shebang.
e.g.
MODPY_ADJ_FILES= setup.py bin/foobar.py.in


Some input from djm@
"sane idea to me" jasper, ok sthen@
2010-10-26 14:29:26 +00:00
ajacoutot
ff07e285bc Remove USE_X11. 2010-10-24 20:58:58 +00:00
sthen
3b2bbaacc0 Add MODPY_WANTLIB, adjust MODPY_LIB_DEPENDS to new-style LIB_DEPENDS,
update all ports to match. Plists don't change -> no bump.
Looks ok to jasper.
2010-10-24 15:53:55 +00:00
espie
88dd25abf4 USE_GROFF=Yes 2010-10-18 19:20:41 +00:00
jasper
6e6097e4ac - remove the BROKEN-mips64 markers after miod's recent softfloat commit,
python seems to be working well enough now.
2010-09-22 13:44:12 +00:00
fgsch
64401fc28c - Add a MODPY_JSON var soon to be used by ports requiring simplejson when
built with python versions previous to 2.6.
- Simplify MODPY_BADEGGS.
- Fake setuptools if MODPY_SETUPTOOLS is not present to detect those ports
  that will build regardless but the resulting plist will be different.
Input, tested and ok by many, thanks!
2010-09-16 22:58:19 +00:00
fgsch
42c9e879be Update Python to 2.6.6. Tested by many.
sthen@ ok
2010-09-16 22:36:08 +00:00
fgsch
06cc1c44bb Update WANTLIB after ncurses update. While here remove unneeded pthread-stubs
and xcb from -tkinter.  With help from sthen@
2010-09-16 22:34:08 +00:00
sthen
9a433e21ca When knocking out a MULTI_PACKAGE on some arch, keep listing it in
MULTI_PACKAGES, and add an (ONLY|NOT)_FOR_ARCHS-subpkg=somearch, rather
than changing contents of the MULTI_PACKAGES variable.

Fixes dpb builds on !amd64/i386, because the bsddb package was
knocked out on other arch.

'please unfuck the fucking mess people only testing on i386 and
amd64 did' landry@
2010-09-03 19:20:06 +00:00
fgsch
7306c4d463 Switch default to python 2.6.
Discussed and ok from many. Bumps will follow.
2010-08-30 16:35:02 +00:00
djm
1b319614a9 revert previous; hppa is sick and needs to be fixed first 2010-07-29 08:39:53 +00:00
djm
fcc3b09a49 Move to python-2.6 by default; requested by fgsch@ 2010-07-29 02:17:58 +00:00
sthen
94b1e1eac7 Update Python to 2.6.5, committing on behalf of fgsch@ whose laptop is broken. 2010-07-23 13:56:26 +00:00
ajacoutot
5f48a04970 Add a MODPY_BUILDDEP variable so we can use the python MODULE without
actually needing python. This will allow removal of some hacks in tree.
Remove XXX.

ok sthen@
2010-07-22 10:39:19 +00:00
sthen
02435810cc update the list of ports which hardcode the python version
(subversion and pinot, as well as gtk+2 which is already listed).
2010-07-15 07:55:29 +00:00
jasper
7d16b66d27 - more BROKEN-$ARCH 2010-04-15 18:35:02 +00:00
ajacoutot
ce7c969358 Stupid poor blank lines, stupid poor blank lines... 2010-04-15 14:58:24 +00:00
ajacoutot
5985d2ef24 Consistency: remove the 1, 2 or even 3 empty blank lines.
sthen@ agrees
2010-04-15 14:11:01 +00:00
phessler
2702a8279d python2.5 needs a patch to libffi/configure in order to detect what
platform loongson is.  Unbreak for mips64el.

OK jasper@
(reminder, ports is not fully open, do not commit without specific permission)
2010-02-28 15:27:37 +00:00
espie
d6818103c8 the egg framework is fucked up (modifies stuff in WRKBUILD during install),
so work around by tricking it to write into WRKINST through a symlink.

keep this here, so that affected ports need minimal modifications, and we
can work out a better fix long term.

Agreed with wcmaier...
2010-02-27 17:52:18 +00:00
phessler
cd7d60e242 Allow Python to build on loongson. Bring in some libffi fixes, inspired
by jasper@'s fixes to the libffi port.

Mark mips64 (aka, sgi) as BROKEN, as the build fails.  We'll look closer
at this after unlock.

OK jasper@

ports is unlocked for a while only for those who have been informed.
2010-02-25 11:02:39 +00:00
jasper
228964a8d2 - extend archtecture tests for mips64el
ok naddy@ phessler@
2010-02-09 12:23:59 +00:00
espie
100f0c7870 SUBDIR += is wrong: it means the makefile will pick up SUBDIR from env, thus
breaking cd /usr/ports && SUBDIR=some/path make something for
category makefiles. While there, also put spaces around += uniformously.
okay naddy@, jasper@
2010-02-01 17:00:12 +00:00
espie
4fb9f48443 fix update from OpenBSD 4.5 (missed @pkgpath markers at the time
-bz2, -expat, -sqlite were removed)
2010-01-20 08:15:21 +00:00
jasper
a7f58dc602 - minor tweaks for mips64, none of the versions fully build, but at least
they're somewhat getting there.
- with the added patch, 2.5 gets as far as 2.6, and then fails terribly.

ok djm@ (MAINTAINER)
2009-11-22 22:53:19 +00:00
sthen
7a946ee1b1 fix @conflict lines; unbreaks pkg_add -u if you have python-foo-2.6
installed (with the new version of pkg_add). ok djm@.
2009-10-27 23:35:09 +00:00
djm
4a2084109b update to maintenance release 2.6.3, relnotes at:
http://www.python.org/download/releases/2.6.3/NEWS.txt

NB. regress tests are known to fail if py-xml is installed. Try to spend
less time than I did in figuring this out.
2009-10-16 09:38:20 +00:00
ajacoutot
27263b83d9 Unbreak packaging of python2.6 on powerpc; ctypes module will need more
work.

ok djm@
2009-09-22 21:31:00 +00:00
kili
6b51812b24 WANTLIB changes after xcb addition and bump.
For some unknown reason, I forgot to commit lang/*
this morning.
2009-08-10 17:31:07 +00:00
sthen
43295534c2 Add a comment noting that x11/gtk+2 hardcodes the python version;
ajacoutot@ agrees with doing it this way.
2009-08-08 21:58:10 +00:00
jolan
b850b90361 avoid conflict in -tools subpackage 2009-06-25 01:49:54 +00:00
djm
78cd2e8e1c python-2.6.2 2009-05-03 22:26:27 +00:00
ajacoutot
22e9ba6d0d Add CONFIGURE_ENV += PYTHON="${MODPY_BIN}"
Lots of python ports already do this, so better factorize. It will also
help mitigate some build breakages when several python versions are
installed.

Related ports cleanup coming in a few...

"looks ok" wcmaier@
"makes sense" sthen@
"no objection"  djm@
2009-04-26 10:49:33 +00:00
sthen
8b1055603f bump for tk; pointed out by jasper@ 2009-03-16 13:18:56 +00:00
espie
f2cea121fb a few deps 2009-03-16 11:40:24 +00:00
espie
4a3813916a A few more python deps, tweak python module to handle tkinter 2009-03-15 13:03:41 +00:00
espie
6936deb3a3 bump for tk 2009-03-14 12:31:15 +00:00
espie
f4e4ac6742 a few spec fixes and assorted pkg bumps, more to come. 2009-03-09 23:09:19 +00:00
djm
d71b9a7269 Updates and garbage collect all three Python ports:
2.4.4 => 2.4.8
    2.5.2 => 2.5.4
    2.6 => 2.6.1

Python 2.4 and 2.5 lose their build knobs to match 2.6.

Removes no longer needed Python 2.5 security patches backported
from the release25-maint SVN branch.

Remove the -bz2 subpackage from all three versions. It is silly
to make a subpackage to avoid depending on something tiny and
compatibly licensed.

Python 2.4 and 2.5 lose their -expat subpackages; expat has been
in base for some time.

Python 2.5 loses its sqlite subpackge. Again, sqlite is tiny,
compatibly licensed and is depended upon by more and more
applications. This brings it into line with the 2.6 version.

Rework all three version's handling of setup.py. Rather than regex
replacing LOCALBASE and X11BASE into setup.py post-configure, these
are passed in though environment variables. Will save hours of
frustrated cursing familiar to anyone who has accidently used the
update-patches target after configure and had to go back and redo
all the substitutions.

Rework the patching of setup.py for 2.4 and 2.5 to be more like
what we do for 2.6. I.e. keep the diff minimal and avoid deleting
huge blocks of code, so the diff has a chance of applying without
massive hand-editing each patch release.

Fix .py paths in installed .pyc files (patch from eric@)

feedback from several, particularly eric@, ajacoutot@ and Ingo
Schwarze; "get it in" ajacoutot@
2009-01-01 21:03:27 +00:00
fgsch
95bf280eb6 No expat dependency for 2.6. djm@ ok. 2008-12-16 06:32:27 +00:00
djm
75b30c5d9f unused for a long time; spotted by fgsch@ 2008-12-16 05:32:20 +00:00
djm
40f2faa1e4 more unused files; spotted by fgsch@ 2008-12-16 05:31:32 +00:00
djm
541153395a the python-2.6 port does not have a sqlite subpackage, so this file
is unused
2008-12-15 22:10:34 +00:00
ajacoutot
3b716fff98 - add MODPY_BIN to SUBST_VARS
"+1" wcmaier_p, "yes please" steven@, "remove python" mbalmer@
2008-10-27 00:02:27 +00:00
steven
45a5036ac6 bump pkgname after maintainer change 2008-10-21 20:13:07 +00:00
djm
e21188af21 python-2.3 => attic 2008-10-19 11:33:50 +00:00
ajacoutot
308c0513a9 - tweak MESSAGE
ok djm@
2008-10-19 07:13:45 +00:00
djm
38f3061a21 out with 2.3
in with 2.6
2008-10-18 12:04:37 +00:00
djm
413ba2dc4a port of Python-2.6, with 100% fewer build knobs!
Thanks to Ian Darwin, Will Maier and Aleksander Piotrowski for feedback
2008-10-18 12:03:56 +00:00
djm
1cc5fcb98c fix slightly borked packaging:
- idle was incorrectly included in the -main package, not the -idle
  subpackage. Move these to where they belong.

- The -main package installed a ${LOCALBASE}/python-config, which
  would conflict with future python versions. Remove this and add
  a MESSAGE suggesting users symlink python-config2.5 to it if
  necessary

- An Emacs .el files was also installed by the -main package, this
  too would conflict with parallel installs of different major
  releases. Move this to the -tools subpackage.

bump PKG_PATCHLEVEL
2008-10-18 12:01:25 +00:00
djm
9861d97b91 Prepare for Python-2.6
Flip default ALL_TARGET to the one that will be used for current
and future (>=2.5) Python releases, move old default down into
2.3 and 2.4 Makefiles

Turn on a verbose retry when regress tests fail; saves messing with
LD_LIBRARY_PATH incantations to get them to rerun

Take maintainership
2008-10-18 11:55:57 +00:00
djm
04a7186835 The _sha256 and _sha512 modules are not built when Python is built
against OpenSSL 0.9.8 as it includes support for these hashes directly.
Bump pkgname.
Report from Frank Denis
2008-09-06 23:39:57 +00:00
djm
d39c4b92ff Fixes for multiple security vulnerabilities:
CVE-2008-1679 CVE-2008-1721 CVE-2008-1887
        CVE-2008-2316 CVE-2008-3142 CVE-2008-3144

Patches cherrypicked with assistance of val.masutin AT gmail.com and
Toni Mueller.

Tested by sthen@ naddy@ ok pvalchev@
2008-08-06 03:23:31 +00:00
martynas
680c954d11 last round of library bumps due to libc/libm changes. from sthen@
double-checked & ok naddy@, go for it pval@
2008-07-30 19:47:09 +00:00
sthen
d18eda55cb bump libpython2.4 and PKGNAME for isinf() 2008-07-25 19:38:46 +00:00
sthen
fbd63db784 bump libpython2.5 and PKGNAME for isinf()
ok espie
2008-07-25 19:32:21 +00:00
djm
76c76e5029 Fix crash in readline module when using completion caused by bad
implicit prototype of legacy completion_matches function.
Report and fix from henry AT precheur.org
2008-06-30 00:29:32 +00:00
wcmaier
1dc7873634 Prepend MODPY_* variables in SUBST_VARS.
Previously, when eg MODPY_VERSION is a substring of a variable added
to SUBST_VARS in a port's Makefile, pain on update-plist can ensue.
Makes updates on www/py-django more fun. Tests and feedback from
merdely@ and Darrin Chandler; thanks!

ok steven@, "if it doesn't break anything..." fgsch@
2008-06-10 15:01:49 +00:00
pvalchev
bb0a677b47 -mieee is now default on alpha 2008-06-10 05:11:21 +00:00
espie
b70891310f fix intermitent race condition, no reason for ./Lib/plat-openbsd4
to match $(srcdir)/Lib/plat-openbsd4 except by accident...
2008-06-09 12:34:55 +00:00
deanna
fb45a35004 Let 2.5 install python-mode for emacs.
ok mbalmer@
2008-05-10 17:10:24 +00:00
wcmaier
8d2dde4d44 Add MODPY_EGG_VERSION to SUBST_VARS to make PLIST updates nicer.
This'll prevent setuptools from creating egg-info filenames
encoded with the package version (even when MODPY_SETUPTOOLS
isn't enabled).

ok mbalmer@, eric@, merdely@; input from many py porters
2008-04-09 21:45:54 +00:00
merdely
d4d0c829a3 Move two files from PLIST-main to PLIST-tools. Fixes pkg_delete python.
From alek@
ok ajacoutot@
2008-03-27 14:31:31 +00:00
djm
f1a641c815 python-2.5.2
tested with a full ports build by naddy@ ok pvalchev@
2008-02-27 00:30:47 +00:00
ajacoutot
a33dce6a1a - set SHARED_ONLY=Yes for this module
mbalmer: "python is only runnable on shared arches, all extensions use dlopen()"
no objections from jasper@ espie@ mbalmer@
2008-01-20 15:28:29 +00:00
espie
17d70806a3 tweak FAKE_FLAGS semantics to saner defaults. 2008-01-04 17:48:33 +00:00
martynas
486155ce21 add lang/python category; ok steven@ ajacoutot@ 2007-12-10 21:06:58 +00:00
merdely
e0c0e00c91 Add -mieee CFLAG if ${MACHINE_ARCH} == alpha to prevent floating point
exception.

ok & help martynas@; ok alek@ (MAINTAINER) and naddy@
2007-11-21 18:45:07 +00:00
espie
1f7a885b4d nail down build order for parallel build.
tested through a bulk build by sturm@
2007-11-03 11:16:21 +00:00
steven
acc66832c1 build bsddb interface only with python 2.5, since older python versions
ship a bsddb that doesn't work with berkeley db > 4.2.

discussed with sturm and sthen
2007-10-30 13:35:18 +00:00
steven
e68b25b9ba db.=4 -> db.>=4 in preparation of db4 update
ok sthen@
2007-10-25 21:05:33 +00:00
steven
94f22279a1 replace MODPY_NO_RUNDEP with MODPY_RUNDEP (yes by default)
add MODPY_LIB_DEPENDS

no objection djm@, ok bernd@
2007-10-22 10:14:02 +00:00
steven
6ff06b85b9 move some test files to the -tests subpackage.
noticed by Simon Kuhnle <simon at blarzwurst.de>
2007-10-21 11:41:32 +00:00
espie
9115667e68 hidden build depend on subversion, if it's around 2007-10-20 06:55:54 +00:00
espie
10bc6b7682 remove the embedded expat source.
This makes sure we pick up the system expat.h
No package change.
2007-10-20 06:54:55 +00:00
ajacoutot
0c0862e8f9 - tweak MESSAGE: force symlink creation (nothing fancy but makes it
easier when changing default python versions)

"sure" steven@
2007-10-16 08:22:32 +00:00
steven
1c3b4e374e oops, missing :L 2007-10-10 21:44:06 +00:00
steven
a0f54e5879 add MODPY_NO_RUNDEP (set to no by default) to be able to use all the
variables from the python module without adding python to RUN_DEPENDS.

requested by and ok bernd@
2007-10-10 21:42:14 +00:00
steven
58855d1489 switch default python version to 2.5
discussed with martynas and djm
2007-10-08 08:21:33 +00:00
alek
813e72e442 AUTOCONF_VERSION is supposed to be overwritten for particular version of python so replace = with ?= in Makefile.inc to make it possible; ok sturm@, steven@ 2007-09-26 14:02:23 +00:00