Bug 1272264

Summary: Building issues when building python-backports-ssl_match_hostname-3.4.0.2-5 on Fedora 23
Product: [Fedora] Fedora Reporter: David Sommerseth <davids>
Component: python-backports-ssl_match_hostnameAssignee: Ralph Bean <rbean>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 23CC: ian, ovasik, rbean
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-backports-ssl_match_hostname-3.4.0.2-6.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-17 15:50:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
[PATCH] Fix building issues with Fedora 23, related to namespace setup none

Description David Sommerseth 2015-10-15 22:41:49 UTC
Created attachment 1083446 [details]
[PATCH] Fix building issues with Fedora 23, related to namespace setup

When building on Fedora 23 without this patch, setup.py will fail like this:

    + cd /builddir/build/BUILD
    + cd backports.ssl_match_hostname-3.4.0.2
    + python setup.py build
    running build
    running build_py
    error: Namespace package problem: backports is a namespace package, but its
    __init__.py does not call declare_namespace()! Please fix it.
    (See the setuptools manual under "Namespace Packages" for details.)

The attached patch adds the now enforced declare_namespace(__name__) call,
according to https://pythonhosted.org/setuptools/setuptools.html#namespace-packages

Comment 1 Ralph Bean 2015-10-16 15:12:04 UTC
For what its worth.. I don't think you need backports.ssl_match_hostname on F23 and later.  It is meant to patch something in the ssl stdlib module which is no longer needed with the version of core python available in that release.  Does that help?

Comment 2 David Sommerseth 2015-10-16 17:32:37 UTC
I wish we wouldn't need it.  But when we are rebuilding the packages for a buildroot based on F23 packages, there is some package which pulls it it.  I have not come far enough yet to figure out which package which pulls it in.

If we can get rid of it in the next round, I nothing would please me more.  But currently it is needed to get further.

Comment 3 Ralph Bean 2015-11-06 15:22:32 UTC
Update for F23 on it's way.  Thanks for the patch, David!

Comment 4 Fedora Update System 2015-11-06 23:21:34 UTC
python-backports-ssl_match_hostname-3.4.0.2-6.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-79bd57991d

Comment 5 Fedora Update System 2015-11-08 13:23:51 UTC
python-backports-ssl_match_hostname-3.4.0.2-6.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update python-backports-ssl_match_hostname'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-79bd57991d

Comment 6 Fedora Update System 2015-11-17 15:50:55 UTC
python-backports-ssl_match_hostname-3.4.0.2-6.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.