Summary: | dev-lang/tk-8.5.x require patch for prefix usage | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Stuart Shelton <srcshelton> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | IRIX | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch for tk-8.5.7 to place XFT_LIBS before X11_LIBS, so that the X11 library search path is correct
tk-8.5.8.ebuild.patch |
Description
Stuart Shelton
2009-11-03 14:57:02 UTC
Created attachment 209132 [details, diff]
Patch for tk-8.5.7 to place XFT_LIBS before X11_LIBS, so that the X11 library search path is correct
The only other values in Makefile.in which contain the library search path but not libraries is $(LDFLAGS), so swapping the -lX* directives and $(XFT_LIBS) seemed the most sensible option...
That's a fix that actually relies on some little coincidence. Can't we just somehow inject the -L${EPREFIX}/usr/$(get_libdir) path somewhere so we know it's proper? That'd certainly make sense - but CFLAGS et al. are only included after these libraries, and so wouldn't affect the outcome. I'm not aware of another good method (other than patching the Makefile in some other way, which may well be the best solution - the above patch was just the minimal set of changes to get the thing working) to inject the library path... Still a problem with tk-8.5.8 :( Created attachment 237289 [details, diff]
tk-8.5.8.ebuild.patch
Having said that, it does look as if the tk ebuild could do with a bit of eprefix-ifying. How's this?
Actually, ignore that last one - tk-8.5.8-r1.ebuild (which I'd somehow missed) includes all of these changes :o Wotks for me. |