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

Bug 81164

Summary: sed statement in pyopengl-2.0.1 wrong
Product: Gentoo Linux Reporter: Marius Mauch (RETIRED) <genone>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marius Mauch (RETIRED) gentoo-dev 2005-02-07 13:40:53 UTC
SEDED="""
s/tk = Tkinter.Tk()/tk = ${TKEQ}/;
s/tk.getvar('tk_version')/str(Tkinter.TkVersion)/g;
s/tk.getvar( 'tk_version' )/str(Tkinter.TkVersion)/g;
s/tk.getvar('tcl_version')/str(Tkinter.TclVersion)/g;
s/tk.getvar('tk_library')/${TKLIBRARY}/g;
s/tk.getvar('tcl_library')/${TCLLIBRARY}/g;"""
        sed -i -e "${SEDED}" togl_setup.py

Doesn't work. The variables might/will contain slashes which will completely break the sed command. Colon would be a better choice.
Comment 1 Fernando Serboncini (RETIRED) gentoo-dev 2005-02-07 14:29:45 UTC
totally right, I didn't realize that $(get_libdir) can return subpaths. Thanks for the notice. Fixed in the tree.