summaryrefslogtreecommitdiff
path: root/lang/python32 (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-02-02Remove expired lang/python32Ruslan Makhmatkhanov21-5065/+0
Python 3.2 has reached it's EOL. Please update to Python 3.5 With hat: python Notes: svn path=/head/; revision=407843
2016-01-08lang/python{27,3*}: Backport patch in upstream issue20397Kubilay Kocak2-0/+35
In certain situations, file references (.py[co]) for Python files that fail to compile with compileall() are still added to distutils --record output. This output is used for pkg-plist generation and must only contain references to files that will be installed. One example of a failure condition is when a Python 2/3 compatible package containing a file containing Python 3.x only code is built with Python 2.x, such as Gunicorn's _gaiohttp.py [1] This change backports patches submitted against upstream issue 20397 [2] that has not yet been committed. - For Python 2.7 and 3.5, backport both install_lib and test - For Python 3.2, 3.3 and 3.4, only backport install_lib [1] https://svnweb.freebsd.org/changeset/ports/404558 [2] https://bugs.python.org/issue20397 Thank you to Brendan Molloy for producing and submitting the patches against upstream sources. Reviewed by: sbz (python) MFH: 2016Q1 Differential Revision: D4832 Notes: svn path=/head/; revision=405569
2015-12-29lang/python27(3*), Mk/Uses/python.mk: remove make spawnJohn Marino2-1/+6
There are some inefficiencies in python.mk that significantly slow down full tree scanning. The use of bmake to obtain the current version of a specific python is responsible for the majority of the slow done. This commit splits out the PYTHON_PORTVERSION definition (which is the same as the lang/python* PORTVERSION) into separate files. With this change, python.mk can simple include the makefile fragment instead of spawning a new instance of make. Different Revision: https://reviews.freebsd.org/D4660 Approved by: antoine (python), mva (python) Notes: svn path=/head/; revision=404739
2015-12-24lang/python32: Mark deprecated / fix No-EDGD/-SSLv3Bernard Spil2-0/+177
- Mark DEPRECATED, EXPIRES Feb 2016 [1] - Backport issue21356 RAND_egd fix [2] - Fix build for openssl -nossl3 [1] https://www.python.org/dev/peps/pep-0392/#lifespan [2] http://bugs.python.org/issue21356 PR: 195513 Reviewed by: koobs (mentor, python), feld (mentor) Approved by: koobs (python, mentor) Differential Revision: https://reviews.freebsd.org/D4701 Notes: svn path=/head/; revision=404378
2015-12-24- Switch regression-test to TEST_TARGEDMartin Wilke1-3/+4
Discussed in: D4695 Reviewed by: koobs Notes: svn path=/head/; revision=404343
2015-12-21- Update lang/python32 to 3.2.6 [1]Martin Wilke4-76/+27
- Update lang/python35 to 3.5.1 [2] - Update lang/python-doc-html for [1] - Switch to do-test Changelog: [1] https://hg.python.org/cpython/file/v3.2.6/Misc/NEWS [2] https://docs.python.org/3.5/whatsnew/changelog.html#python-3-5-1-final Reviewed by: koobs (python) Approved by: mat (mentor) Differential Revision: D4663 Notes: svn path=/head/; revision=404141
2015-11-19Add version specified ports of separated standard Python modules forLi-Wen Hsu2-4/+7
non-default Python versions: - Add pyXY-{sqlite3,gdbm,tkinter} ports for generating binary packages - Improve/add pkg-message to point users to install respective packages of separated Python standard modules - Add COMMENT to explicitly show the Python version that package should be used with - Simplify version-related PYTHON_* for lang/python35 Reviewed by: koobs Differential Revision: https://reviews.freebsd.org/D4170 Notes: svn path=/head/; revision=401909
2015-10-18lang/python{27,32,33}: Fix missing shlib path in python-configKubilay Kocak3-6/+38
In Python 3.4+, upstream added and switched to using a shell implementation of the python-config script [1]. The Python implementation (python-config.py) remained used by all versions < 3.4. While the shell implementation returns the path to the Python shared library when using the --ldflags script argument, the Python implementation of the script does not. The bug has been reported, but has not yet been merged [2]. The Python ports currently default to including ${LOCALBASE}/lib in LIBS when the NLS option is enabled (which it is by default). When built *with* NLS (gettext) support, the flags added to LIBS are returned in `pythonX.Y-config --ldflags` output, which happens to match the path to the Python shared library. If the NLS option is disabled, ${LOCALBASE}/lib is not added to LIBS, and are therefore not returned in --ldflags output. This results in potential linking errors for software that uses python-config to obtain the correct library path, when the NLS option is disabled: $ make WITH=PYTHON -C audio/alsa-lib [...] --- smixer-python.la --- CCLD smixer-python.la /usr/bin/ld: cannot find -lpython2.7 This change modifies the python-config.in script to match the shell implementation, outputting the library path in --ldflags output. While I'm here: for Python 3.2 and Python 3.3 ports, backport a library order change [3]. This could affect linking with static libraries. Use standard length lines and reduce diffs in pkg-message [1] https://bugs.python.org/issue16235 [2] https://bugs.python.org/issue7352 [2] https://bugs.python.org/issue18096 PR: 197757 Submitted by: jbeich MFH: 2015Q4 Notes: svn path=/head/; revision=399611
2015-07-30lang/python{27,32,33,34}: Mark MAKE_JOBS_UNSAFEKubilay Kocak1-0/+1
Parser/pgen code intermittently and non-deterministically fails at build time causing errors including, among others: * Parser/pgen.o: file not recognized: File truncated * pgenmain.c:(.text+0x244): undefined reference to `_Py_pgen' This is apparently due to incorrect uses of recursive make [1] which was fixed in the upstream Python 'default' (3.5) branch [2]. This change marks all Python port versions as MAKE_JOBS_UNSANFE until the the original changeset [1] and the resulting regression in cross-builds [3], whos fix is still pending, can be backported. [1] https://bugs.python.org/issue22359 [2] https://hg.python.org/cpython/rev/c2a53aa27cad [3] https://bugs.python.org/issue22625 PR: 200622 Reported by: marino MFH: 2015Q3 Notes: svn path=/head/; revision=393217
2015-05-14MASTER_SITES cleanup.Mathieu Arnold1-2/+1
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight Notes: svn path=/head/; revision=386312
2015-04-06Force a rebuild/upgrade to chase head r280306 which removed SSLv2 support.Bryan Drewery1-1/+1
This fixes head package users so they have working SSL support. There was already a built-time fix for this. Notes: svn path=/head/; revision=383449
2015-03-25lang category: Remove $PTHREAD_LIBSJohn Marino1-2/+1
Note: ecl did not pass check-plist (pre-existing), PR 198897 submitted. approved by: PTHREAD blanket Notes: svn path=/head/; revision=382211
2015-01-21lang/python32: Fix ABIFLAGS for PYMALLOC optionKubilay Kocak2-12/+32
Investigating the comment regarding a 'configure script bug' lead me to a bug which manifested itself in 'm' not being added to ABIFLAGS when PYMALLOC was enabled, not the inability to set --without-pymalloc using PYMALLOC_CONFIGURE_WITH (options helpers). The incorrect ABIFLAGS caused packaging failures with default options, so I'm not sure how this wasn't picked up earlier: Error: Orphaned: include/python3.2u/<file> <snip> Error: Missing: include/python3.2mu/<file> - Backport an upstream commit [1] to correct the configure bug that never made it to the 3.2 branch. - Use options helpers for PYMALLOC accordingly While I'm here, clean up after the LIBFFI option addition: - Sort options variables: OPTIONS_* and *_DESC - Use OPTIONS helpers [1] https://hg.python.org/cpython/raw-rev/d158b0a78390 Approved by: python Notes: svn path=/head/; revision=377591
2014-12-22- Revert the previous NIS check, since it does not help at allMarcus von Appen1-1/+1
PR: 196195 Submitted by: ache@ With hat: python@ Notes: svn path=/head/; revision=375245
2014-12-22- Python 3.x: try to improve the NIS detection for FreeBSDMarcus von Appen1-2/+2
PR: 193650 With hat: python Notes: svn path=/head/; revision=375221
2014-11-04Add an option to use libffi from ports instead of bundled version.Dmitry Sivachenko1-3/+9
Submitted by: cy Reviewed by: koobs Notes: svn path=/head/; revision=372138
2014-10-27Cleanup plistBaptiste Daroussin1-129/+0
Notes: svn path=/head/; revision=371587
2014-09-04Change INSTALL_DATA to install with mode 644Antoine Brodin2-18/+2
Remove patches and hacks that were used to work around the previous situation This allows to stage more ports as a regular user Differential Revision: https://reviews.freebsd.org/D703 Reviewed by and discussed with: bapt With hat: portmgr Notes: svn path=/head/; revision=367307
2014-08-10- Add USE_OPENSSL, since all lang/python ports build the _ssl module, whichMarcus von Appen1-1/+2
requires a working OpenSSL implementation Phabric: D569 Reviewed by: wg@ With hat: python@ Notes: svn path=/head/; revision=364557
2014-08-01- Remove everything related to USE_PYTHON and bsd.python.mk. This is aMarcus von Appen5-4879/+4545
preparatory step to convert bsd.python.mk into a USES file. - Remove the shared/static build separation, which is the source of many problems and even more hacks. Instead build only the shared version, which greatly simplifies the build. - Use NLS_LIBS instead of NLS_LDFLAGS as done for lang/python27 (r357486) - Remove the FPECTL option to align the build with the clean "template" from lang/python34. - Remove PORTDATA and EXAMPLES. Those will be made available via separate ports. - Add a new DEBUG option to enable debug builds as for lang/python34. - Add a new TSC option for precise timestamp counter support as for lang/python34. - Add CPE support. - Reactivate curses/ncurses support. - Use buildbottest in the regression-test: target. Phabric: D448 Reviewed by: koobs, bapt With hat: python@ Notes: svn path=/head/; revision=363730
2014-07-20Drop some %%PORTDATA%%Antoine Brodin1-210/+210
With hat: portmgr Notes: svn path=/head/; revision=362367
2014-07-11- Add CPE entries for pythonSofian Brabez1-13/+15
- Remove NOPORTDATA as it's deprecated since r359061 Notes: svn path=/head/; revision=361574
2014-04-22lang/python{27,31,32}: Replace USE_XZ with USES=tar:xzKubilay Kocak1-2/+1
USE_XZ has been deprecated, replace it with the new USES value. Python 3.3 and 3.4 ports have already been converted. Notes: svn path=/head/; revision=351842
2014-04-22lang/python{31,32,33}: Fix stage/package as non-rootKubilay Kocak1-2/+24
Copy the second part of a change previously made to python27 [1], to python31, python32 and python33. This fixes staging and packaging of these ports by a non-root user by running ranlib on the archive prior to it being installed read-only. While I'm here: - python27: Add breadcrumbs and references to the patch header - python34: Update breadcrumbs and references to the patch header [1] https://svnweb.freebsd.org/ports?view=revision&revision=350207 Submitted by: antoine Reviewed by: kwm, sbz Notes: svn path=/head/; revision=351815
2014-04-20lang/python{31,32,33}: Add clang 3.4 fix from python27Kubilay Kocak2-1/+16
Copy change committed to python27 [1] to python31, python32 and python33 to fix builds of some extensions with Clang 3.4. Also add breadcrumbs to the patch header in lang/python27 referencing the upstream issue. [2] The Python 3.4 port (lang/python34) already carries the patch. [1] https://svnweb.freebsd.org/ports?view=revision&revision=346428 [2] http://bugs.python.org/issue20767 Notes: svn path=/head/; revision=351610
2014-04-11- Pet portlint: use PYTHON_DISTNAME instead of PYTHON_DISTFILESunpoet Po-Chuan Hsieh1-1/+1
Notes: svn path=/head/; revision=350904
2014-03-01- Fix build with readline 6.3 from portsAntoine Brodin2-0/+55
the patch was backported from upstream (issue #20374) - Add missing USES=readline Obtained from: python Notes: svn path=/head/; revision=346632
2014-03-01lang/python*: Backport security fix for CVE-2014-1912Kubilay Kocak2-1/+50
A vulnerability was reported [1] in Python's socket module, due to a boundary error within the sock_recvfrom_into() function, which could be exploited to cause a buffer overflow. This could be used to crash a Python application that uses the socket.recvfrom_info() function or, possibly, execute arbitrary code with the permissions of the user running vulnerable Python code. This vulnerable function, socket.recvfrom_into(), was introduced in Python 2.5. Earlier versions are not affected by this flaw. This is fixed in upstream branches for version 2.7, 3.1, 3.2 and 3.3. [1] http://bugs.python.org/issue20246 MFH: 2014Q1 Security: 8e5e6d42-a0fa-11e3-b09a-080027f2d077 Notes: svn path=/head/; revision=346614
2014-02-01- Fix bad libpython* symlinks after enabling the lang/python* ports toMarcus von Appen2-4/+4
be stagedir-aware PR: ports/186284 Submitted by: marino@ Pointyhat to: myself Notes: svn path=/head/; revision=342104
2014-01-26- Enable stagedir supportMarcus von Appen2-16/+17
- Convert to new LIB_DEPENDS Notes: svn path=/head/; revision=341192
2013-12-08Bump PORTREVISION for all Python ports to pickup the recent ARM patchKubilay Kocak1-1/+1
PR: ports/149167 Notes: svn path=/head/; revision=335872
2013-12-08All Python ports: Address abort() for ctypes import on FreeBSD/ARMKubilay Kocak1-0/+36
The current FreeBSD/ARM __clear_cache() implementation does nothing #if __i386__ || __x86_64__ #else abort(); cognet@ advises this is an issue for anything !Apple that is using the libcompiler_rt provided by Clang on ARM, and requires upstreaming. This is the root cause of abort() on import for the ctypes module in Python, as they bundle libffi. [1] This change patches the bundled libffi library in all Python ports, even though it is a NOOP for the ports that use devel/libffi. These ports, currently python31, will get the fix via ports/184517 A huge shout out to cognet@ who helped diagnose the issue and created the patch to address it. Thank you! PR: ports/149167 [1] PR: ports/184517 Submitted by: cognet [3] Reviewed by: cognet, eadler, milki, ak Notes: svn path=/head/; revision=335867
2013-12-01Fix OSS Audio and enable FreeBSD 11 support in Python 3.2 and 3.1Kubilay Kocak3-8/+22
- Add the appropriate Python platform (plat-*) files for FreeBSD 11 - Update pkg-plist Backport a upstream change [1] removing OS major version from the check to enable the OSS Audio module in setup.py: Issue #12326: don't test the major version of sys.platform Use startswith, instead of ==, when testing sys.platform to support new platforms like Linux 3 or OpenBSD 5. [2] [1] http://hg.python.org/cpython/rev/50f1922bc1d5 [2] http://bugs.python.org/issue12326 Notes: svn path=/head/; revision=335376
2013-12-01lang/python32: Backport upstream kevent fixKubilay Kocak2-15/+31
Backport a change fixing use of kevent flags that was merged to Python default, 3.3 and 2.7 branches, but not 3.2 and 3.1 that were in security-only mode at the time of commit. [1] - Add patch: patch-Modules__selectmodule.c References: [1] Issue #11973: Fix a problem in kevent. The flags and fflags fields are now properly handled as unsigned. [#11973] http://bugs.python.org/issue11973 http://hg.python.org/cpython/rev/8345fb616cbd While I'm here: - Add LICENSE (PSFL) - Clean up, reorganise, sort & whitespace align sections PR: ports/156759 Submitted by: David Naylor <naylor.b.david@gmail.com> Reviewed by: mva Notes: svn path=/head/; revision=335371
2013-11-30- Unbreak the build on 10.x and newer, which provides pipe2()Marcus von Appen1-0/+4
This relates to http://bugs.python.org/issue12852 PR: ports/184140 Submitted by: Yuta Sato <nigoro.gentoo@0x100.com> Notes: svn path=/head/; revision=335280
2013-09-20Add NO_STAGE all over the place in preparation for the staging support (cat: ↵Baptiste Daroussin1-0/+1
lang) Notes: svn path=/head/; revision=327741
2013-09-08Resolve gettext (libintl) detection and linking in all Python portsKubilay Kocak3-16/+54
Fix gettext (NLS) detection, includes and linking: - all: Use LDFLAGS and CPPFLAGS over CFLAGS for NLS option (with comment) - python26,27: Pass LIBS="-lintl" to CONFIGURE_ENV Workaround Pythons odd build mechanics causing duplicate args: - all: Remove CFLAGS from OPT= in CONFIGURE_ENV - python32,33: Remove CONFIGURE_* variables from Makefile.pre.in Other: - python32: Patch setup.py to pass OPT correctly to shared modules PR: ports/181721 Reported by: pawel Reviewed by: bapt mva sbz Notes: svn path=/head/; revision=326729
2013-08-17- Move the symlink magic for the default python version into lang/pythonMarcus von Appen2-36/+1
and lang/python2 and lang/python3. This change brings us closer to the goal of making Python ports usable with different Python versions at the same time. - Add a new lang/python2 port to handle the symlinks for bin/python2, bin/idle2, bin/pydoc2 and so on. - Add a new lang/python3 port to handle the symlinks for bin/python3, bin/idle3, bin/pydoc3 and so on. - Bump the PORTREVISION on all lang/python* ports. Notes: svn path=/head/; revision=324864
2013-08-14- Remove MAKE_JOBS_SAFE variableAlex Kozlov1-1/+0
Approved by: portmgr (bdrewery) Notes: svn path=/head/; revision=324744
2013-06-10Add patch that resolves the issue, found after r250991 in src HEAD.Ruslan Makhmatkhanov2-0/+11
Investigation and the patch are from Marcel Moolenaar. I also added upstream bug-report, based on Marcel's info: http://bugs.python.org/issue18178 There also was relevant discussion on current@: http://lists.freebsd.org/pipermail/freebsd-current/2013-June/ Please see there for details of the issue. Submitted by: marcel (python@ ML) Reported by: many Notes: svn path=/head/; revision=320442
2013-05-18Update lang/python32 to 3.2.5 and lang/python33 to 3.3.2Ruslan Makhmatkhanov3-4/+3
Notes: svn path=/head/; revision=318421
2013-05-17- update to latest upstream versions:Ruslan Makhmatkhanov4-4/+87
. lang/python27: 2.7.3 -> 2.7.5 . lang/python32: 3.2.3 -> 3.2.4 . lang/python33: 3.3.0 -> 3.3.1 - update Mk/bsd.python.mk with new versions - mark lang/python26 and lang/python31 as deprecated (set them to upstream EoL dates) - update docs (lang/python-doc-html) - align databases/py-bsddb patch for python27 - most of it was applied upstream. Raise BDB version to 4.3 atleast, according to upstream requirements. Many thanks to Martin (miwi) for his time on this update. PR: 178506 Submitted by: rm (myself) Exp-run by: portmgr (miwi) - revert erroneous threads patch in lang/python26 and lang/python27, that was added after ports/131080. It was rejected upstream, because it's not actually a bug, but misuse. Gabor Pali (pgj) in collaboration with Kubilay Kocak (koobs) did an independent investigation regard the issue. See here for details: http://lists.freebsd.org/pipermail/freebsd-python/2013-April/005376.html PR: 153167 Submitted by: Duncan Findlay <duncan@duncf.ca> Reported by: pgj/koobs (at python@ ML) Exp-run by: portmgr (miwi) Notes: svn path=/head/; revision=318353
2013-05-11Commit all the non-functional changes to python ports to reduce the diff sizeRuslan Makhmatkhanov2-3/+3
for an exp-run of updated python versions. - trim Makefile headers - remove leading indefinite article from COMMENT - use PYTHON shortcut in MASTER_SITES - whitespace fixes - remove checks for unsupported versions of FreeBSD - use static value ``33'' instead of PYTHON_SUFFIX in lang/python33/pkg-plist, because this value is not supposed to be changed across the branch and for consistency with other python3 ports - remove conflicts in lang/python-mode.el with not more existing python-2.4 Notes: svn path=/head/; revision=317865
2013-05-06- finish conversion for USES of gettextJason Helfman1-1/+1
Notes: svn path=/head/; revision=317498
2013-05-06- adoption of USES for gettextJason Helfman1-9/+11
Approved by: portmgr (bapt@) Notes: svn path=/head/; revision=317469
2012-12-23- Remove "first-installed-win" logic for automatically settingLi-Wen Hsu2-9/+19
${PYTHON_DEFAULT_VERSION}, this generates conflicting packages. - Create symbolic links as PEP 394 [1] suggests. ${PYTHON_DEFAULT_VERSION} will create python and python${MAJOR_VERSION} links. In current default, lang/python27 will create: python -> python2 -> python2.7 - Introduce ${PYTHON3_DEFAULT_VERSION}, which will handle bin/python3 link. At this point, lang/python33 will create python3 -> python3.3 - Minor cleanups * Trim Makefile headers * Remove ${OSVERSION} detection for xz, whihc is done by USE_XZ [1] http://www.python.org/dev/peps/pep-0394/ Notes: svn path=/head/; revision=309444
2012-10-03- do not hardcode distfile extension for lang/python ports in bsd.python.mkRuslan Makhmatkhanov2-2/+3
(PYTHON_DISTFILE variable) - switch lang/python ports (and it's slaves) to tar.xz I compared all the four pairs .tgz/.tar.xz and they have no content differences. Discussed on: python@ Notes: svn path=/head/; revision=305181
2012-06-20- Fix builds, if the NLS option switch is set. In some casesMarcus von Appen1-2/+3
expat-related modules are not built correctly. PR: ports/169276 Submitted by: Greg Byshenk <freebsd@byshenk.net> Notes: svn path=/head/; revision=299710
2012-06-19- Fix gettext detection for the locale moduleMarcus von Appen1-1/+11
- Explicitly enable/disable gettext support via a new NLS OPTION switch. PR: ports/168684 ports/136917 On behalf of: python@ Notes: svn path=/head/; revision=299648
2012-05-31- Correct PYMALLOC logic (that fix the build of devel/gobject-introspection)Martin Wilke1-7/+2
- Remove old OPTION layout from py32 - Bump PORTREVISON Notes: svn path=/head/; revision=297867