1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= Interpreted object-oriented programming language
9 HOMEPAGE= https://www.python.org/
13 SITES[main]= http://www.python.org/ftp/python/2.7.13/
14 DISTFILE[1]= Python-2.7.13.tar.xz:main
16 SPKGS[standard]= single
18 OPTIONS_AVAILABLE= THREADS DEBUG PYMALLOC
19 OPTIONS_STANDARD= THREADS DEBUG PYMALLOC
20 OPT_ON[all]= THREADS PYMALLOC
22 BROKEN_SSL= openssl-devel
24 BUILD_DEPENDS= bzip2:static:standard
26 BUILDRUN_DEPENDS= libffi:single:standard
31 USES= bdb cpe ncurses pkgconfig readline ssl shebangfix
34 DISTNAME= Python-2.7.13
38 LICENSE_FILE= PSFL:{{WRKSRC}}/LICENSE
43 FPC_EQUIVALENT= lang/python27
44 SHEBANG_FILES= Lib/smtplib.py
54 Lib/test/curses_tests.py
66 Lib/lib2to3/tests/data/different_encoding.py
67 Lib/lib2to3/tests/data/false_encoding.py
68 Lib/lib2to3/tests/pytree_idempotency.py
69 Lib/lib2to3/pgen2/token.py
70 Lib/encodings/rot_13.py
71 Lib/idlelib/PyShell.py
72 SHEBANG_NEW_PYTHON= {{PREFIX}}/bin/python2.7
75 CONFIGURE_ARGS= --with-system-ffi
82 ac_cv_opt_olimit_ok=no
83 ac_cv_posix_semaphores_enabled=yes
85 MAKE_ARGS= INSTALL_SHARED="{{INSTALL_LIB}}"
88 INSTALL_TARGET= altinstall
89 INSTALL_REQ_TOOLCHAIN= yes
93 LOW_OPSYS={{OPSYS:tl}}
94 SUB_FILES= pkg-message-single
95 SUB_LIST= PYTHON_SUFFIX=27
97 CFLAGS= -I{{NCURSESINC}}
98 TEST_TARGET= buildbottest
99 TEST_ARGS= TESTOPTS=-j{{MAKE_JOBS_NUMBER}}
100 VAR_OPSYS[freebsd]= PLIST_SUB=PLAT={{OPSYS:tl}}{{MAJOR:R}}
102 VAR_OPSYS[linux]= PLIST_SUB=PLAT={{OPSYS:tl}}2
103 PLIST_SUB=SHLIB=so.1.0
104 VAR_OPSYS[dragonfly]= PLIST_SUB=PLAT={{OPSYS:tl}}{{MAJOR:R}}
106 VAR_ARCH[aarch64]= PLIST_SUB=I386-ON="@comment "
107 VAR_ARCH[x86_64]= PLIST_SUB=I386-ON="@comment "
108 VAR_ARCH[i386]= PLIST_SUB=I386-ON=""
110 [DEBUG].CONFIGURE_WITH_BOTH= pydebug
112 [THREADS].CONFIGURE_WITH_BOTH= threads
113 [THREADS].LDFLAGS_ON= -pthread
115 [PYMALLOC].DESCRIPTION= Enable specialized mallocs
116 [PYMALLOC].CONFIGURE_WITH_BOTH= pymalloc
119 ${REINPLACE_CMD} -e 's|/usr/local/bin/python|${python_CMD}|' \
121 @${REINPLACE_CMD} -e \
122 's,/usr/doc/python-docs-,${PREFIX}/share/doc/python,g' \
123 ${PATCH_WRKSRC}/Lib/pydoc.py
124 ${REINPLACE_CMD} -e '/runtime_library_dirs=dblib_dir/d' \
125 -e 's|/usr/local/include/db4|${PREFIX}/include/db${BDB_VER}|' \
127 ${REINPLACE_CMD} -e 's|$$$$quiet|--verbose|' ${WRKSRC}/Makefile.pre.in
130 for i in ${STAGEDIR}${PREFIX}/lib/python2.7/lib-dynload/*.so; do \
134 post-install-DEBUG-OFF:
135 # Upstream Issue: http://bugs.python.org/issue17975
136 ${RM} ${STAGEDIR}${PREFIX}/lib/libpython3.so
138 [FILE:558:descriptions/desc.single]
139 Python is an interpreted, interactive, object-oriented programming
140 language. It incorporates modules, exceptions, dynamic typing, very high
141 level dynamic data types, and classes. Python combines remarkable power
142 with very clear syntax. It has interfaces to many system calls and
143 libraries, as well as to various window systems, and is extensible in C
144 or C++. It is also usable as an extension language for applications that
145 need a programmable interface. Finally, Python is portable: it runs on
146 many Unix variants, on the Mac, and on Windows 2000 and later.
150 35d543986882f78261f97787fd3e06274bfa6df29fac9b4a94f73930ff98f731 12495628 Python-2.7.13.tar.xz
153 [FILE:75590:manifests/plist.single]
154 %%I386-ON%%lib/python2.7/lib-dynload/
258 libpython2.7.%%SHLIB%%
259 lib/pkgconfig/python-2.7.pc
292 SimpleXMLRPCServer.py
293 SimpleXMLRPCServer.pyc
294 SimpleXMLRPCServer.pyo
314 _MozillaCookieJar.pyc
315 _MozillaCookieJar.pyo
407 lib/python2.7/bsddb/test/
426 test_cursor_pget_bug.py
427 test_cursor_pget_bug.pyc
428 test_cursor_pget_bug.pyo
444 test_distributed_transactions.py
445 test_distributed_transactions.pyc
446 test_distributed_transactions.pyo
523 lib/python2.7/compiler/
557 lib/python2.7/config/
584 lib/python2.7/ctypes/
591 lib/python2.7/ctypes/macholib/
607 lib/python2.7/ctypes/test/
617 test_array_in_pointer.py
618 test_array_in_pointer.pyc
619 test_array_in_pointer.pyo
624 test_as_parameter.pyc
625 test_as_parameter.pyo
687 test_memfunctions.pyc
688 test_memfunctions.pyo
713 test_random_things.py
714 test_random_things.pyc
715 test_random_things.pyo
722 test_returnfuncptrs.py
723 test_returnfuncptrs.pyc
724 test_returnfuncptrs.pyo
725 test_simplesubclasses.py
726 test_simplesubclasses.pyc
727 test_simplesubclasses.pyo
740 test_struct_fields.py
741 test_struct_fields.pyc
742 test_struct_fields.pyo
746 test_unaligned_structures.py
747 test_unaligned_structures.pyc
748 test_unaligned_structures.pyo
755 test_varsize_struct.py
756 test_varsize_struct.pyc
757 test_varsize_struct.pyo
764 lib/python2.7/ctypes/
771 lib/python2.7/curses/
806 lib/python2.7/distutils/
823 lib/python2.7/distutils/command/
897 wininst-9.0-amd64.exe
899 lib/python2.7/distutils/
954 lib/python2.7/distutils/tests/
959 setuptools_build_ext.py
960 setuptools_build_ext.pyc
961 setuptools_build_ext.pyo
962 setuptools_extension.py
963 setuptools_extension.pyc
964 setuptools_extension.pyo
969 test_archive_util.pyc
970 test_archive_util.pyo
983 test_bdist_wininst.py
984 test_bdist_wininst.pyc
985 test_bdist_wininst.pyo
998 test_build_scripts.py
999 test_build_scripts.pyc
1000 test_build_scripts.pyo
1040 test_install_data.py
1041 test_install_data.pyc
1042 test_install_data.pyo
1043 test_install_headers.py
1044 test_install_headers.pyc
1045 test_install_headers.pyo
1047 test_install_lib.pyc
1048 test_install_lib.pyo
1049 test_install_scripts.py
1050 test_install_scripts.pyc
1051 test_install_scripts.pyo
1052 test_msvc9compiler.py
1053 test_msvc9compiler.pyc
1054 test_msvc9compiler.pyo
1070 test_unixccompiler.py
1071 test_unixccompiler.pyc
1072 test_unixccompiler.pyo
1082 test_versionpredicate.py
1083 test_versionpredicate.pyc
1084 test_versionpredicate.pyo
1086 lib/python2.7/distutils/
1100 versionpredicate.pyc
1101 versionpredicate.pyo
1115 lib/python2.7/email/
1149 lib/python2.7/email/mime/
1177 lib/python2.7/email/
1184 lib/python2.7/email/test/
1188 lib/python2.7/email/test/data/
1238 lib/python2.7/email/test/
1242 test_email_codecs.py
1243 test_email_codecs.pyc
1244 test_email_codecs.pyo
1245 test_email_codecs_renamed.py
1246 test_email_codecs_renamed.pyc
1247 test_email_codecs_renamed.pyo
1248 test_email_renamed.py
1249 test_email_renamed.pyc
1250 test_email_renamed.pyo
1251 test_email_torture.py
1252 test_email_torture.pyc
1253 test_email_torture.pyo
1254 lib/python2.7/email/
1258 lib/python2.7/encodings/
1556 raw_unicode_escape.py
1557 raw_unicode_escape.pyc
1558 raw_unicode_escape.pyo
1584 unicode_internal.pyc
1585 unicode_internal.pyo
1619 lib/python2.7/ensurepip/
1626 lib/python2.7/ensurepip/_bundled/
1627 pip-9.0.1-py2.py3-none-any.whl
1628 setuptools-28.8.0-py2.py3-none-any.whl
1629 lib/python2.7/ensurepip/
1685 lib/python2.7/hotshot/
1708 lib/python2.7/idlelib/
1712 AutoCompleteWindow.py
1713 AutoCompleteWindow.pyc
1714 AutoCompleteWindow.pyo
1763 lib/python2.7/idlelib/Icons/
1778 lib/python2.7/idlelib/
1814 RemoteObjectBrowser.py
1815 RemoteObjectBrowser.pyc
1816 RemoteObjectBrowser.pyo
1833 SearchDialogBase.pyc
1834 SearchDialogBase.pyo
1852 WidgetRedirector.pyc
1853 WidgetRedirector.pyo
1866 config-extensions.def
1867 config-highlight.def
1876 configHelpSourceEdit.py
1877 configHelpSourceEdit.pyc
1878 configHelpSourceEdit.pyo
1879 configSectionNameDialog.py
1880 configSectionNameDialog.pyc
1881 configSectionNameDialog.pyo
1882 dynOptionMenuWidget.py
1883 dynOptionMenuWidget.pyc
1884 dynOptionMenuWidget.pyo
1896 lib/python2.7/idlelib/idle_test/
1910 test_autocomplete.py
1911 test_autocomplete.pyc
1912 test_autocomplete.pyo
1920 test_config_name.pyc
1921 test_config_name.pyo
1922 test_configdialog.py
1923 test_configdialog.pyc
1924 test_configdialog.pyo
1931 test_formatparagraph.py
1932 test_formatparagraph.pyc
1933 test_formatparagraph.pyo
1941 test_hyperparser.pyc
1942 test_hyperparser.pyo
1944 test_idlehistory.pyc
1945 test_idlehistory.pyo
1953 test_pathbrowser.pyc
1954 test_pathbrowser.pyo
1958 test_searchdialogbase.py
1959 test_searchdialogbase.pyc
1960 test_searchdialogbase.pyo
1961 test_searchengine.py
1962 test_searchengine.pyc
1963 test_searchengine.pyo
1974 test_widgetredir.pyc
1975 test_widgetredir.pyo
1976 lib/python2.7/idlelib/
1981 keybindingDialog.pyc
1982 keybindingDialog.pyo
2008 lib/python2.7/importlib/
2035 lib/python2.7/json/tests/
2039 test_check_circular.py
2040 test_check_circular.pyc
2041 test_check_circular.pyo
2051 test_encode_basestring_ascii.py
2052 test_encode_basestring_ascii.pyc
2053 test_encode_basestring_ascii.pyo
2098 lib/python2.7/lib-dynload/
2099 Python-%%XYZDOT%%-py2.7.egg-info
2143 %%ONLY-LINUX%%lib/python2.7/lib-dynload/
2145 lib/python2.7/lib-dynload/
2156 %%ONLY-LINUX%%lib/python2.7/lib-dynload/
2158 lib/python2.7/lib-dynload/
2165 lib/python2.7/lib-tk/
2196 lib/python2.7/lib-tk/test/
2201 lib/python2.7/lib-tk/test/test_tkinter/
2208 test_geometry_managers.py
2209 test_geometry_managers.pyc
2210 test_geometry_managers.pyo
2226 lib/python2.7/lib-tk/test/test_ttk/
2245 lib/python2.7/lib-tk/test/
2249 lib/python2.7/lib-tk/
2274 lib/python2.7/lib2to3/
2275 Grammar%%XYZDOT%%.final.0.pickle
2277 PatternGrammar%%XYZDOT%%.final.0.pickle
2297 lib/python2.7/lib2to3/fixes/
2367 fix_itertools_imports.py
2368 fix_itertools_imports.pyc
2369 fix_itertools_imports.pyo
2421 fix_standarderror.py
2422 fix_standarderror.pyc
2423 fix_standarderror.pyo
2431 fix_tuple_params.pyc
2432 fix_tuple_params.pyo
2454 lib/python2.7/lib2to3/
2461 lib/python2.7/lib2to3/pgen2/
2489 lib/python2.7/lib2to3/
2499 lib/python2.7/lib2to3/tests/
2503 lib/python2.7/lib2to3/tests/data/
2507 different_encoding.py
2509 lib/python2.7/lib2to3/tests/data/fixers/
2511 lib/python2.7/lib2to3/tests/data/fixers/myfixes/
2518 lib/python2.7/lib2to3/tests/data/fixers/
2521 lib/python2.7/lib2to3/tests/data/
2522 infinite_recursion.py
2525 lib/python2.7/lib2to3/tests/
2526 pytree_idempotency.py
2527 pytree_idempotency.pyc
2528 pytree_idempotency.pyo
2560 lib/python2.7/logging/
2607 lib/python2.7/multiprocessing/
2614 lib/python2.7/multiprocessing/dummy/
2621 lib/python2.7/multiprocessing/
2702 lib/python2.7/plat-%%PLAT%%/
2706 %%ONLY-LINUX%%lib/python2.7/plat-%%PLAT%%/
2716 lib/python2.7/plat-%%PLAT%%/
2758 lib/python2.7/pydoc_data/
2814 lib/python2.7/site-packages/README
2830 lib/python2.7/sqlite3/
2840 lib/python2.7/sqlite3/test/
2937 Sine-1000Hz-300ms.aif
2945 lib/python2.7/test/audiodata/
2972 badsyntax_future3.py
2973 badsyntax_future4.py
2974 badsyntax_future5.py
2975 badsyntax_future6.py
2976 badsyntax_future7.py
2977 badsyntax_future8.py
2978 badsyntax_future9.py
2979 badsyntax_nocaret.py
2980 lib/python2.7/test/capath/
2989 lib/python2.7/test/cjkencodings/
2996 euc_jisx0213-utf8.txt
3018 shift_jisx0213-utf8.txt
3025 lib/python2.7/test/data/README
3026 lib/python2.7/test/decimaltestdata/
3034 comparetotal.decTest
3035 comparetotmag.decTest
3047 ddCompareSig.decTest
3048 ddCompareTotal.decTest
3049 ddCompareTotalMag.decTest
3052 ddCopyNegate.decTest
3068 ddNextToward.decTest
3074 ddRemainderNear.decTest
3076 ddSameQuantum.decTest
3080 ddToIntegral.decTest
3094 dqCompareSig.decTest
3095 dqCompareTotal.decTest
3096 dqCompareTotalMag.decTest
3099 dqCopyNegate.decTest
3115 dqNextToward.decTest
3121 dqRemainderNear.decTest
3123 dqSameQuantum.decTest
3127 dqToIntegral.decTest
3153 randomBound32.decTest
3157 remainderNear.decTest
3179 exception_hierarchy.txt
3184 formatfloat_testcases.txt
3190 lib/python2.7/test/imghdrdata/
3237 outstanding_bugs.pyc
3238 outstanding_bugs.pyo
3277 sample_doctest_no_docstrings.py
3278 sample_doctest_no_docstrings.pyc
3279 sample_doctest_no_docstrings.pyo
3280 sample_doctest_no_doctests.py
3281 sample_doctest_no_doctests.pyc
3282 sample_doctest_no_doctests.pyo
3286 selfsigned_pythontestdotnet.pem
3307 lib/python2.7/test/subprocessdata/
3318 test_SimpleHTTPServer.py
3319 test_SimpleHTTPServer.pyc
3320 test_SimpleHTTPServer.pyo
3333 test__osx_support.py
3334 test__osx_support.pyc
3335 test__osx_support.pyo
3339 test_abstract_numbers.py
3340 test_abstract_numbers.pyc
3341 test_abstract_numbers.pyo
3355 test_applesingle.pyc
3356 test_applesingle.pyo
3363 test_ascii_formatd.py
3364 test_ascii_formatd.pyc
3365 test_ascii_formatd.pyo
3390 test_bigaddrspace.py
3391 test_bigaddrspace.pyc
3392 test_bigaddrspace.pyo
3453 test_charmapcodec.py
3454 test_charmapcodec.pyc
3455 test_charmapcodec.pyo
3471 test_cmd_line_script.py
3472 test_cmd_line_script.pyc
3473 test_cmd_line_script.pyo
3477 test_codeccallbacks.py
3478 test_codeccallbacks.pyc
3479 test_codeccallbacks.pyo
3480 test_codecencodings_cn.py
3481 test_codecencodings_cn.pyc
3482 test_codecencodings_cn.pyo
3483 test_codecencodings_hk.py
3484 test_codecencodings_hk.pyc
3485 test_codecencodings_hk.pyo
3486 test_codecencodings_iso2022.py
3487 test_codecencodings_iso2022.pyc
3488 test_codecencodings_iso2022.pyo
3489 test_codecencodings_jp.py
3490 test_codecencodings_jp.pyc
3491 test_codecencodings_jp.pyo
3492 test_codecencodings_kr.py
3493 test_codecencodings_kr.pyc
3494 test_codecencodings_kr.pyo
3495 test_codecencodings_tw.py
3496 test_codecencodings_tw.pyc
3497 test_codecencodings_tw.pyo
3498 test_codecmaps_cn.py
3499 test_codecmaps_cn.pyc
3500 test_codecmaps_cn.pyo
3501 test_codecmaps_hk.py
3502 test_codecmaps_hk.pyc
3503 test_codecmaps_hk.pyo
3504 test_codecmaps_jp.py
3505 test_codecmaps_jp.pyc
3506 test_codecmaps_jp.pyo
3507 test_codecmaps_kr.py
3508 test_codecmaps_kr.pyc
3509 test_codecmaps_kr.pyo
3510 test_codecmaps_tw.py
3511 test_codecmaps_tw.pyc
3512 test_codecmaps_tw.pyo
3523 test_collections.pyc
3524 test_collections.pyo
3546 test_complex_args.py
3547 test_complex_args.pyc
3548 test_complex_args.pyo
3598 test_defaultdict.pyc
3599 test_defaultdict.pyo
3621 test_difflib_expect.html
3650 test_dummy_thread.py
3651 test_dummy_thread.pyc
3652 test_dummy_thread.pyo
3653 test_dummy_threading.py
3654 test_dummy_threading.pyc
3655 test_dummy_threading.pyo
3659 test_email_codecs.py
3660 test_email_codecs.pyc
3661 test_email_codecs.pyo
3662 test_email_renamed.py
3663 test_email_renamed.pyc
3664 test_email_renamed.pyo
3680 test_exception_variations.py
3681 test_exception_variations.pyc
3682 test_exception_variations.pyo
3758 test_future_builtins.py
3759 test_future_builtins.pyc
3760 test_future_builtins.pyo
3774 test_genericpath.pyc
3775 test_genericpath.pyo
3834 test_httpservers.pyc
3835 test_httpservers.pyo
3858 test_importhooks.pyc
3859 test_importhooks.pyo
3873 test_int_literal.pyc
3874 test_int_literal.pyo
3908 test_linuxaudiodev.py
3909 test_linuxaudiodev.pyc
3910 test_linuxaudiodev.pyo
3924 test_long_future.pyc
3925 test_long_future.pyo
3939 test_macurl2path.pyc
3940 test_macurl2path.pyo
3977 test_modulefinder.py
3978 test_modulefinder.pyc
3979 test_modulefinder.pyo
3983 test_multibytecodec.py
3984 test_multibytecodec.pyc
3985 test_multibytecodec.pyo
3986 test_multibytecodec_support.py
3987 test_multibytecodec_support.pyc
3988 test_multibytecodec_support.pyo
3992 test_multiprocessing.py
3993 test_multiprocessing.pyc
3994 test_multiprocessing.pyo
4013 test_normalization.py
4014 test_normalization.pyc
4015 test_normalization.pyo
4020 test_old_mailbox.pyc
4021 test_old_mailbox.pyo
4034 test_ordered_dict.py
4035 test_ordered_dict.pyc
4036 test_ordered_dict.pyo
4041 test_ossaudiodev.pyc
4042 test_ossaudiodev.pyo
4065 test_pickletools.pyc
4066 test_pickletools.pyo
4170 test_rlcompleter.pyc
4171 test_rlcompleter.pyo
4173 test_robotparser.pyc
4174 test_robotparser.pyo
4184 test_scriptpackages.py
4185 test_scriptpackages.pyc
4186 test_scriptpackages.pyo
4232 test_socketserver.py
4233 test_socketserver.pyc
4234 test_socketserver.pyo
4241 test_source_encoding.py
4242 test_source_encoding.pyc
4243 test_source_encoding.pyo
4283 test_structmembers.py
4284 test_structmembers.pyc
4285 test_structmembers.pyo
4296 test_sunaudiodev.pyc
4297 test_sunaudiodev.pyo
4313 test_sys_setprofile.py
4314 test_sys_setprofile.pyc
4315 test_sys_setprofile.pyo
4316 test_sys_settrace.py
4317 test_sys_settrace.pyc
4318 test_sys_settrace.pyo
4340 test_threaded_import.py
4341 test_threaded_import.pyc
4342 test_threaded_import.pyo
4343 test_threadedtempfile.py
4344 test_threadedtempfile.pyc
4345 test_threadedtempfile.pyo
4349 test_threading_local.py
4350 test_threading_local.pyc
4351 test_threading_local.pyo
4352 test_threadsignals.py
4353 test_threadsignals.pyc
4354 test_threadsignals.pyo
4380 test_transformer.pyc
4381 test_transformer.pyo
4383 test_ttk_guionly.pyc
4384 test_ttk_guionly.pyo
4385 test_ttk_textonly.py
4386 test_ttk_textonly.pyc
4387 test_ttk_textonly.pyo
4406 test_undocumented_details.py
4407 test_undocumented_details.pyc
4408 test_undocumented_details.pyo
4412 test_unicode_file.py
4413 test_unicode_file.pyc
4414 test_unicode_file.pyo
4416 test_unicodedata.pyc
4417 test_unicodedata.pyo
4421 test_univnewlines.py
4422 test_univnewlines.pyc
4423 test_univnewlines.pyo
4424 test_univnewlines2k.py
4425 test_univnewlines2k.pyc
4426 test_univnewlines2k.pyo
4436 test_urllib2_localnet.py
4437 test_urllib2_localnet.pyc
4438 test_urllib2_localnet.pyo
4503 test_xml_etree_c.pyc
4504 test_xml_etree_c.pyo
4526 test_zipimport_support.py
4527 test_zipimport_support.pyc
4528 test_zipimport_support.pyo
4543 tf_inherit_check.pyc
4544 tf_inherit_check.pyo
4545 threaded_import_hangers.py
4546 threaded_import_hangers.pyc
4547 threaded_import_hangers.pyo
4552 lib/python2.7/test/tracedmodules/
4563 win_console_handler.py
4564 win_console_handler.pyc
4565 win_console_handler.pyo
4567 lib/python2.7/test/xmltestdata/
4611 lib/python2.7/unittest/
4639 lib/python2.7/unittest/test/
4661 test_functiontestcase.py
4662 test_functiontestcase.pyc
4663 test_functiontestcase.pyo
4685 lib/python2.7/unittest/
4724 lib/python2.7/wsgiref/
4751 lib/python2.7/xml/dom/
4776 lib/python2.7/xml/etree/
4792 lib/python2.7/xml/parsers/
4799 lib/python2.7/xml/sax/
4828 share/man/man1/python2.7.1.gz
4831 [FILE:569:patches/patch-Doc__library__fcntl.rst]
4832 --- ./Doc/library/fcntl.rst.orig 2014-07-03 21:53:41.473098625 +1000
4833 +++ ./Doc/library/fcntl.rst 2014-07-03 21:54:04.342833056 +1000
4834 @@ -50,7 +50,6 @@ The module defines the following functio
4835 operations are typically defined in the library module :mod:`termios` and the
4836 argument handling is even more complicated.
4838 - The op parameter is limited to values that can fit in 32-bits.
4839 Additional constants of interest for use as the *op* argument can be
4840 found in the :mod:`termios` module, under the same names as used in
4841 the relevant C header files.
4844 [FILE:643:patches/patch-Lib_distutils_command_build__scripts.py]
4845 # Description: A non-invasive partial backport of the Python3 distutils behaviour.
4846 # This allows Python's scripts to be properly suffixed (similar to Python 3.x) on
4850 --- Lib/distutils/command/build_scripts.py.orig 2014-07-26 09:52:20.000000000 UTC
4851 +++ Lib/distutils/command/build_scripts.py 2014-07-26 09:52:56.000000000 UTC
4852 @@ -126,6 +126,9 @@ class build_scripts (Command):
4853 file, oldmode, newmode)
4854 os.chmod(file, newmode)
4856 + # XXX should we modify self.outfiles?
4861 # class build_scripts
4864 [FILE:1357:patches/patch-Lib_distutils_command_install__lib.py]
4865 From 9934ce31b8447667f71c211e559a8de71e8263db Mon Sep 17 00:00:00 2001
4866 From: Brendan Molloy <brendan@bbqsrc.net>
4867 Date: Mon, 4 Jan 2016 23:14:06 +1100
4868 Subject: [PATCH] Check bytecode file actually exists and tests
4870 Should solve issue 20397, where using the --record argument results
4871 in files that failed to generate bytecode files are added to the
4872 record file nonetheless.
4874 Lib/distutils/command/install_lib.py | 17 +++++++++++++----
4875 Lib/distutils/tests/test_install_lib.py | 8 ++++++--
4876 2 files changed, 19 insertions(+), 6 deletions(-)
4878 --- Lib/distutils/command/install_lib.py.orig 2015-12-05 19:46:56 UTC
4879 +++ Lib/distutils/command/install_lib.py
4880 @@ -168,10 +168,14 @@ class install_lib(Command):
4881 ext = os.path.splitext(os.path.normcase(py_file))[1]
4882 if ext != PYTHON_SOURCE_EXTENSION:
4885 - bytecode_files.append(py_file + "c")
4886 - if self.optimize > 0:
4887 - bytecode_files.append(py_file + "o")
4889 + pyc_file = py_file + "c"
4890 + if self.compile and os.path.isfile(pyc_file):
4891 + bytecode_files.append(pyc_file)
4893 + pyo_file = py_file + "o"
4894 + if self.optimize > 0 and os.path.isfile(pyo_file):
4895 + bytecode_files.append(pyo_file)
4897 return bytecode_files
4901 [FILE:1246:patches/patch-Lib_distutils_tests_test__install__lib.py]
4902 From 9934ce31b8447667f71c211e559a8de71e8263db Mon Sep 17 00:00:00 2001
4903 From: Brendan Molloy <brendan@bbqsrc.net>
4904 Date: Mon, 4 Jan 2016 23:14:06 +1100
4905 Subject: [PATCH] Check bytecode file actually exists and tests
4907 Should solve issue 20397, where using the --record argument results
4908 in files that failed to generate bytecode files are added to the
4909 record file nonetheless.
4911 Lib/distutils/command/install_lib.py | 17 +++++++++++++----
4912 Lib/distutils/tests/test_install_lib.py | 8 ++++++--
4913 2 files changed, 19 insertions(+), 6 deletions(-)
4915 --- Lib/distutils/tests/test_install_lib.py.orig 2015-12-05 19:46:57 UTC
4916 +++ Lib/distutils/tests/test_install_lib.py
4917 @@ -64,8 +64,12 @@ class InstallLibTestCase(support.Tempdir
4918 cmd.distribution.packages = [pkg_dir]
4919 cmd.distribution.script_name = 'setup.py'
4921 - # get_output should return 4 elements
4922 - self.assertGreaterEqual(len(cmd.get_outputs()), 2)
4923 + # Create rubbish, uncompilable file
4924 + f = os.path.join(pkg_dir, 'rubbish.py')
4925 + self.write_file(f, 'rubbish()')
4927 + # get_output should return 3 elements
4928 + self.assertEqual(len(cmd.get_outputs()), 3)
4930 def test_get_inputs(self):
4931 pkg_dir, dist = self.create_dist()
4934 [FILE:1051:patches/patch-Lib_distutils_unixccompiler.py]
4935 --- Lib/distutils/unixccompiler.py.orig 2016-12-17 20:05:06 UTC
4936 +++ Lib/distutils/unixccompiler.py
4937 @@ -227,21 +227,7 @@ class UnixCCompiler(CCompiler):
4938 # the configuration data stored in the Python installation, so
4940 compiler = os.path.basename(sysconfig.get_config_var("CC"))
4941 - if sys.platform[:6] == "darwin":
4942 - # MacOSX's linker doesn't understand the -R flag at all
4944 - elif sys.platform[:7] == "freebsd":
4945 - return "-Wl,-rpath=" + dir
4946 - elif sys.platform[:5] == "hp-ux":
4947 - if self._is_gcc(compiler):
4948 - return ["-Wl,+s", "-L" + dir]
4949 - return ["+s", "-L" + dir]
4950 - elif sys.platform[:7] == "irix646" or sys.platform[:6] == "osf1V5":
4951 - return ["-rpath", dir]
4952 - elif self._is_gcc(compiler):
4953 - return "-Wl,-R" + dir
4956 + return "-Wl,-rpath=" + dir
4958 def library_option(self, lib):
4962 [FILE:771:patches/patch-Makefile.pre.in]
4963 # Description: Link scripts in the same way Python3 does
4966 --- Makefile.pre.in.orig 2014-06-30 04:05:39.000000000 +0200
4967 +++ Makefile.pre.in 2014-07-26 11:09:46.000000000 +0200
4968 @@ -900,6 +900,12 @@ bininstall: altbininstall
4969 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc)
4970 -rm -f $(DESTDIR)$(LIBPC)/python.pc
4971 (cd $(DESTDIR)$(LIBPC); $(LN) -s python2.pc python.pc)
4972 + -rm -f $(DESTDIR)$(BINDIR)/idle
4973 + (cd $(DESTDIR)$(BINDIR); $(LN) -s idle$(VERSION) idle2)
4974 + -rm -f $(DESTDIR)$(BINDIR)/pydoc
4975 + (cd $(DESTDIR)$(BINDIR); $(LN) -s pydoc$(VERSION) pydoc2)
4976 + -rm -f $(DESTDIR)$(BINDIR)/2to3
4977 + (cd $(DESTDIR)$(BINDIR); $(LN) -s 2to3-$(VERSION) 2to3)
4979 # Install the interpreter with $(VERSION) affixed
4980 # This goes into $(exec_prefix)
4983 [FILE:776:patches/patch-Misc_python-config.in]
4984 # pythonx.y-config --ldflags out of /usr and missing -L<install_lib_dir>
4985 # https://bugs.python.org/issue7352
4987 --- Misc/python-config.in.orig 2015-10-18 07:24:01 UTC
4988 +++ Misc/python-config.in
4989 @@ -21,6 +21,7 @@ except getopt.error:
4993 +libdir = sysconfig.EXEC_PREFIX + '/lib'
4994 pyver = sysconfig.get_config_var('VERSION')
4995 getvar = sysconfig.get_config_var
4997 @@ -50,6 +51,7 @@ for opt in opt_flags:
4998 # add the prefix/lib/pythonX.Y/config dir, but only if there is no
4999 # shared library in prefix/lib/.
5000 if opt == '--ldflags':
5001 + libs.insert(0, '-L' + libdir)
5002 if not getvar('Py_ENABLE_SHARED'):
5003 libs.insert(0, '-L' + getvar('LIBPL'))
5004 if not getvar('PYTHONFRAMEWORK'):
5007 [FILE:1162:patches/patch-Modules___ctypes__libffi__src__arm__ffi.c]
5008 # Description: Fix _ctypes abort on import for FreeBSD/ARM. This is an issue
5009 # for anything !apple that is using the libcompiler_rt provided by clang on arm
5010 # PR: ports/149167 ports/184517
5011 # Patch by: cognet@ (to be upstreamed @ LLVM)
5013 --- ./Modules/_ctypes/libffi/src/arm/ffi.c.orig 2013-11-10 18:36:41.000000000 +1100
5014 +++ ./Modules/_ctypes/libffi/src/arm/ffi.c 2013-12-03 18:05:51.461078888 +1100
5019 +#if defined(__FreeBSD__) && defined(__arm__)
5020 +#include <sys/types.h>
5021 +#include <machine/sysarch.h>
5024 /* Forward declares. */
5025 static int vfp_type_p (ffi_type *);
5026 static void layout_vfp_args (ffi_cif *);
5027 @@ -751,6 +756,16 @@ ffi_closure_free (void *ptr)
5031 +#if defined(__FreeBSD__) && defined(__arm__)
5032 +#define __clear_cache(start, end) do { \
5033 + struct arm_sync_icache_args ua; \
5035 + ua.addr = (uintptr_t)(start); \
5036 + ua.len = (char *)(end) - (char *)start; \
5037 + sysarch(ARM_SYNC_ICACHE, &ua); \
5041 #define FFI_INIT_TRAMPOLINE(TRAMP,FUN,CTX) \
5042 ({ unsigned char *__tramp = (unsigned char*)(TRAMP); \
5043 unsigned int __fun = (unsigned int)(FUN); \
5046 [FILE:2281:patches/patch-Modules__fcntlmodule.c]
5047 --- ./Modules/fcntlmodule.c.orig 2014-07-03 21:57:10.429953240 +1000
5048 +++ ./Modules/fcntlmodule.c 2014-07-03 21:59:36.517210444 +1000
5049 @@ -98,20 +98,15 @@ fcntl_ioctl(PyObject *self, PyObject *ar
5051 #define IOCTL_BUFSZ 1024
5053 - /* In PyArg_ParseTuple below, we use the unsigned non-checked 'I'
5054 + /* In PyArg_ParseTuple below, we use the unsigned non-checked 'k'
5055 format for the 'code' parameter because Python turns 0x8000000
5056 into either a large positive number (PyLong or PyInt on 64-bit
5057 platforms) or a negative number on others (32-bit PyInt)
5058 whereas the system expects it to be a 32bit bit field value
5059 regardless of it being passed as an int or unsigned long on
5060 - various platforms. See the termios.TIOCSWINSZ constant across
5061 - platforms for an example of this.
5063 - If any of the 64bit platforms ever decide to use more than 32bits
5064 - in their unsigned long ioctl codes this will break and need
5065 - special casing based on the platform being built on.
5066 + various platforms.
5068 - unsigned int code;
5069 + unsigned long code;
5073 @@ -119,7 +114,7 @@ fcntl_ioctl(PyObject *self, PyObject *ar
5075 char buf[IOCTL_BUFSZ+1]; /* argument plus NUL byte */
5077 - if (PyArg_ParseTuple(args, "O&Iw#|i:ioctl",
5078 + if (PyArg_ParseTuple(args, "O&kw#|i:ioctl",
5079 conv_descriptor, &fd, &code,
5080 &str, &len, &mutate_arg)) {
5082 @@ -170,7 +165,7 @@ fcntl_ioctl(PyObject *self, PyObject *ar
5086 - if (PyArg_ParseTuple(args, "O&Is#:ioctl",
5087 + if (PyArg_ParseTuple(args, "O&ks#:ioctl",
5088 conv_descriptor, &fd, &code, &str, &len)) {
5089 if (len > IOCTL_BUFSZ) {
5090 PyErr_SetString(PyExc_ValueError,
5091 @@ -192,7 +187,7 @@ fcntl_ioctl(PyObject *self, PyObject *ar
5094 if (!PyArg_ParseTuple(args,
5095 - "O&I|i;ioctl requires a file or file descriptor,"
5096 + "O&k|i;ioctl requires a file or file descriptor,"
5097 " an integer and optionally an integer or buffer argument",
5098 conv_descriptor, &fd, &code, &arg)) {
5102 [FILE:2320:patches/patch-pr192365]
5103 # Description: do not define __BSD_VISIBLE/_XOPEN_SOURCE/_POSIX_C_SOURCE
5104 # in include/python2.7/pyconfig.h
5105 # Submitted by: antoine
5107 --- configure.orig 2014-09-06 14:42:50 UTC
5109 @@ -2919,13 +2919,6 @@
5112 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
5113 -# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
5116 -$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
5119 -# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
5120 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
5122 $as_echo "#define _BSD_TYPES 1" >>confdefs.h
5123 @@ -3293,9 +3286,8 @@
5124 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
5126 define_xopen_source=no;;
5127 - # On FreeBSD 4, the math functions C89 does not cover are never defined
5128 - # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
5130 + # On FreeBSD, defining _XOPEN_SOURCE to 600 requests a strict environment.
5132 define_xopen_source=no;;
5133 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
5134 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
5135 --- configure.ac.orig 2014-09-06 14:42:50 UTC
5138 AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features])
5140 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
5141 -# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
5143 -AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features])
5145 -# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
5146 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
5147 AC_DEFINE(_BSD_TYPES, 1, [Define on Irix to enable u_int])
5150 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
5152 define_xopen_source=no;;
5153 - # On FreeBSD 4, the math functions C89 does not cover are never defined
5154 - # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
5156 + # On FreeBSD, defining _XOPEN_SOURCE to 600 requests a strict environment.
5158 define_xopen_source=no;;
5159 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
5160 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
5163 [FILE:4287:patches/patch-setup.py]
5164 # Description: Partial script installation backport from Python3
5167 # Description: Some modules are installed via other ports
5169 # Description: ossaudiodev detection fix backport
5171 --- setup.py.orig 2014-06-30 04:05:48.000000000 +0200
5172 +++ setup.py 2014-07-26 14:51:29.000000000 +0200
5173 @@ -15,6 +15,7 @@ from distutils.core import Extension, se
5174 from distutils.command.build_ext import build_ext
5175 from distutils.command.install import install
5176 from distutils.command.install_lib import install_lib
5177 +from distutils.command.build_scripts import build_scripts
5178 from distutils.spawn import find_executable
5180 cross_compiling = "_PYTHON_HOST_PLATFORM" in os.environ
5181 @@ -33,7 +34,7 @@ host_platform = get_platform()
5182 COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS"))
5184 # This global variable is used to hold the list of modules to be disabled.
5185 -disabled_module_list = []
5186 +disabled_module_list = ["_bsddb", "_sqlite3", "_tkinter", "gdbm", "mpz"]
5188 def add_dir_to_list(dirlist, dir):
5189 """Add the directory 'dir' to the list 'dirlist' (at the front) if
5190 @@ -1214,7 +1215,7 @@ class PyBuildExt(build_ext):
5191 sysroot = macosx_sdk_root()
5192 f = os.path.join(sysroot, f[1:])
5194 - if os.path.exists(f) and not db_incs:
5195 + if os.path.exists(f):
5196 data = open(f).read()
5197 m = re.search(r"#s*define\s+HASHVERSION\s+2\s*", data)
5199 @@ -1553,7 +1554,7 @@ class PyBuildExt(build_ext):
5203 - elif host_platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8'):
5204 + elif host_platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'freebsd9', 'freebsd10', 'freebsd11'):
5205 # FreeBSD's P1003.1b semaphore support is very experimental
5206 # and has many known problems. (as of June 2008)
5208 @@ -1604,9 +1605,10 @@ class PyBuildExt(build_ext):
5210 missing.append('linuxaudiodev')
5212 - if (host_platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
5213 - 'freebsd7', 'freebsd8')
5214 - or host_platform.startswith("gnukfreebsd")):
5215 +# Initial backport of http://hg.python.org/cpython/rev/50f1922bc1d5
5217 + if any(sys.platform.startswith(prefix)
5218 + for prefix in ("linux", "freebsd", "gnukfreebsd")):
5219 exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
5221 missing.append('ossaudiodev')
5222 @@ -2178,6 +2180,22 @@ class PyBuildInstallLib(install_lib):
5223 def is_chmod_supported(self):
5224 return hasattr(os, 'chmod')
5226 +class PyBuildScripts(build_scripts):
5227 + def copy_scripts(self):
5228 + outfiles = build_scripts.copy_scripts(self)
5229 + fullversion = '{0[0]}.{0[1]}'.format(sys.version_info)
5231 + for filename in outfiles:
5232 + if filename.endswith('2to3'):
5233 + newfilename = filename + '-' + fullversion
5235 + newfilename = filename + fullversion
5236 + log.info('renaming {} to {}'.format(filename, newfilename))
5237 + os.rename(filename, newfilename)
5238 + newoutfiles.append(newfilename)
5239 + return newoutfiles
5243 Python is an interpreted, interactive, object-oriented programming
5244 language. It is often compared to Tcl, Perl, Scheme or Java.
5245 @@ -2223,7 +2241,9 @@ def main():
5246 platforms = ["Many"],
5249 - cmdclass = {'build_ext':PyBuildExt, 'install':PyBuildInstall,
5250 + cmdclass = {'build_ext':PyBuildExt,
5251 + 'build_scripts':PyBuildScripts,
5252 + 'install':PyBuildInstall,
5253 'install_lib':PyBuildInstallLib},
5254 # The struct module is defined here, because build_ext won't be
5255 # called unless there's at least one extension module defined.
5256 @@ -2231,8 +2251,7 @@ def main():
5258 # Scripts to install
5259 scripts = ['Tools/scripts/pydoc', 'Tools/scripts/idle',
5260 - 'Tools/scripts/2to3',
5262 + 'Tools/scripts/2to3']
5268 [FILE:459:files/pkg-message-single.in]
5269 ===========================================================================
5271 Note that some standard Python modules are provided as separate ports
5272 as they require additional dependencies. They are available as:
5274 python-bsddb:single:py%%PYTHON_SUFFIX%%
5275 python-gdbm:single:py%%PYTHON_SUFFIX%%
5276 python-sqlite:single:py%%PYTHON_SUFFIX%%
5277 python-tkinter:single:py%%PYTHON_SUFFIX%%
5279 ===========================================================================
5282 [FILE:506:dragonfly/patch-Lib_multiprocessing_____init____.py]
5283 --- Lib/multiprocessing/__init__.py.orig 2014-06-30 02:05:29 UTC
5284 +++ Lib/multiprocessing/__init__.py
5285 @@ -115,7 +115,7 @@ def cpu_count():
5286 num = int(os.environ['NUMBER_OF_PROCESSORS'])
5287 except (ValueError, KeyError):
5289 - elif 'bsd' in sys.platform or sys.platform == 'darwin':
5290 + elif 'bsd' in sys.platform or sys.platform.startswith('dragonfly'):
5291 comm = '/sbin/sysctl -n hw.ncpu'
5292 if sys.platform == 'darwin':
5293 comm = '/usr' + comm
5296 [FILE:787:dragonfly/patch-configure]
5297 --- configure.intermediate 2014-09-14 16:06:28 UTC
5299 @@ -3287,7 +3287,7 @@ $as_echo "#define _BSD_SOURCE 1" >>confd
5301 define_xopen_source=no;;
5302 # On FreeBSD, defining _XOPEN_SOURCE to 600 requests a strict environment.
5304 + FreeBSD/* | DragonFly/*)
5305 define_xopen_source=no;;
5306 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
5307 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
5308 @@ -5351,7 +5351,7 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>
5309 BLDLIBRARY='-L. -lpython$(VERSION)'
5310 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5311 case $ac_sys_system in
5313 + DragonFly*|FreeBSD*)
5314 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
5319 [FILE:1011:dragonfly/patch-setup.py]
5320 --- setup.py.orig 2014-07-20 12:11:37.904857000 +0000
5322 @@ -1553,6 +1553,10 @@ class PyBuildExt(build_ext):
5326 + elif host_platform.startswith('dragonfly'):
5328 + libraries = ['pthread']
5330 elif host_platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'freebsd9', 'freebsd10', 'freebsd11'):
5331 # FreeBSD's P1003.1b semaphore support is very experimental
5332 # and has many known problems. (as of June 2008)
5333 @@ -1607,7 +1611,7 @@ class PyBuildExt(build_ext):
5334 # Initial backport of http://hg.python.org/cpython/rev/50f1922bc1d5
5336 if any(sys.platform.startswith(prefix)
5337 - for prefix in ("linux", "freebsd", "gnukfreebsd")):
5338 + for prefix in ("linux", "dragon", "freebsd", "gnukfreebsd")):
5339 exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
5341 missing.append('ossaudiodev')