Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Get aMSN to use anti-aliased fonts (with ebuilds)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
CoffeeBuzz
Apprentice
Apprentice


Joined: 15 Jun 2005
Posts: 269
Location: Canada Eh.

PostPosted: Mon Jan 16, 2006 12:38 am    Post subject: Reply with quote

Patched tcl properly for 3.1 but tk gives me

checking system version (for dynamic loading)... ./configure: line 10184: syntax error near unexpected token `('
./configure: line 10184: ` case `(ac_space=' '; set | grep ac_space) 2>&1` in'


anyone know the proper bash 3.1 (_p5-r1) syntax for that line?
_________________
HP Pavilion zd7260us
Xgl Overlay: http://svn.xgl-coffee.org/xgl-coffee/trunk
Xgl Forums: http://forums.xgl-coffee.org
Back to top
View user's profile Send private message
Hum
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2005
Posts: 116
Location: Canada

PostPosted: Thu Jan 19, 2006 1:33 am    Post subject: Reply with quote

hopefully this copy/pastes ok :)
tk-8.5.0-configure.patch
Code:
--- unixold/configurebak        2006-01-18 21:27:37.000000000 -
+++ unix/configure      2006-01-18 21:27:44.000000000 -0400
@@ -4253,7 +4253,7 @@
            # results, and the version is kept in special file)

            if test -r /etc/.relid -a "X`uname -n`" = "X`uname
-               system=MP-RAS-`awk '{print }' /etc/.relid'`
+               system=MP-RAS-`awk '{print }' /etc/.relid`
            fi
            if test "`uname -s`" = "AIX" ; then
                system=AIX-`uname -v`.`uname -r`

tk-8.5.0.ebuild
Code:
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION=""
HOMEPAGE=""
SRC_URI=""
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tk/tk-8.5.0.ebuild,v 1.5 2005/05/09 17:37:33 gustavoz Exp $

inherit eutils

DESCRIPTION="Tk Widget Set"
HOMEPAGE="http://dev.scriptics.com/software/tcltk/"
SRC_URI="mirror://sourceforge/tcl/tk8.5a3-src.tar.gz"


LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ia64 ~mips ~ppc ~ppc64 sparc x86"
IUSE="threads"

DEPEND=">=sys-apps/sed-4.0.5
   >=sys-apps/portage-2.0.47-r10
   virtual/x11
   =dev-lang/tcl-${PV}*"

S=${WORKDIR}/${PN}8.5a3

pkg_setup() {
   if use threads
   then
      ewarn ""
      ewarn "PLEASE NOTE: You are compiling ${P} with"
      ewarn "threading enabled."
      ewarn "Threading is not supported by all applications"
      ewarn "that compile against tcl. You use threading at"
      ewarn "your own discretion."
      ewarn ""
      epause 5
   fi
}

src_unpack() {
   unpack ${A}
   cd ${S}
   epatch ${FILESDIR}/tk-8.5.0-configure.patch || die
   #epatch ${FILESDIR}/${P}-man.patch || die
}

src_compile() {
   cd ${S}/unix

   local local_config_use=""

   if use threads
   then
      local_config_use="--enable-threads"
   fi

   econf \
      --with-tcl=/usr/$(get_libdir) \
      ${local_config_use} || die

   emake CFLAGS="${CFLAGS}" || die
}

src_install() {
   #short version number
   local v1
   v1=${PV%.*}

   cd ${S}/unix
   #make INSTALL_ROOT=${D} MAN_INSTALL_DIR=${D}/usr/share/man install || die
   S= make INSTALL_ROOT=${D} install || die

   # fix the tkConfig.sh to eliminate refs to the build directory
   sed -i \
      -e "s,^\(TK_BUILD_LIB_SPEC='-L\)${S}/unix,\1/usr/$(get_libdir)," \
      -e "s,^\(TK_SRC_DIR='\)${S}',\1/usr/$(get_libdir)/tk${v1}/include'," \
      -e "s,^\(TK_BUILD_STUB_LIB_SPEC='-L\)${S}/unix,\1/usr/$(get_libdir)," \
      -e "s,^\(TK_BUILD_STUB_LIB_PATH='\)${S}/unix,\1/usr/$(get_libdir)," \
      -e "s,^\(TK_CC_SEARCH_FLAGS='.*\)',\1:/usr/$(get_libdir)'," \
      -e "s,^\(TK_LD_SEARCH_FLAGS='.*\)',\1:/usr/$(get_libdir)'," \
      ${D}/usr/lib/tkConfig.sh

   # install private headers
   dodir /usr/$(get_libdir)/tk${v1}/include/unix
   install -c -m0644 ${S}/unix/*.h ${D}/usr/$(get_libdir)/tk${v1}/include/unix
   dodir /usr/$(get_libdir)/tk${v1}/include/generic
   install -c -m0644 ${S}/generic/*.h ${D}/usr/$(get_libdir)/tk${v1}/include/generic
   rm -f ${D}/usr/$(get_libdir)/tk${v1}/include/generic/tk.h
   rm -f ${D}/usr/$(get_libdir)/tk${v1}/include/generic/tkDecls.h
   rm -f ${D}/usr/$(get_libdir)/tk${v1}/include/generic/tkPlatDecls.h

   # install symlink for libraries
   #dosym /usr/$(get_libdir)/libtk${v1}.a /usr/$(get_libdir)/libtk.a
   dosym /usr/$(get_libdir)/libtk${v1}.so /usr/$(get_libdir)/libtk.so
   dosym /usr/$(get_libdir)/libtkstub${v1}.a /usr/$(get_libdir)/libtkstub.a

   ln -sf wish${v1} ${D}/usr/bin/wish

   cd ${S}
   dodoc README changes license.terms
}
Back to top
View user's profile Send private message
Nephren-Ka
n00b
n00b


Joined: 10 Jun 2002
Posts: 63
Location: Melbourne, Australia

PostPosted: Fri Jan 20, 2006 2:03 am    Post subject: Reply with quote

Aries-Belgium wrote:
Okay, my problem (see above) is solved.

There were some errors while pasting the ebuild source to nano (or vim). I figured out that every rule of a function has to have a red background in vim. Changed it ... saved it ... digested it ... and emerged it ... works like a charm!

Thanks man!



No problem

Quote:


But I can't see that big of change in amsn then before ...


You need to select a nice AA'd font. In the picture I posted of my setup above, I am using Bitstream Vera Sans :)
Back to top
View user's profile Send private message
Aries-Belgium
l33t
l33t


Joined: 08 Jul 2005
Posts: 730
Location: Willebroek, Belgium

PostPosted: Fri Jan 20, 2006 9:51 pm    Post subject: Reply with quote

Okay found out what the problem was ... I hadn't enabled anti-alias in my /etc/fonts/local.conf ... did that now and now it all working!

Last edited by Aries-Belgium on Wed Jan 25, 2006 10:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
Kuhndog86
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 271
Location: Central WI

PostPosted: Wed Jan 25, 2006 8:39 pm    Post subject: Reply with quote

Aries-Belgium wrote:
Okay, my problem (see above) is solved.

There were some errors while pasting the ebuild source to nano (or vim). I figured out that every rule of a function has to have a red background in vim. Changed it ... saved it ... digested it ... and emerged it ... works like a charm!

Thanks man!

[EDIT]
But I can't see that big of change in amsn then before ...


So how do I fix the ebuild exactly? (I don't use vim)

Thanks
_________________
"Don't you think that if Microsoft actually had some really foolproof patent, they'd just tell us and go, 'nyaah, nyaah, nyaah!'" -Linux Torvalds
Back to top
View user's profile Send private message
revertex
l33t
l33t


Joined: 23 Apr 2003
Posts: 806

PostPosted: Wed Jan 25, 2006 10:01 pm    Post subject: Reply with quote

to people with problems with copy/paste, try cat:

Code:
cat > foo.ebuild


then press this sequence,
    wheelmouse button (or whatever you use to paste)
    enter key
    ctrl+c

don't forget the enter key before ctrl+c, ctrl+c straight will cut the last line.
@Nephren-Ka
Thank's a ton for the tip, your crystal clear instructions take me less than five minutes to accomplish.
Therefore i hate amsn with ttf it's much more pleasant.
Back to top
View user's profile Send private message
CoffeeBuzz
Apprentice
Apprentice


Joined: 15 Jun 2005
Posts: 269
Location: Canada Eh.

PostPosted: Sat Jan 28, 2006 10:43 pm    Post subject: Reply with quote

Hum wrote:
hopefully this copy/pastes ok :)
tk-8.5.0-configure.patch
Code:
--- unixold/configurebak        2006-01-18 21:27:37.000000000 -
+++ unix/configure      2006-01-18 21:27:44.000000000 -0400
@@ -4253,7 +4253,7 @@
            # results, and the version is kept in special file)

            if test -r /etc/.relid -a "X`uname -n`" = "X`uname
-               system=MP-RAS-`awk '{print }' /etc/.relid'`
+               system=MP-RAS-`awk '{print }' /etc/.relid`
            fi
            if test "`uname -s`" = "AIX" ; then
                system=AIX-`uname -v`.`uname -r`



ebuild pastes fine but i'll be damned if i can EVER get a patch to copy/paste properly and work... I always have to make my own patch... anyone toss a hand? I tried the cat > blah.patch trick and many others... emacs, nano (dont use vim)... notta.
_________________
HP Pavilion zd7260us
Xgl Overlay: http://svn.xgl-coffee.org/xgl-coffee/trunk
Xgl Forums: http://forums.xgl-coffee.org
Back to top
View user's profile Send private message
Kuhndog86
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 271
Location: Central WI

PostPosted: Mon Jan 30, 2006 3:46 pm    Post subject: Reply with quote

The cat trick didn't work for me either...perhaps the patches could be submitted to bugzilla if that isn't too much work.
_________________
"Don't you think that if Microsoft actually had some really foolproof patent, they'd just tell us and go, 'nyaah, nyaah, nyaah!'" -Linux Torvalds
Back to top
View user's profile Send private message
Nephren-Ka
n00b
n00b


Joined: 10 Jun 2002
Posts: 63
Location: Melbourne, Australia

PostPosted: Mon Jan 30, 2006 5:53 pm    Post subject: Reply with quote

CoffeeBuzz wrote:
Hum wrote:
hopefully this copy/pastes ok :)
tk-8.5.0-configure.patch
Code:
--- unixold/configurebak        2006-01-18 21:27:37.000000000 -
+++ unix/configure      2006-01-18 21:27:44.000000000 -0400
@@ -4253,7 +4253,7 @@
            # results, and the version is kept in special file)

            if test -r /etc/.relid -a "X`uname -n`" = "X`uname
-               system=MP-RAS-`awk '{print }' /etc/.relid'`
+               system=MP-RAS-`awk '{print }' /etc/.relid`
            fi
            if test "`uname -s`" = "AIX" ; then
                system=AIX-`uname -v`.`uname -r`



ebuild pastes fine but i'll be damned if i can EVER get a patch to copy/paste properly and work... I always have to make my own patch... anyone toss a hand? I tried the cat > blah.patch trick and many others... emacs, nano (dont use vim)... notta.


Are you guys all pasting into a terminal window? It has never failed to work for me, just opening up nano in a blank term and wheel-click pasting it into the file. This is for patches, or for ebuilds.
Back to top
View user's profile Send private message
Noyan
Apprentice
Apprentice


Joined: 24 Mar 2005
Posts: 212

PostPosted: Mon Jan 30, 2006 7:38 pm    Post subject: Reply with quote

cat empty terminal 8 different editors and at last i wanted my friends to copy paste for me (4 friends)

and vim still shows syntax error


Why dont u upload this ebuilds and patches?As u see all users here has syntax error...
Back to top
View user's profile Send private message
zietbukuel
l33t
l33t


Joined: 30 Dec 2005
Posts: 606
Location: /dev/peru/lima

PostPosted: Thu Feb 16, 2006 7:00 pm    Post subject: Reply with quote

I've got this:

Code:
Application initialization failed: this isn't a Tk applicationunknown color name "Black"
Error in startup script: this isn't a Tk applicationunknown color name "Black"
    (default value for "-highlightcolor" in widget ".")
    invoked from within
"load /usr/lib/tk8.5/../libtk8.5.so Tk"
    ("package ifneeded" script)
    invoked from within
"package require Tk"
    (file "/usr/bin/amsn" line 46)


This was after I installed xorg-7.0 :?
_________________
AMD FX 8350 8-core CPU
16GB Corsair Vengeance DDR3 RAM
ASUS M5A97 Motherboard
1TB (Gentoo) + 500GB (Windows 7 for games) HDDs
Nvidia 550 GTX Ti 1Gb Ram DDR5
Cooler Master CM690 Case
Back to top
View user's profile Send private message
Hum
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2005
Posts: 116
Location: Canada

PostPosted: Fri Feb 17, 2006 6:57 am    Post subject: Reply with quote

zietbukuel wrote:
I've got this:

Code:
Application initialization failed: this isn't a Tk applicationunknown color name "Black"
Error in startup script: this isn't a Tk applicationunknown color name "Black"
    (default value for "-highlightcolor" in widget ".")
    invoked from within
"load /usr/lib/tk8.5/../libtk8.5.so Tk"
    ("package ifneeded" script)
    invoked from within
"package require Tk"
    (file "/usr/bin/amsn" line 46)


This was after I installed xorg-7.0 :?


https://forums.gentoo.org/viewtopic-t-420200-highlight-rgb+txt.html
Back to top
View user's profile Send private message
zietbukuel
l33t
l33t


Joined: 30 Dec 2005
Posts: 606
Location: /dev/peru/lima

PostPosted: Sat Feb 18, 2006 6:33 pm    Post subject: Reply with quote

Problem fixed, now amsn starts. But i have a new peoblem... i cant open more than one conversation using tabs. if i open a conversation myself then amsn crashes/freezes but when someone else talks to me everything is ok :?
_________________
AMD FX 8350 8-core CPU
16GB Corsair Vengeance DDR3 RAM
ASUS M5A97 Motherboard
1TB (Gentoo) + 500GB (Windows 7 for games) HDDs
Nvidia 550 GTX Ti 1Gb Ram DDR5
Cooler Master CM690 Case
Back to top
View user's profile Send private message
Dikkiedik
Guru
Guru


Joined: 04 Oct 2004
Posts: 406
Location: Netherlands

PostPosted: Sun Feb 19, 2006 1:56 pm    Post subject: Reply with quote

While trying to compile TK using this howto I get the following error:

Code:


/lib   --build=i386-pc-linux-gnu --enable-xft
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:
checking for Tcl configuration... found /usr/lib/tclConfig.sh
checking for existence of /usr/lib/tclConfig.sh... loading
configure: error: /usr/lib/tclConfig.sh is for Tcl .
Tk 8.5a3 needs Tcl 8.5.
Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.5.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/tk-8.5.0/work/tk8.5a3/unix/config.log

!!! ERROR: dev-lang/tk-8.5.0 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile
  tk-8.5.0.ebuild, line 55:   Called econf 'compile'

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


Could anybody help me with this?
_________________
Calling atheism a religion, is like calling bald a haircolour.
Back to top
View user's profile Send private message
Dikkiedik
Guru
Guru


Joined: 04 Oct 2004
Posts: 406
Location: Netherlands

PostPosted: Sun Feb 19, 2006 6:19 pm    Post subject: Reply with quote

The file : tclConfig.sh seems to be empty.

So, that may be the problem.

How do I fix this?
_________________
Calling atheism a religion, is like calling bald a haircolour.
Back to top
View user's profile Send private message
Dikkiedik
Guru
Guru


Joined: 04 Oct 2004
Posts: 406
Location: Netherlands

PostPosted: Sun Feb 19, 2006 7:54 pm    Post subject: Reply with quote

If you get the same error as I have try the tcl-8.5a1 sources instead of tcl-8.5a3,

I edited the ebuild so it would download those, and it worked for me.

Strugled with it for 2 days but finaly figured it out.
_________________
Calling atheism a religion, is like calling bald a haircolour.
Back to top
View user's profile Send private message
Dikkiedik
Guru
Guru


Joined: 04 Oct 2004
Posts: 406
Location: Netherlands

PostPosted: Sun Feb 19, 2006 9:11 pm    Post subject: Reply with quote

These are the adapted ebuilds that worked for me:

tcl-8.5.0.ebuild
Code:

# Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.5.0.ebuild,v 1.6 2005/05/09 17:35:46 gustavoz Exp $
 
 inherit eutils
 
 DESCRIPTION="Tool Command Language"
 HOMEPAGE="http://dev.scriptics.com/software/tcltk/tcl8.5a1-src.tar.gz"
 SRC_URI="ftp://ftp.tcl.tk/pub/tcl/tcl8_5/"
 #SRC_URI="http://surfnet.dl.sourceforge.net/sourceforge/tcl/tcl8.5a3-src.tar.gz"
 #SRC_URI="mirror://sourceforge/tcl/tcl8.5a3-src.tar.gz"
 #SRC_URI="http://prdownloads.sourceforge.net/tcl/tcl8.5a3-src.tar.gz"
 
 
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~arm ~hppa ia64 ~mips ~ppc ~ppc64 ~s390 ~sh sparc x86"
 IUSE="threads"
 
 DEPEND="virtual/libc"
 
 S=${WORKDIR}/${PN}8.5a3
 
 pkg_setup() {
    if use threads
    then
       ewarn ""
       ewarn "PLEASE NOTE: You are compiling ${P} with"
       ewarn "threading enabled."
       ewarn "Threading is not supported by all applications"
       ewarn "that compile against tcl. You use threading at"
       ewarn "your own discretion."
       ewarn ""
       epause 5
    fi
 }
 
 src_unpack() {
    unpack ${A}
    cd ${S}
    #epatch ${FILESDIR}/${PN}-8.4.6-multilib.patch
 }
 
 src_compile() {
    local local_config_use=""
 
    if use threads
    then
       local_config_use="--enable-threads"
    fi
 
    cd ${S}/unix
    econf ${local_config_use} || die
    emake CFLAGS="${CFLAGS}" || die
 }
 
 src_install() {
    #short version number
    local v1
    v1=${PV%.*}
 
    cd ${S}/unix
    S= make INSTALL_ROOT=${D} MAN_INSTALL_DIR=${D}/usr/share/man install || die
 
    # fix the tclConfig.sh to eliminate refs to the build directory
    sed -e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L${ROOT}/usr/$(get_libdir)," \
       -e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='${ROOT}/usr/$(get_libdir)/tcl${v1}/include'," \
       -e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L${ROOT}/usr/$(get_libdir)," \
       -e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='${ROOT}/usr/$(get_libdir)," \
       -e "s,^TCL_LIB_FILE='libtcl8.4..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl8.4\$\{TCL_DBGX\}.so\"," \
       -e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/$(get_libdir)'," \
       -e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/$(get_libdir)'," \
       ${D}/usr/$(get_libdir)/tclConfig.sh > ${D}/usr/$(get_libdir)/tclConfig.sh.new
    mv ${D}/usr/$(get_libdir)/tclConfig.sh.new ${D}/usr/$(get_libdir)/tclConfig.sh
 
    # install private headers
    dodir /usr/$(get_libdir)/tcl${v1}/include/unix
    install -c -m0644 ${S}/unix/*.h ${D}/usr/$(get_libdir)/tcl${v1}/include/unix
    dodir /usr/$(get_libdir)/tcl${v1}/include/generic
    install -c -m0644 ${S}/generic/*.h ${D}/usr/$(get_libdir)/tcl${v1}/include/generic
    rm -f ${D}/usr/$(get_libdir)/tcl${v1}/include/generic/tcl.h
    rm -f ${D}/usr/$(get_libdir)/tcl${v1}/include/generic/tclDecls.h
    rm -f ${D}/usr/$(get_libdir)/tcl${v1}/include/generic/tclPlatDecls.h
 
    # install symlink for libraries
    dosym /usr/$(get_libdir)/libtcl${v1}.so /usr/$(get_libdir)/libtcl.so
    dosym /usr/$(get_libdir)/libtclstub${v1}.a /usr/$(get_libdir)/libtclstub.a
 
    ln -sf tclsh${v1} ${D}/usr/bin/tclsh
 
    cd ${S}
    dodoc README changes license.terms
 }
 
 pkg_postinst() {
    ewarn
    ewarn "If you're upgrading from tcl-8.3, you must recompile the other"
    ewarn "packages on your system that link with tcl after the upgrade"
    ewarn "completes.  To perform this action, please run revdep-rebuild"
    ewarn "in package app-portage/gentoolkit."
    ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
    ewarn "upgrade them before this recompilation, too,"
    ewarn
    ewarn ${S}
 }


tk-8.5.0.ebuild
Code:

 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/dev-lang/tk/tk-8.5.0.ebuild,v 1.5 2005/05/09 17:37:33 gustavoz Exp $
 
 inherit eutils
 
 DESCRIPTION="Tk Widget Set"
 HOMEPAGE="http://dev.scriptics.com/software/tcltk/"
 SRC_URI="http://heanet.dl.sourceforge.net/sourceforge/tcl/tk8.5a3-src.tar.gz"
 #SRC_URI="mirror://sourceforge/tcl/tk8.5a3-src.tar.gz"
 
 
 
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~arm ~hppa ia64 ~mips ~ppc ~ppc64 sparc x86"
 IUSE="threads"
 
 DEPEND=">=sys-apps/sed-4.0.5
    >=sys-apps/portage-2.0.47-r10
    virtual/x11
    =dev-lang/tcl-${PV}*"
 
 S=${WORKDIR}/${PN}8.5a3
 
 pkg_setup() {
    if use threads
    then
       ewarn ""
       ewarn "PLEASE NOTE: You are compiling ${P} with"
       ewarn "threading enabled."
       ewarn "Threading is not supported by all applications"
       ewarn "that compile against tcl. You use threading at"
       ewarn "your own discretion."
       ewarn ""
       epause 5
    fi
 }
 
 src_unpack() {
    unpack ${A}
    cd ${S}
    #epatch ${FILESDIR}/remove-control-v-${PV}.diff || die
    #epatch ${FILESDIR}/${P}-man.patch || die
 }
 
 src_compile() {
    cd ${S}/unix
 
    local local_config_use=""
 
    if use threads
    then
       local_config_use="--enable-threads"
    fi
 
    econf \
       --with-tcl=/usr/$(get_libdir) \
       ${local_config_use} || die
 
    emake CFLAGS="${CFLAGS}" || die
 }
 
 src_install() {
    #short version number
    local v1
    v1=${PV%.*}
 
    cd ${S}/unix
    #make INSTALL_ROOT=${D} MAN_INSTALL_DIR=${D}/usr/share/man install || die
    S= make INSTALL_ROOT=${D} install || die
 
    # fix the tkConfig.sh to eliminate refs to the build directory
    sed -i \
       -e "s,^\(TK_BUILD_LIB_SPEC='-L\)${S}/unix,\1/usr/$(get_libdir)," \
       -e "s,^\(TK_SRC_DIR='\)${S}',\1/usr/$(get_libdir)/tk${v1}/include'," \
       -e "s,^\(TK_BUILD_STUB_LIB_SPEC='-L\)${S}/unix,\1/usr/$(get_libdir)," \
       -e "s,^\(TK_BUILD_STUB_LIB_PATH='\)${S}/unix,\1/usr/$(get_libdir)," \
       -e "s,^\(TK_CC_SEARCH_FLAGS='.*\)',\1:/usr/$(get_libdir)'," \
       -e "s,^\(TK_LD_SEARCH_FLAGS='.*\)',\1:/usr/$(get_libdir)'," \
       ${D}/usr/lib/tkConfig.sh
 
    # install private headers
    dodir /usr/$(get_libdir)/tk${v1}/include/unix
    install -c -m0644 ${S}/unix/*.h ${D}/usr/$(get_libdir)/tk${v1}/include/unix
    dodir /usr/$(get_libdir)/tk${v1}/include/generic
    install -c -m0644 ${S}/generic/*.h ${D}/usr/$(get_libdir)/tk${v1}/include/generic
    rm -f ${D}/usr/$(get_libdir)/tk${v1}/include/generic/tk.h
    rm -f ${D}/usr/$(get_libdir)/tk${v1}/include/generic/tkDecls.h
    rm -f ${D}/usr/$(get_libdir)/tk${v1}/include/generic/tkPlatDecls.h
 
    # install symlink for libraries
    #dosym /usr/$(get_libdir)/libtk${v1}.a /usr/$(get_libdir)/libtk.a
    dosym /usr/$(get_libdir)/libtk${v1}.so /usr/$(get_libdir)/libtk.so
    dosym /usr/$(get_libdir)/libtkstub${v1}.a /usr/$(get_libdir)/libtkstub.a
 
    ln -sf wish${v1} ${D}/usr/bin/wish
 
    cd ${S}
    dodoc README changes license.terms
 }

_________________
Calling atheism a religion, is like calling bald a haircolour.
Back to top
View user's profile Send private message
aVirulence
Apprentice
Apprentice


Joined: 07 Feb 2006
Posts: 170

PostPosted: Tue Feb 21, 2006 4:42 pm    Post subject: Reply with quote

Kuhndog86 wrote:
The cat trick didn't work for me either...perhaps the patches could be submitted to bugzilla if that isn't too much work.


Yeah, that would be great. It doesn't work for me neither..

Thanks
Back to top
View user's profile Send private message
HTS
Guru
Guru


Joined: 20 Feb 2006
Posts: 410
Location: Bristol, UK

PostPosted: Sat Mar 04, 2006 3:38 pm    Post subject: Reply with quote

Working great dude, Thanks !
Back to top
View user's profile Send private message
Dikkiedik
Guru
Guru


Joined: 04 Oct 2004
Posts: 406
Location: Netherlands

PostPosted: Sun Mar 12, 2006 9:59 pm    Post subject: Reply with quote

I've figured out a workaround for the empty config.sh file.. comment out the part in the tcl ebuild which say :

"fix the tclConfig.sh to eliminate refs to the build directory"

and then simoltaniously build tcl and tk. ^_^
_________________
Calling atheism a religion, is like calling bald a haircolour.
Back to top
View user's profile Send private message
mettallicat
n00b
n00b


Joined: 20 Aug 2003
Posts: 19
Location: Portugal -> Norte -> Felgueiras

PostPosted: Mon Mar 20, 2006 1:35 am    Post subject: Reply with quote

i've got this :'(

Code:

darkmobile tcl # ebuild tcl-8.5.0.ebuild digest
>>> Generating the digest file...
<<<
Traceback (most recent call last):
  File "/usr/sbin/ebuild", line 81, in ?
    a = portage.doebuild(ebuild, arg, portage.root, tmpsettings, debug=debug, cleanup=("noauto" not in portage.features), tree=mytree)
  File "/usr/lib/portage/pym/portage.py", line 2866, in doebuild
    return (not digestgen(aalist,mysettings,overwrite=1))
  File "/usr/lib/portage/pym/portage.py", line 2127, in digestgen
    mydigests=digestCreate(myarchives, basedir, oldDigest=myolddigest)
  File "/usr/lib/portage/pym/portage.py", line 2053, in digestCreate
    mydigests[x] = portage_checksum.perform_multiple_checksums(myfile, hashes=portage_const.MANIFEST1_HASH_FUNCTIONS)
  File "/usr/lib/portage/pym/portage_checksum.py", line 158, in perform_multiple_checksums
    rVal[x] = perform_checksum(filename, hashfunc_map[x], calc_prelink)[0]
  File "/usr/lib/portage/pym/portage_checksum.py", line 140, in perform_checksum
    raise e
IOError: [Errno 21] Is a directory: '/usr/portage/distfiles'

_________________
A Litlle Black Cat
Back to top
View user's profile Send private message
mahound
n00b
n00b


Joined: 20 Oct 2005
Posts: 34

PostPosted: Sun Mar 26, 2006 12:32 pm    Post subject: Reply with quote

bakkus wrote:
Unfortunately, it doesn't really work...
I removed my existing ebuild, entered the new one, digested and tried emerging.
This is what happened:
Code:

athlon64 tcl # emerge tcl
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-lang/tcl-8.5.0 to /
>>> checksums files   ;-) tcl-8.5.0.ebuild
>>> checksums files   ;-) files/tcl-8.5.0-configure.patch
>>> checksums files   ;-) files/digest-tcl-8.5.0
>>> checksums src_uri ;-) tcl8.5a3-src.tar.gz
 *
 * PLEASE NOTE: You are compiling tcl-8.5.0 with
 * threading enabled.
 * Threading is not supported by all applications
 * that compile against tcl. You use threading at
 * your own discretion.
 *
>>> Unpacking source...
>>> Unpacking tcl8.5a3-src.tar.gz to /var/tmp/portage/tcl-8.5.0/work
 * Applying tcl-8.5.0-configure.patch ...

 * Failed Patch: tcl-8.5.0-configure.patch !
 *  ( /usr/local/portage/dev-lang/tcl/files/tcl-8.5.0-configure.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/tcl-8.5.0/temp/tcl-8.5.0-configure.patch-30928.out


!!! ERROR: dev-lang/tcl-8.5.0 failed.
!!! Function epatch, Line 350, Exitcode 0
!!! Failed Patch: tcl-8.5.0-configure.patch!
!!! If you need support, post the topmost build error, NOT this status message.

The contents of /var/tmp/portage/tcl-8.5.0/temp/tcl-8.5.0-configure.patch-30928.out:
Code:
athlon64 tcl # cat /var/tmp/portage/tcl-8.5.0/temp/tcl-8.5.0-configure.patch-30928.out
***** tcl-8.5.0-configure.patch *****

=====================================

PATCH COMMAND:  patch -p0 -g0 --no-backup-if-mismatch < /usr/local/portage/dev-lang/tcl/files/tcl-8.5.0-configure.patch

=====================================
patching file unix/configure
Hunk #1 FAILED at 6406.
Hunk #2 FAILED at 15255.
2 out of 2 hunks FAILED -- saving rejects to file unix/configure.rej
=====================================

PATCH COMMAND:  patch -p1 -g0 --no-backup-if-mismatch < /usr/local/portage/dev-lang/tcl/files/tcl-8.5.0-configure.patch

=====================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- unix/configure   2006-01-11 18:56:23.000000000 -0400
|+++ unix/configureback   2006-01-11 18:58:58.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
=====================================

PATCH COMMAND:  patch -p2 -g0 --no-backup-if-mismatch < /usr/local/portage/dev-lang/tcl/files/tcl-8.5.0-configure.patch

=====================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- unix/configure   2006-01-11 18:56:23.000000000 -0400
|+++ unix/configureback   2006-01-11 18:58:58.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
=====================================

PATCH COMMAND:  patch -p3 -g0 --no-backup-if-mismatch < /usr/local/portage/dev-lang/tcl/files/tcl-8.5.0-configure.patch

=====================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- unix/configure   2006-01-11 18:56:23.000000000 -0400
|+++ unix/configureback   2006-01-11 18:58:58.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
=====================================

PATCH COMMAND:  patch -p4 -g0 --no-backup-if-mismatch < /usr/local/portage/dev-lang/tcl/files/tcl-8.5.0-configure.patch

=====================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- unix/configure   2006-01-11 18:56:23.000000000 -0400
|+++ unix/configureback   2006-01-11 18:58:58.000000000 -0400
--------------------------
No file to patch.  Skipping patch.
2 out of 2 hunks ignored


Well... same happened to me. I made a patch from scratch:

Code:
--- unix/configure      2005-06-04 22:07:14.000000000 +0100
+++ unix/configure.new  2006-03-26 13:22:39.000000000 +0100
@@ -6406,7 +6406,7 @@
            # results, and the version is kept in special file).

            if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
-               system=MP-RAS-`awk '{print }' /etc/.relid'`
+               system=MP-RAS-`awk '{print }' /etc/.relid`
            fi
            if test "`uname -s`" = "AIX" ; then
                system=AIX-`uname -v`.`uname -r`
@@ -15255,7 +15255,7 @@
            # results, and the version is kept in special file).

            if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
-               system=MP-RAS-`awk '{print }' /etc/.relid'`
+               system=MP-RAS-`awk '{print }' /etc/.relid`
            fi
            if test "`uname -s`" = "AIX" ; then
                system=AIX-`uname -v`.`uname -r`


And it works... (no idea why... patches look alike)...

EDIT: Well, it looks as a copy/paste problem...
Back to top
View user's profile Send private message
PiRmD
n00b
n00b


Joined: 22 Apr 2005
Posts: 49
Location: Daya Bay NPS-Shenzhen-China

PostPosted: Sun Apr 02, 2006 11:44 pm    Post subject: Reply with quote

Thanks so much it works like a charm here !

A little question anyway, I read here http://amsn.sourceforge.net/forums/viewtopic.php?t=481 that this new version of Tcl/Tk should also allow the use of SCIM to input Chinese. I still can not succed in having SCIM working. Have some of you tried it?

As a side note I also cannot input French letters like ê or ë (I get a ^e and "e). Is it a misconfiguration of my own or a limitation of Tcl/Tk?
Back to top
View user's profile Send private message
HTS
Guru
Guru


Joined: 20 Feb 2006
Posts: 410
Location: Bristol, UK

PostPosted: Thu Jun 15, 2006 5:50 pm    Post subject: Reply with quote

Dudes, your patches look complicated and copy/paste often messes up the patches...
So I have hosted ebuilds that work directly with bash 3.1.
The modification was just one line in each according to what I found in Bugzilla,
Worked here but I've done so many things before... I'm not sure they'll work for everyone, give me some feedback please!

Thanks to truc for his comment on tabulations.

Here are the ebuilds:
tcl-8.5.0.ebuild
tk-8.5.0.ebuild


Last edited by HTS on Sun Jun 18, 2006 10:04 pm; edited 2 times in total
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Sun Jun 18, 2006 3:40 pm    Post subject: Reply with quote

Code:
emerge -DNutav world

These are the packages that would be merged, in reverse order:

Calculating world dependencies... done!
[nomerge      ] net-im/amsn-0.95-r2  USE="gnome imlib -kde -xmms"
[ebuild     U ]  dev-lang/tk-8.5.0 [8.4.13] USE="-threads" 0 kB [2]
[ebuild  N    ]   virtual/x11-7.0-r2  0 kB
[ebuild  N    ]    x11-misc/gccmakedep-1.0.2  USE="-debug" 68 kB
[ebuild  N    ]    x11-libs/liboldX-1.0.1  USE="-debug" 210 kB
[ebuild  N    ]    x11-libs/libXTrap-1.0.0  USE="-debug" 214 kB
[ebuild  N    ]    x11-libs/libXevie-1.0.1  USE="-debug" 219 kB
[ebuild  N    ]    x11-themes/xcursor-themes-1.0.1  USE="-debug" 2,204 kB
[ebuild  N    ]     x11-apps/xcursorgen-1.0.1  USE="-debug" 80 kB
[ebuild  N    ]    x11-apps/xsetroot-1.0.1  USE="-debug" 75 kB
[ebuild  N    ]    x11-libs/libXprintAppUtil-1.0.1  USE="-debug" 203 kB
[ebuild  N    ]     x11-libs/libXprintUtil-1.0.1  USE="-debug" 218 kB
[ebuild  N    ]    x11-libs/libXvMC-1.0.2  USE="-debug" 224 kB
[ebuild  N    ]    x11-apps/xdm-1.0.4  USE="xprint -debug -ipv6 -pam" 354 kB
[ebuild  N    ]    x11-themes/gentoo-xcursors-0.3.1  1,168 kB
[ebuild     U ]  dev-lang/tcl-8.5.0 [8.4.13] USE="-threads" 0 kB [2]

Total size of downloads: 5,245 kB
Portage overlays:
 [1] /usr/local/overlays/portage
 [2] /usr/local/overlays/test

Would you like to merge these packages? [Yes/No]


Why does it want to install virtual/x11-7.0-r2 and then all it dependencies! I don't want that! Anything I can do?


Last edited by truc on Sun Jun 18, 2006 10:28 pm; edited 3 times in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum