Bug 757816
Summary: | FTBFS in EPEL-6 ... please upgrade to package from F16 | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Matěj Cepl <mcepl> |
Component: | python-flask | Assignee: | Dan Young <dyoung> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | el6 | CC: | dyoung, hushan.jia, ian, mcepl, relrod |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-09-23 18:29:46 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 757895 | ||
Bug Blocks: |
Description
Matěj Cepl
2011-11-28 19:00:35 UTC
Flask requires Jinja2 v2.4 or later. The python-jinja2 package is provided in the RHEL6 base repository at v2.2.1, and thus cannot be updated. I had requested an EL6 tag sometime back for the python-flask package before I had realized that the older version of Jinja2 was in RHEL6 proper. (In reply to comment #1) > Flask requires Jinja2 v2.4 or later. The python-jinja2 package is provided in > the RHEL6 base repository at v2.2.1, and thus cannot be updated. See bug 757811 comment 1 ... I don't know whether it is possible python-jinja2 would be actually upgraded in RHEL-6, or whether we should hope for python-jinja26 in EPEL. So, there is now python-sphinx10 works just fine and in bug 757895 we have now python-jinja2-26 just exactly to overcome this. Hi, I've been looking at the EL6 branch for this since we're interested in using Flask in Fedora Infrastructure. Now that python-jinja2-26 is out, Flask builds just fine on EL6, but I've found some issues with the %check portion of the spec so far: 1) While in %check, setup.py doesn't find python-jinja2-26 first, causing it to error out on a dependency issue. This is fixed by patching setup.py to have "__requires__ = ['Flask>=2.4']" at the top of the file. 2) A test fails: ====================================================================== FAIL: test_test_app_proper_environ (flask.testsuite.basic.BasicFunctionalityTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Flask-0.8/flask/testsuite/basic.py", line 722, in test_test_app_proper_environ self.assert_equal(rv.status_code, 404) File "/builddir/build/BUILD/Flask-0.8/flask/testsuite/__init__.py", line 133, in assert_equal return self.assertEqual(x, y) AssertionError: 200 != 404 ---------------------------------------------------------------------- Apparently this test fails because EPEL's version of Werkzeug is too old, and Flask's setup.py incorrectly states this. https://github.com/mitsuhiko/flask/issues/449 I'm going to keep working on fixing these packaging issues. If anyone has a problem with me just committing fixes to the package git repo, let me know. Proposed upgrade to python-werkzeug-0.8.3 to epel-devel: https://www.redhat.com/archives/epel-devel-list/2012-July/msg00002.html The policy in question is here: https://fedoraproject.org/wiki/EPEL_incompatible_upgrades_policy I've been working on this with Ian today. The current plan is to get Flask 0.9 in EPEL 6. We have two small patches that are necessary to make this work as painlessly as possible on RHEL 6. We'll be committing those soon. The other blocker, as Ian said, python-werkzeug. We have 0.8.3 working fine on RHEL 6, and we can build that for EPEL as soon as the approval Ian mentioned goes through (likely at the next EPEL meeting). python-flask-0.9-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/python-flask-0.9-1.el6 Package python-flask-0.9-1.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing python-flask-0.9-1.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-6644/python-flask-0.9-1.el6 then log in and leave karma (feedback). python-flask-0.9-4.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/python-flask-0.9-4.el6 python-flask-0.9-5.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/python-flask-0.9-5.el6 python-flask-0.9-5.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. |