Bug 449273

Summary: mftrace aborts fatally on unsupported metafont output
Product: [Fedora] Fedora Reporter: Hans Ulrich Niedermann <rhbugs>
Component: mftraceAssignee: Quentin Spencer <qspencer>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-08 04:37:58 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: 434394    

Description Hans Ulrich Niedermann 2008-06-01 14:53:20 UTC
Description of problem:

  /usr/bin/mftrace around line 927:

  m = re.search ("\n!", log)
  start = m.start (0)

  No match found in log, m is None, None.start gives exception.
  Root cause is unknown, but this prevents lilypond rebuilds in rawhide.

Version-Release number of selected component (if applicable):

  1.2.14-4.fc9

How reproducible:

  100%

Steps to Reproduce:
  1. cvs checkout lilypond
  2. cd lilypond/devel
  3. make mockbuild
  
Actual results:

MFINPUTS=. mftrace --encoding ./out/feta11.enc --no-afm -I . -I ./out/
--formats=pfa,pfb,svg feta11
mftrace 1.2.14
Font `feta11'...
Warning: no extra font information for this font.
Consider writing a XX_guess_font_info() routine.
Using encoding file: `/builddir/build/BUILD/lilypond-2.10.33/mf/out/feta11.enc'
Running Metafont...
warning: mf: command exited with value 32512 (ignored) 
Metafont failed.  Excerpt from the log file: 
*****
Traceback (most recent call last):
  File "/usr/bin/mftrace", line 1412, in <module>
    
main()
  File "/usr/bin/mftrace", line 1408, in main
    
do_file (filename)
  File "/usr/bin/mftrace", line 1382, in do_file
    
base = gen_pixel_font (basename, metric, options.magnification)
  File "/usr/bin/mftrace", line 928, in gen_pixel_font
    
start = m.start (0)
AttributeError
: 
'NoneType' object has no attribute 'start'

Expected results:

  No error.

Additional info:

  See also the lilypond FTBFS bug at
https://bugzilla.redhat.com/show_bug.cgi?id=434394#c3

Comment 1 Matt Domsch 2008-07-08 04:37:56 UTC
builds as of 2008-07-03, version 1.2.14-4.fc10.