Bug 8054 - Fix for missing includes in tk ebuild
Bug#: 8054 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: karltk@gentoo.org Reported By: scott@lampert.org
Component: Ebuilds
URL: 
Summary: Fix for missing includes in tk ebuild
Keywords:  
Status Whiteboard: 
Opened: 2002-09-17 23:34 0000
Description:   Opened: 2002-09-17 23:34 0000
The ebuild for tk leaves out the include files necessary for compiling object
files against its libraries. The following diff fixes this:

--- tk-8.3.3-r1.ebuild  Wed Aug 14 05:20:30 2002
+++ tk-8.3.3-r2.ebuild  Sun Sep 15 10:23:44 2002
@@ -44,14 +44,14 @@
        
        # fix the tkConfig.sh to eliminate refs to the build directory
        sed -e "s,^TK_BUILD_LIB_SPEC='-L${S2}/unix,TCL_BUILD_LIB_SPEC='-L/usr/li
b," \
-               -e "s,^TK_SRC_DIR='${S2}',TCL_SRC_DIR='/usr/lib/tk${V2}/include'
," \
+               -e "s,^TK_SRC_DIR='${S2}',TCL_SRC_DIR='/usr/lib/tk${v1}/include'
," \
                -e "s,^TK_BUILD_STUB_LIB_SPEC='-L${S2}/unix,TCL_BUILD_STUB_LIB_S
PEC='-L/usr/lib," \
                -e "s,^TK_BUILD_STUB_LIB_PATH='${S2}/unix,TCL_BUILD_STUB_LIB_PAT
H='/usr/lib," \
                ${D}/usr/lib/tkConfig.sh > ${D}/usr/lib/tkConfig.sh.new
        mv ${D}/usr/lib/tkConfig.sh.new ${D}/usr/lib/tkConfig.sh
        
        # install private headers
-       dodir /usr/lib/tk${V2}/include/unix
+       dodir /usr/lib/tk${v1}/include/unix
        install -c -m0644 ${S}/unix/*.h ${D}/usr/lib/tk${v1}/include/unix
        dodir /usr/lib/tk${v1}/include/generic
        install -c -m0644 ${S}/generic/*.h ${D}/usr/lib/tk${v1}/include/generic

------- Comment #1 From Karl Trygve Kalleberg (RETIRED) 2002-09-26 10:59:11 0000 -------
Fixed in dev-lang/tk-8.3.3-r2