Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81164 - sed statement in pyopengl-2.0.1 wrong
Summary: sed statement in pyopengl-2.0.1 wrong
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-07 13:40 UTC by Marius Mauch (RETIRED)
Modified: 2005-02-07 14:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.