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

Bug 8054

Summary: Fix for missing includes in tk ebuild
Product: Gentoo Linux Reporter: Scott Lampert <scott>
Component: New packagesAssignee: Karl Trygve Kalleberg (RETIRED) <karltk>
Status: RESOLVED FIXED    
Severity: normal CC: kevin
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Scott Lampert 2002-09-17 23:34:02 UTC
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 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-09-26 10:59:11 UTC
Fixed in dev-lang/tk-8.3.3-r2