From Fedora Project Wiki
(→‎Packages with build errors: system-config-display is fixed)
m (internal link cleaning)
 
(32 intermediate revisions by 3 users not shown)
Line 18: Line 18:
== Current status ==
== Current status ==
* Targeted release: [[Releases/14 | Fedora 14]]  
* Targeted release: [[Releases/14 | Fedora 14]]  
* Last updated: 2010-07-27
* Last updated: 2010-09-27
* Percentage of completion: 90%
* Percentage of completion: 100%
 
oget wrote [http://oget.fedorapeople.org/python27/py27check.py a script] to report on remaining problems.
 
The results can be seen [http://oget.fedorapeople.org/python27/python-27-rebuild-errors-LATEST.html here]


Tracker bug for packages that fail to rebuild:
Tracker bug for packages that fail to rebuild:
Line 26: Line 30:
Fixes for broken packages should be built into both rawhide, and into dist-f14.
Fixes for broken packages should be built into both rawhide, and into dist-f14.


Information on the new "dist-git" system can be seen [http://fedoraproject.org/wiki/Using_Fedora_GIT here].
Information on the new "dist-git" system can be seen [[Using_Fedora_GIT|here]].


Once it's been successfully rebuilt for F14, an [https://admin.fedoraproject.org/updates/new/ update needs to be filed ] to get the rebuild into F14.
Once it's been successfully rebuilt for F14, an [https://admin.fedoraproject.org/updates/new/ update needs to be filed ] to get the rebuild into F14.
Line 33: Line 37:




=== Packages waiting on other packages ===
Tracker bug for issue arising in built packages: https://bugzilla.redhat.com/showdependencytree.cgi?id=620817&hide_resolved=1 (e.g. Python 2.7 incompatibilities)
<!-- please use * to indicate the hierarchy of build-time dependencies here -->
* sugar-tamtam needs:
** csound
*** boost-python [http://koji.fedoraproject.org/koji/taskinfo?taskID=2348337 DONE]
*** build parameter changes
** gnome-python2-rsvg
* ipa needs
** [http://koji.fedoraproject.org/koji/getfile?taskID=2344209&name=root.log TurboGears] needs:
*** python-turbojson
**** python-peak-rules: fails in %check [http://koji.fedoraproject.org/koji/getfile?taskID=2345363&name=build.log apparently within peak-util-assembler (is this 2.7-compatible?)]
*** python-cherrypy2
*** python-peak-rules (see above)
*** python-formencode [http://koji.fedoraproject.org/koji/getfile?taskID=2345277&name=build.log fails in %check]
*** python-ruledispatch (fails in %check, with [http://koji.fedoraproject.org/koji/getfile?taskID=2345441&name=build.log "KeyError: 320" in 4 tests, and "AssertionError: 42529136 == Pointer(<invalid at 0x0x288f170>)" in another])
** python-cherrypy2 (see above)
** python-formencode (see above)
** python-ruledispatch (see above)
** python-turbojson (see above)
* lazygal fails with [http://koji.fedoraproject.org/koji/getfile?taskID=2344725&name=build.log  AttributeError: 'module'  object has no attribute 'sysconfig' (distutils module)]
* [http://koji.fedoraproject.org/koji/getfile?taskID=2345165&name=root.log python-LightBox] needs
** TurboGears (and various other packages)
* python-fedora
** Needs TG1 and TG2 stack for the serverside code to function.  clientside code will function without it.
** Building was blocked on python-cherrypy2 and the TG2 stack.  Removed those.  This gets us clientside code.  Need to remove those changes and rebuild once python-cherrypy2 shows up.
* bodhi
** Needs TG1 stack for the serverside to run.  clientside will function without it.
** Built a hacked up package where the serverside will likely fail.  This gives us the ability to run the client-side application but needs to be fixed once the TG1 stack is rebiult.
* python-zdaemon
** python-zope-testing is improperly built. It requires non-existing package [http://koji.fedoraproject.org/koji/getfile?taskID=2345555&name=root.log python-zope-exceptions]
* python-zc-lockfile
** python-zope-testing (see above)


=== Packages with build errors ===
=== Packages with build errors ===
* ocfs2-tools fails to build with [http://koji.fedoraproject.org/koji/getfile?taskID=2344885&name=build.log mount.ocfs2.c:264:2: error: variable-sized object may not be initialized]
* '''IN BODHI''' [https://admin.fedoraproject.org/updates/cyphesis-0.5.24-1.fc14 cyphesis]: Presently built and in the testing repo but regression tests have been disabled and maintainer has not looked at it. See https://bugzilla.redhat.com/show_bug.cgi?id=620298
* onboard fails to build with [http://koji.fedoraproject.org/koji/getfile?taskID=2344895&name=build.log /usr/bin/python: can't open file 'setup.py': Errno 2 No such file or directory]
* [http://koji.fedoraproject.org/koji/buildinfo?buildID=187814 antlr3] had a build dependency on a non-existing package, maven2-plugin-antlr. Now that the dependency has been packaged, antlr3 is built and submitted to [https://admin.fedoraproject.org/updates/antlr3-3.2-11.fc14,antlr-maven-plugin-2.1-3.20101012svn12849.fc14 testing].
* sympy fails with [http://koji.fedoraproject.org/koji/getfile?taskID=2349649&name=build.log TypeError: not enough arguments for format string] in sympy-0.6.7/sympy/utilities/runtests.py
* vtk fails to build the SRPM. The vtk-5.6.0-testcxxjavaremove.patch is [http://cvs.fedoraproject.org/viewvc/rpms/vtk/devel/ missing].
* python-wokkel fails to build with [http://koji.fedoraproject.org/koji/getfile?taskID=2345526&name=build.log test_failureUnknown ERROR] during tests
* luci has [http://cvs.fedoraproject.org/viewvc/rpms/luci/devel/ no cvs record] on devel. This package is inherited from dist-f12. See also the bug [https://bugzilla.redhat.com/show_bug.cgi?id=526041#c18 526041]


=== Common bugs ===
=== Common bugs ===
Line 191: Line 160:
<!-- The release notes also help users know how to deal with platform changes such as ABIs/APIs, configuration or data file formats, or upgrade concerns.  If there are any such changes involved in this feature, indicate them here.  You can also link to upstream documentation if it satisfies this need.  This information forms the basis of the release notes edited by the documentation team and shipped with the release. -->
<!-- The release notes also help users know how to deal with platform changes such as ABIs/APIs, configuration or data file formats, or upgrade concerns.  If there are any such changes involved in this feature, indicate them here.  You can also link to upstream documentation if it satisfies this need.  This information forms the basis of the release notes edited by the documentation team and shipped with the release. -->
The system Python 2 stack has been upgraded to 2.7. For a list of changes see http://docs.python.org/dev/whatsnew/2.7.html
The system Python 2 stack has been upgraded to 2.7. For a list of changes see http://docs.python.org/dev/whatsnew/2.7.html
=== Caveat: PyCObject and warnings ===
Python provides various APIs for use by C extension modules.  One of these APIs, PyCObject, was deprecated in Python 2.7, but there are a [https://bugzilla.redhat.com/showdependencytree.cgi?id=620842&hide_resolved=1 number of key modules that have not yet been ported to its replacement].
By default, deprecation warnings are ignored, so this will not cause problems.
However, if the standard warnings settings are overridden, you may see problems with these modules.  In particular, if warnings have been set to "error", it is possible to make the Python interpreter abort or even segfault when importing these modules.
If you need to enable errors-for-warnings, please also add an override so that a PendingDeprecationWarning is merely logged, rather than raising an exception:
<pre>
>>> import warnings
>>> warnings.simplefilter('error')
>>> warnings.simplefilter('default', PendingDeprecationWarning)
</pre>


== Comments and Discussion ==
== Comments and Discussion ==
Line 201: Line 184:
<!-- After review, the feature wrangler will move your page to Category:FeatureReadyForFesco... if it still needs more work it will move back to Category:FeaturePageIncomplete-->
<!-- After review, the feature wrangler will move your page to Category:FeatureReadyForFesco... if it still needs more work it will move back to Category:FeaturePageIncomplete-->
<!-- A pretty picture of the page category usage is at: https://fedoraproject.org/wiki/Features/Policy/Process -->
<!-- A pretty picture of the page category usage is at: https://fedoraproject.org/wiki/Features/Policy/Process -->
[[Category:Python]]

Latest revision as of 14:04, 18 September 2016


Python 2.7

Summary

Update the system Python 2 stack in Fedora from 2.6 to 2.7

Owner

  • Email: <dmalcolm@redhat.com>

Current status

  • Targeted release: Fedora 14
  • Last updated: 2010-09-27
  • Percentage of completion: 100%

oget wrote a script to report on remaining problems.

The results can be seen here

Tracker bug for packages that fail to rebuild: https://bugzilla.redhat.com/showdependencytree.cgi?id=619913&hide_resolved=1

Fixes for broken packages should be built into both rawhide, and into dist-f14.

Information on the new "dist-git" system can be seen here.

Once it's been successfully rebuilt for F14, an update needs to be filed to get the rebuild into F14.

To make it easier to track things, dmalcolm has been filing bugs using this template against the broken packages. Please set the component and add the name of the component to the front of the subject of the bug. Once an update has been created, the bug should be flipped over to the MODIFIED status, to make it easy to see what works remain.


Tracker bug for issue arising in built packages: https://bugzilla.redhat.com/showdependencytree.cgi?id=620817&hide_resolved=1 (e.g. Python 2.7 incompatibilities)

Packages with build errors

Common bugs

FIXED: gobject-introspection

gobject-introspection's /usr/bin/g-ir-scanner was incompatible with python 2.7, this led to anything building a .gir file failing.

This was blocking:

FIXED: SWIG

Various swig users fail to find the python libraries during "configure":

checking for Python library path... find: `/usr/lib/python/config/': No such file or directory
find: `/usr/lib/python/': No such file or directory
/usr/lib
checking python extra libraries... 

Relevant part of "configure" seems to be

        python_path=`echo $PYTHON | sed "s,/bin.*$,,"`
        for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/\
lib/python/" "$python_path/" ; do

This sets $python_path to "/usr", and then looks for config within /usr/lib, which fails on 64-bit: the relevant files are in /usr/lib64 (why did this work before? is this a python change?)

Before this we see errors like this:

checking for SWIG version... 2.0.0
configure: WARNING: SWIG version >= 1.3.17 is required.  You have 2.0.0.  You should look at http://www.swig.org

The test in the configure seems to look for an exact match on major and minor, and >= on the patch level, and thus "2" -ne "1" seems to leave SWIG_LIB unset, and could be the actual problem here.

A workaround is to add this:

# For now (workaround for SWIG major-version bump)
BuildRequires:  autoconf

%prep
(snip)
# Fixup expected version of SWIG:
sed -i -e "s|AC_PROG_SWIG(1.3.17)|AC_PROG_SWIG(2.0.0)|" configure.in
# and rebuild the configure script:
autoconf

This was blocking:

Detailed Description

  • Python 2.7 was released on 2010-07-03

This will require a rebuild of everything with Requires: python(abi) = 2.6. See Mass_Rebuild_SOP for how we do a full rebuild of everything - hopefully we can adapt the scripts there to accomplish the rebuild needed for Python 2.7. See Features/Python_2.7/MassRebuild for notes on this specific rebuild.

Porting

Hopefully, little to no porting will be required.

Some notes on changes that may require porting are given on the upstream wiki here: http://docs.python.org/dev/whatsnew/2.7.html#porting-to-python-2-7

Benefit to Fedora

Fedora aims to showcase the latest in free and open source software - we should have the most recent release of Python.

Scope

Python is pervasive in Fedora. Everything from yum to system-config-* to anaconda to pungi is written in Python.

How To Test

Interested testers do not need special hardware. If you have a favorite Python script, module, or application, please test it with Python 2.7 and verify that it still works as you expect.

My own test plan:

  • Smoketest of the interpreter
  • Run the upstream regression test suite
  • Ensure that yum still works
  • Ensure that anaconda still works

User Experience

Users should not notice any difference, other than the availability of the 2.7 interpreter


Dependencies

The list is too large to include here.

repoquery --whatrequires --alldeps -s "python(abi) = 2.6" | sort -u

indicates approximately 1200 rpms

Contingency Plan

  • There is none. This is do-or-die.

Documentation

What’s New in Python 2.7

Release Notes

The system Python 2 stack has been upgraded to 2.7. For a list of changes see http://docs.python.org/dev/whatsnew/2.7.html

Caveat: PyCObject and warnings

Python provides various APIs for use by C extension modules. One of these APIs, PyCObject, was deprecated in Python 2.7, but there are a number of key modules that have not yet been ported to its replacement.

By default, deprecation warnings are ignored, so this will not cause problems.

However, if the standard warnings settings are overridden, you may see problems with these modules. In particular, if warnings have been set to "error", it is possible to make the Python interpreter abort or even segfault when importing these modules.

If you need to enable errors-for-warnings, please also add an override so that a PendingDeprecationWarning is merely logged, rather than raising an exception:

>>> import warnings
>>> warnings.simplefilter('error')
>>> warnings.simplefilter('default', PendingDeprecationWarning)

Comments and Discussion