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 1720868

Summary: fig2dev broken in transfig-3.2.7a-1.fc31
Product: [Fedora] Fedora Reporter: Michael Young <m.a.young>
Component: transfigAssignee: tomm.momi
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: hhorak, kasal, odubaj, panovotn, tomm.momi, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: transfig-3.2.7a-2.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-18 13:40:52 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: 1704807    

Description Michael Young 2019-06-15 22:55:39 UTC
The build of xen in rawhide runs
/usr/bin/fig2dev -L png network-bridge.fig >network-bridge.png.tmp

which gives the error
BUILDSTDERR: sh: -q: command not found
BUILDSTDERR: Error in ghostcript or netpbm command
BUILDSTDERR: command was:  -q -dSAFER -r80 -g711x553 -sDEVICE=ppmraw -o - - | pnmtopng 2>/tmp/f2derrormA6tlP
BUILDSTDERR: Messages resulting:
BUILDSTDERR:   pnmtopng: Error reading first byte of what is expected to be a Netpbm magic number.  Most often, this means your input file is empty

It looks like transfig-3.2.7a now auto-detects gs at build time which means it needs
BuildRequires: ghostscript
in the spec file as otherwise no gs is set and fig2dev fails as above.

xen does build with transfig built with BuildRequires: ghostscript added to the spec file.

Comment 1 Zbigniew Jędrzejewski-Szmek 2019-06-18 13:33:52 UTC
Considering that this bug makes the package unusable, and that the fix is very straightforward,
I pushed the fix directly to dist-git and started a rebuild of the package.

Comment 2 Zbigniew Jędrzejewski-Szmek 2019-06-18 13:40:52 UTC
Built in rawhide.