Bug 1706159
| Summary: | python-nixio FTBFS on rawhide | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Patrik Kopkan <pkopkan> | ||||
| Component: | python-nixio | Assignee: | Ankur Sinha (FranciscoD) <sanjay.ankur> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | mhroncok, neuro-sig, sanjay.ankur | ||||
| 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: | 2019-07-10 20:12:01 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1700317, 1685211, 1686977, 1732841 | ||||||
| Attachments: |
|
||||||
|
Description
Patrik Kopkan
2019-05-03 16:54:50 UTC
I was recently hit by this in python-pelican. It is most likely a Sphinx 2 problem rather than Python 3.8 itself: https://src.fedoraproject.org/rpms/python-pelican/c/7e16845f2f4b1083c7cd17d2cbcde293d048b8e6?branch=master This happens on regular rawhide with Python 3.7 as well: ... The HTML pages are in html. + rm -fr html/.buildinfo html/.doctrees + for f in html/_downloads/*.py + sed '1{\@^#!/usr/bin/env python@d}' 'html/_downloads/*.py' sed: can't read html/_downloads/*.py: No such file or directory + exit 2 error: Bad exit status from /var/tmp/rpm-tmp.K8gAnx (%build) --- a/python-nixio.spec
+++ b/python-nixio.spec
@@ -63,7 +63,7 @@ PYTHONPATH=. sphinx-build-3 docs/source html
rm -fr html/.{buildinfo,doctrees}
# Remove shebang from documentation examples
-for f in html/_downloads/*.py; do
+for f in html/_downloads/*/*.py; do
sed '1{\@^#!/usr/bin/env python@d}' $f > $f.new &&
touch -r $f $f.new &&
mv $f.new $f
This fixes the problem. Will check if the package builds on Python 3.8 with the fix applied.
It does. I'm not pushing the fix yet, as I don't know if you prefer to maintain "single spec" and I don't think it works with previous Fedoras as is. Thanks Miro! I'll include the fix---gotta check how we do the specs for this one XD FranciscoD, what's the status here? Still pending, I'm afraid. Sorry. I'll do it over the weekend at most. |