Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1605925

Summary: python-sphinx-intl: FTBFS in Fedora rawhide
Product: [Fedora] Fedora Reporter: Mohan Boddu <mboddu>
Component: python-sphinx-intlAssignee: Julien Enselme <jujens>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: jujens, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-30 19:26:12 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:    
Bug Blocks: 1565020, 1602938    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Mohan Boddu 2018-07-20 17:37:53 UTC
python-sphinx-intl failed to build from source in Fedora rawhide

https://koji.fedoraproject.org/koji/taskinfo?taskID=28225097


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Please fix python-sphinx-intl at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
python-sphinx-intl will be orphaned. Before branching of Fedora 30,
python-sphinx-intl will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://fedoraproject.org/wiki/Fails_to_build_from_source

Comment 1 Mohan Boddu 2018-07-20 17:38:02 UTC
Created attachment 1466859 [details]
build.log

Comment 2 Mohan Boddu 2018-07-20 17:38:05 UTC
Created attachment 1466860 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Mohan Boddu 2018-07-20 17:38:08 UTC
Created attachment 1466861 [details]
state.log

Comment 4 Miro Hrončok 2018-07-25 09:25:59 UTC
(This is a mass bug update. Forgive me if things are not 100% accurate for this one.)

At this moment, your package still requires Python 3.6. This will cause broken upgrades to Fedora 29. Please prioritize this rebuild.

Let me know if you need help from the Python maintenance team figuring out why the package FTBFS.

Consider orphaning the package if you don't have time for it.

Consider retiring the package if upstream is dead and nothing depends on it in Fedora.

If you are blocked by other packages (I've recently tried to set the Bugzilla metadata to reflect that), consider helping there as well. Thank you.

Comment 5 Julien Enselme 2018-07-26 08:36:36 UTC
Tests are failing for a strange reason (full failure is attached):
TypeError: 'path' object is not callable

It looks really weird to me and if someone in the Python maintenance team has an idea, that would be great.

Comment 6 Miro Hrončok 2018-07-26 08:45:50 UTC
conftest.py is setting magic __dir__ variable and that confuses pytest. Reanme it and the test run:

diff --git a/tests/conftest.py b/tests/conftest.py
index 9248693..dfff83c 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -14,7 +14,7 @@ import pytest
 
 from path import path
 
-__dir__ = path(os.path.dirname(os.path.abspath(__file__)))
+_dir = path(os.path.dirname(os.path.abspath(__file__)))
 
 
 @pytest.fixture(scope="function")
@@ -22,7 +22,7 @@ def temp(request, tmpdir):
     template_dir = 'root'
 
     tmpdir = path(tmpdir)
-    (__dir__ / template_dir).copytree(tmpdir / template_dir)
+    (_dir / template_dir).copytree(tmpdir / template_dir)
     cwd = os.getcwd()
     temp = tmpdir / template_dir
     os.chdir(temp)

Comment 7 Miro Hrončok 2018-07-26 08:48:30 UTC
The cause: https://www.python.org/dev/peps/pep-0562/

Comment 9 Julien Enselme 2018-07-30 19:26:12 UTC
Thanks. Package rebuilt.

Comment 10 Julien Enselme 2018-08-01 20:40:16 UTC
Patch submitted upstream: https://github.com/sphinx-doc/sphinx-intl/pull/25

Thanks again Miro!