Bug 1674789

Summary: dblatex: FTBFS in Fedora rawhide/f30
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: dblatexAssignee: Michael J Gruber <mjg>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: alexl, bkoz, jchaloup, mjg, ndbecker2, pertusus
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-02-12 09:31:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 1674516    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2019-02-11 17:02:38 UTC
dblatex failed to build from source in Fedora rawhide/f30

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Please fix dblatex 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,
dblatex will be orphaned. Before branching of Fedora 31,
dblatex 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 Fedora Release Engineering 2019-02-11 17:02:40 UTC
Created attachment 1529654 [details]
build.log

file build.log too big, will only attach last 1024 bytes

Comment 2 Fedora Release Engineering 2019-02-11 17:02:42 UTC
Created attachment 1529655 [details]
root.log

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

Comment 3 Fedora Release Engineering 2019-02-11 17:02:43 UTC
Created attachment 1529656 [details]
state.log

Comment 4 Neal Becker 2019-02-11 19:20:36 UTC
Someone who has commit rights, I suggest trying:

diff --git a/dblatex.spec b/dblatex.spec
index af69bcf..45bf957 100644
--- a/dblatex.spec
+++ b/dblatex.spec
@@ -1,6 +1,6 @@
 Name:       dblatex
 Version:    0.3.10
-Release:    9%{?dist}
+Release:    10%{?dist}
 Summary:    DocBook to LaTeX/ConTeXt Publishing
 BuildArch:  noarch
 # Most of package is GPLv2+, except:
@@ -83,6 +83,7 @@ Authors:
 %patch1 -p1 -b .disable-debian
 rm -rf lib/contrib
 pathfix.py -pni "%{__python2} %{py2_shbang_opts}" .
+pathfix.py -pni "%{__python2} %{py2_shbang_opts}" scripts/dblatex
 
 %build
 %{__python2} setup.py build
@@ -132,6 +133,9 @@ cp -p %{SOURCE1} COPYING-docbook-xsl
 %postun -p /usr/bin/texhash
 
 %changelog
+* Mon Feb 11 2019 Neal Becker <ndbecker2@gmail.com> - 0.3.10-10
+- Fix scripts/dblatex hashbang
+
 * Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.10-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Comment 5 Neal Becker 2019-02-11 19:56:00 UTC
created PR
https://src.fedoraproject.org/rpms/dblatex/pull-request/3

Comment 6 Michael J Gruber 2019-02-12 09:26:46 UTC
(In reply to Neal Becker from comment #5)
> created PR
> https://src.fedoraproject.org/rpms/dblatex/pull-request/3

No, this still FTBFS with this patch.

The problem is in the way setup.py builds the shebang. Still, thanks for the hint to pathfix. Update is building.