Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 36842

Summary: [PATCH] sys-apps/groff-1.18.1-r3: pic2graph is buggy
Product: Gentoo Linux Reporter: Malte S. Stretz <gentoo-bugger>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.catb.org/~esr/hacker-emblem/glider.pic
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch against pic2graph (fix missing command)
patch against pic2graph (make it more FHS conforme)

Description Malte S. Stretz 2003-12-30 13:28:32 UTC
Seems like the pic2graph util shipped with that version of groff is buggy. It's a shell script, in line 48 is missing a command. I'll attach a patch to fix this (might need to be sent upstream to ESR if that file is still buggy in a more current version).

Another thing is that the util uses /usr/tmp instead of /var/tmp. That's a correct symlink on most systems (including Gentoo) but that doesn't make it FHS conform :) I'll attach another patch for this.

Reproducible: Always
Steps to Reproduce:
1. wget http://www.catb.org/~esr/hacker-emblem/glider.pic
2. pic2graph < glider.pic

Actual Results:  
/tmp/pic2graph: line 48: syntax error near unexpected token `)' 
/tmp/pic2graph: line 48: `    -format)' 
 

Expected Results:  
Dunno, but no error.
Comment 1 Malte S. Stretz 2003-12-30 13:31:28 UTC
Created attachment 22873 [details, diff]
patch against pic2graph (fix missing command)
Comment 2 Malte S. Stretz 2003-12-30 13:32:01 UTC
Created attachment 22874 [details, diff]
patch against pic2graph (make it more FHS conforme)
Comment 3 SpanKY gentoo-dev 2004-10-03 00:14:24 UTC
i updated the sed statement to fix the shift/-U issue and e-mailed upstream about it

groff-1.19.1-r1 resolves the tmpdir issue

sorry for the delay ;)