View previous topic :: View next topic |
Author |
Message |
Nephren-Ka n00b
Joined: 10 Jun 2002 Posts: 63 Location: Melbourne, Australia
|
Posted: Fri Dec 30, 2005 4:20 am Post subject: Get aMSN to use anti-aliased fonts (with ebuilds) |
|
|
Hi all,
With the official release of aMSN 0.95, I'm sure many of you would like to have the benefit of using AA'd fonts in it as well. As you may or may not know, this requires using a development version of TK/TCL (8.5) that isn't in portage yet. I've seen many threads about using CVS snapshots to do this manually, but I figured that some people might want to do this an easier way (including myself). After some searching, I've found some modified ebuilds that work for installing TK/TCL8.5a3, and they are as follows:
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="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
}
|
and 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/"
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}
}
|
These both need to first be downloaded to your portage overlay. Most of you will probably have one in /usr/local/portage. If you do not have this set up, you can define this in your /etc/make.conf as so:
Code: |
PORTDIR_OVERLAY="/usr/local/portage"
|
You may want to read up a bit more on portage overlays here: http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds
To continue, you will need to create some directories in there to house these ebuilds:
Code: |
mkdir /usr/local/portage/dev-lang/
mkdir /usr/local/portage/dev-lang/tcl
mkdir /usr/local/portage/dev-lang/tk
|
Put the TCL and TK ebuilds in their respective directories (named as above, tcl-8.5.0.ebuild and tk-8.5.0.ebuild) We need to create the digests for these ebuilds, so do as follows for each:
Code: |
ebuild /usr/local/portage/dev-lang/tcl/tcl-8.5.0.ebuild digest
ebuild /usr/local/portage/dev-lang/tk/tk-8.5.0.ebuild digest
|
Then, we simply need to emerage these, along with (re)emerging aMSN. Note that we are passing an extra paramater to enable XFT support (this will enable us to use AA'd fonts through XFT):
Code: |
EXTRA_ECONF="--enable-xft" emerge -av tcl tk amsn
|
Now, once those are done, you can load up the new aMSN (you may have to remove your old ~/.amsn first), you can now go into tools/preferences/appearance/choose font, and choose a nice font to use.
That's it, enjoy! |
|
Back to top |
|
|
agentwd40 n00b
Joined: 14 Oct 2002 Posts: 63
|
Posted: Mon Jan 02, 2006 7:02 pm Post subject: |
|
|
works great thanks! |
|
Back to top |
|
|
Nephren-Ka n00b
Joined: 10 Jun 2002 Posts: 63 Location: Melbourne, Australia
|
Posted: Mon Jan 02, 2006 7:10 pm Post subject: |
|
|
agentwd40 wrote: | works great thanks! |
Glad to hear it |
|
Back to top |
|
|
voidzero Bodhisattva
Joined: 21 Jul 2002 Posts: 265 Location: Grnn
|
Posted: Mon Jan 02, 2006 9:01 pm Post subject: |
|
|
Yeah man, you just made my day!!! |
|
Back to top |
|
|
mrcs Tux's lil' helper
Joined: 10 Oct 2003 Posts: 137
|
Posted: Fri Jan 06, 2006 10:40 am Post subject: |
|
|
Hi,
Just a heads up: These ebuilds fail if you have bash-3.1, see https://bugs.gentoo.org/show_bug.cgi?id=117744 (same problem, different version).
Haven't tried to apply the path to these yet though, I downgraded bash instead. Will try though!
EDIT: Forgot to thank you for these!
UPDATE: Patch works wonders for me with both ebuilds. |
|
Back to top |
|
|
Nephren-Ka n00b
Joined: 10 Jun 2002 Posts: 63 Location: Melbourne, Australia
|
Posted: Fri Jan 06, 2006 11:48 pm Post subject: |
|
|
kireru wrote: | Hi,
Just a heads up: These ebuilds fail if you have bash-3.1, see https://bugs.gentoo.org/show_bug.cgi?id=117744 (same problem, different version).
Haven't tried to apply the path to these yet though, I downgraded bash instead. Will try though!
EDIT: Forgot to thank you for these!
UPDATE: Patch works wonders for me with both ebuilds. |
I had read about that bash 3.1 problem, thanks for the info. I thought that downgrading bash to 3.0 fixed the problem? (I don't know, I use zsh). Glad it worked for you! |
|
Back to top |
|
|
mrcs Tux's lil' helper
Joined: 10 Oct 2003 Posts: 137
|
Posted: Sat Jan 07, 2006 1:03 am Post subject: |
|
|
Yup, downgrading bash solves the problem, as does the patch on bugzilla. So I guess it's up to the user how he/she wants to tackle the problem! |
|
Back to top |
|
|
Aries-Belgium l33t
Joined: 08 Jul 2005 Posts: 730 Location: Willebroek, Belgium
|
Posted: Sat Jan 07, 2006 3:46 pm Post subject: |
|
|
Hi there,
when I try to emerge tcl-8.5.0 it hangs here:
Code: | Installing and cross-linking command (.n) docs |
it doesn't do anything any more. I've waited for over 30 minutes now and still he doesn't go on.
Is this normal?
Can't I just disable docs from creating? There aren't any USE flags to do this with the newer tcl and tk. |
|
Back to top |
|
|
mvr_rennes Apprentice
Joined: 23 Oct 2002 Posts: 155
|
Posted: Sat Jan 07, 2006 6:50 pm Post subject: |
|
|
Aries-Belgium wrote: | Hi there,
when I try to emerge tcl-8.5.0 it hangs here:
Code: | Installing and cross-linking command (.n) docs |
it doesn't do anything any more. I've waited for over 30 minutes now and still he doesn't go on.
Is this normal?
Can't I just disable docs from creating? There aren't any USE flags to do this with the newer tcl and tk. |
I'm having the same problem here... any tips?
Cheers,
M |
|
Back to top |
|
|
kadu Apprentice
Joined: 09 Oct 2005 Posts: 267
|
Posted: Sat Jan 07, 2006 6:54 pm Post subject: |
|
|
good howto _________________ :* |
|
Back to top |
|
|
Nephren-Ka n00b
Joined: 10 Jun 2002 Posts: 63 Location: Melbourne, Australia
|
Posted: Sun Jan 08, 2006 2:40 am Post subject: |
|
|
Aries-Belgium wrote: | Hi there,
when I try to emerge tcl-8.5.0 it hangs here:
Code: | Installing and cross-linking command (.n) docs |
it doesn't do anything any more. I've waited for over 30 minutes now and still he doesn't go on.
Is this normal?
Can't I just disable docs from creating? There aren't any USE flags to do this with the newer tcl and tk. |
I have no idea why it's freezing at this stage, to be honest. The following is all that that is doing:
Code: |
@echo "Installing and cross-linking command (.n) docs";
@for i in $(TOP_DIR)/doc/*.n; do \
$(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MANN_INSTALL_DIR); \
done
|
It's simply installing the manpages into the gentoo-standard manpage dir that we specify earlier in the ebuild
Code: | MAN_INSTALL_DIR=${D}/usr/share/man install |
Tk has to go through the same process. Did Tk emerge OK for you? Can you paste your 'emerge --info' output for me please? |
|
Back to top |
|
|
Aries-Belgium l33t
Joined: 08 Jul 2005 Posts: 730 Location: Willebroek, Belgium
|
Posted: Sun Jan 08, 2006 4:10 am Post subject: |
|
|
Nephren-Ka wrote: |
I have no idea why it's freezing at this stage, to be honest. The following is all that that is doing:
Code: |
@echo "Installing and cross-linking command (.n) docs";
@for i in $(TOP_DIR)/doc/*.n; do \
$(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MANN_INSTALL_DIR); \
done
|
|
I don't think it hangs while doing that, because I allready commented the manpage-lines in the Makefile.in and it also hangs. So I think the problem is after the install of the man pages.
Nephren-Ka wrote: |
Tk has to go through the same process. Did Tk emerge OK for you? Can you paste your 'emerge --info' output for me please? |
I haven't tried the tk installation yet, because I need to emerge tcl first.
This is my emerge --info:
Code: | Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD-K7(tm) Processor
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
dev-lang/python: 2.3.4-r1, 2.4.2
sys-apps/sandbox: 1.2.13
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Wall -march=athlon-tbird -O2 -pipe -fforce-addr -fno-strength-reduce -funroll-loops -fexpensive-optimizations -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4 -mmmx -m32"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac alsa apache2 apm audiofile avi berkdb bitmap-fonts browserplugin bzip2 cdr cgi cli crypt cups curl dba debug divx4linux dvd dvdr emboss encode ethereal exif expat flash foomaticdb fortran ftp gd gdbm gif glut gpm gstreamer gtk gtk2 hal imagemagick imlib inifile java javascript jpeg junit lcms libg++ libwww lm_sensors mad memlimit mhash mikmod mime ming mmx mng motif moznocompose moznoirc moznomail mp3 mpeg msn mysql mysqli nas ncurses nls odbc ogg oggvorbis opengl oss pam pcre pdflib perl php png ppds python qt quicktime rar readline ruby samba sdl server session shorten sndfile sockets spell spl sqlite ssl svg svga tcltk tcpd threads tidy tiff tokenizer truetype truetype-fonts type1-fonts udev usb v4l vcd verbose vhosts videos vorbis win32codecs wmf wxwindows xface xine xinerama xml xml2 xmms xprint xv xvid zip zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS |
|
|
Back to top |
|
|
Nephren-Ka n00b
Joined: 10 Jun 2002 Posts: 63 Location: Melbourne, Australia
|
Posted: Sun Jan 08, 2006 6:35 am Post subject: |
|
|
Aries-Belgium wrote: | Nephren-Ka wrote: |
I have no idea why it's freezing at this stage, to be honest. The following is all that that is doing:
Code: |
@echo "Installing and cross-linking command (.n) docs";
@for i in $(TOP_DIR)/doc/*.n; do \
$(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MANN_INSTALL_DIR); \
done
|
|
I don't think it hangs while doing that, because I allready commented the manpage-lines in the Makefile.in and it also hangs. So I think the problem is after the install of the man pages.
Nephren-Ka wrote: |
Tk has to go through the same process. Did Tk emerge OK for you? Can you paste your 'emerge --info' output for me please? |
I haven't tried the tk installation yet, because I need to emerge tcl first.
This is my emerge --info:
Code: | Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD-K7(tm) Processor
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
dev-lang/python: 2.3.4-r1, 2.4.2
sys-apps/sandbox: 1.2.13
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Wall -march=athlon-tbird -O2 -pipe -fforce-addr -fno-strength-reduce -funroll-loops -fexpensive-optimizations -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4 -mmmx -m32"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac alsa apache2 apm audiofile avi berkdb bitmap-fonts browserplugin bzip2 cdr cgi cli crypt cups curl dba debug divx4linux dvd dvdr emboss encode ethereal exif expat flash foomaticdb fortran ftp gd gdbm gif glut gpm gstreamer gtk gtk2 hal imagemagick imlib inifile java javascript jpeg junit lcms libg++ libwww lm_sensors mad memlimit mhash mikmod mime ming mmx mng motif moznocompose moznoirc moznomail mp3 mpeg msn mysql mysqli nas ncurses nls odbc ogg oggvorbis opengl oss pam pcre pdflib perl php png ppds python qt quicktime rar readline ruby samba sdl server session shorten sndfile sockets spell spl sqlite ssl svg svga tcltk tcpd threads tidy tiff tokenizer truetype truetype-fonts type1-fonts udev usb v4l vcd verbose vhosts videos vorbis win32codecs wmf wxwindows xface xine xinerama xml xml2 xmms xprint xv xvid zip zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS |
|
Well, first off...how did you make the changes to the makefile? Did you make the change to the Makefile.im and then re-tar the package, move it to your distfiles dir, and create a new digest? If so, I dont know why it would still try to install the manpages if it's commented out.
Secondly...this may well not have anything to do with it, but you have some insane CFLAGS there, and I've seen many instances where some cause problems. Have you thought of maybe simplifying those a bit? (I doubt you'll get much if any optimization from all of those extra parameters). |
|
Back to top |
|
|
Aries-Belgium l33t
Joined: 08 Jul 2005 Posts: 730 Location: Willebroek, Belgium
|
Posted: Sun Jan 08, 2006 4:46 pm Post subject: |
|
|
Nephren-Ka wrote: |
Well, first off...how did you make the changes to the makefile? Did you make the change to the Makefile.im and then re-tar the package, move it to your distfiles dir, and create a new digest? If so, I dont know why it would still try to install the manpages if it's commented out. |
Yes, I tar.gz-ed it back and put the file in the distfiles and than run a digest. It doesn't install the manpages but than he hangs right before he would install the manpages. So I think it goes wrong the step right after the manpages are installed. I don't know enough of the Makefile.in to know what's going on after that. Maybe you know ...
Nephren-Ka wrote: |
Secondly...this may well not have anything to do with it, but you have some insane CFLAGS there, and I've seen many instances where some cause problems. Have you thought of maybe simplifying those a bit? (I doubt you'll get much if any optimization from all of those extra parameters). |
I tried it with the standard cflags for my processor and still have the same problem.
[EDIT]
Can you post a screenshot of aMSN with xft enabled? I would like to see the difference ... |
|
Back to top |
|
|
Nephren-Ka n00b
Joined: 10 Jun 2002 Posts: 63 Location: Melbourne, Australia
|
Posted: Sun Jan 08, 2006 6:16 pm Post subject: |
|
|
Aries-Belgium wrote: | Nephren-Ka wrote: |
Well, first off...how did you make the changes to the makefile? Did you make the change to the Makefile.im and then re-tar the package, move it to your distfiles dir, and create a new digest? If so, I dont know why it would still try to install the manpages if it's commented out. |
Yes, I tar.gz-ed it back and put the file in the distfiles and than run a digest. It doesn't install the manpages but than he hangs right before he would install the manpages. So I think it goes wrong the step right after the manpages are installed. I don't know enough of the Makefile.in to know what's going on after that. Maybe you know ...
Nephren-Ka wrote: |
Secondly...this may well not have anything to do with it, but you have some insane CFLAGS there, and I've seen many instances where some cause problems. Have you thought of maybe simplifying those a bit? (I doubt you'll get much if any optimization from all of those extra parameters). |
I tried it with the standard cflags for my processor and still have the same problem.
[EDIT]
Can you post a screenshot of aMSN with xft enabled? I would like to see the difference ... |
Sure, you can see a screenshot of my main amsn window in this screenshot. I will take a look at the makefile and see what I can do. |
|
Back to top |
|
|
zietbukuel l33t
Joined: 30 Dec 2005 Posts: 607
|
Posted: Mon Jan 09, 2006 6:17 pm Post subject: |
|
|
Worked ok, but now im not able to open more than one conversation, because it hangs.... thanks REALLY sucks... |
|
Back to top |
|
|
mvr_rennes Apprentice
Joined: 23 Oct 2002 Posts: 155
|
Posted: Tue Jan 10, 2006 8:25 pm Post subject: |
|
|
About the hanging problem when installing TK... I've run a make install on the /var/tmp/portage/tk-8.5.0/unix dir and it
works just fine. It is likely hanging on your sed script. What is it exactly that you want to change there?
Cheers,
M |
|
Back to top |
|
|
Aries-Belgium l33t
Joined: 08 Jul 2005 Posts: 730 Location: Willebroek, Belgium
|
Posted: Wed Jan 11, 2006 1:33 am Post subject: |
|
|
mvr_rennes wrote: | About the hanging problem when installing TK... I've run a make install on the /var/tmp/portage/tk-8.5.0/unix dir and it
works just fine. It is likely hanging on your sed script. What is it exactly that you want to change there?
Cheers,
M |
I can't get tcl to emerge. And tk depends on tcl so tk doesn't want to emerge without tcl. I don't really want to mess up my system by compiling and installing it myself. I would like to see it work with the ebuild.
Could it be an outdated package? gcc or something? |
|
Back to top |
|
|
Da Fox Guru
Joined: 06 Jul 2005 Posts: 341
|
Posted: Wed Jan 11, 2006 8:18 pm Post subject: |
|
|
I just wanted to say thanks, this really is great
I had installed amsn .95 but it kept seg faulting, and I didn't know why, but it was because I also followed the old topic to get AA fonts, while the new amsn was linking with tcl/tk 8.4 _________________ "Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami
JGBE, a Java based GameBoy Emulator |
|
Back to top |
|
|
thoffmeyer Apprentice
Joined: 11 Apr 2004 Posts: 208 Location: GMT -5 Hours
|
Posted: Wed Jan 11, 2006 8:24 pm Post subject: |
|
|
I'll have to try these out, thanks! _________________ Conrad Guide, Current Maintainer
Join us on IRC
Server: irc.freenode.net
Channel: #conrad |
|
Back to top |
|
|
Hum Tux's lil' helper
Joined: 13 Oct 2005 Posts: 116 Location: Canada
|
Posted: Thu Jan 12, 2006 4:16 am Post subject: |
|
|
if you're having some problems getting tcl to compile with bash 3.1 i have generated a patch and modified the ebuild.. dump the patch in the /usr/local/portage/dev-lang/tcl/files directory. I hope i don't copy / paste this incorrectly.
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/"
SRC_URI="mirror://sourceforge/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.5.0-configure.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}
}
| call this file tcl-8.5.0-configure.patch or modify the ebuild to reflect the changes
Code: |
--- unix/configure 2006-01-11 18:56:23.000000000 -0400
+++ unix/configureback 2006-01-11 18:58:58.000000000 -0400
@@ -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`
|
|
|
Back to top |
|
|
Nephren-Ka n00b
Joined: 10 Jun 2002 Posts: 63 Location: Melbourne, Australia
|
Posted: Sat Jan 14, 2006 2:22 am Post subject: |
|
|
Hum wrote: | if you're having some problems getting tcl to compile with bash 3.1 i have generated a patch and modified the ebuild.. dump the patch in the /usr/local/portage/dev-lang/tcl/files directory. I hope i don't copy / paste this incorrectly.
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/"
SRC_URI="mirror://sourceforge/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.5.0-configure.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}
}
| call this file tcl-8.5.0-configure.patch or modify the ebuild to reflect the changes
Code: |
--- unix/configure 2006-01-11 18:56:23.000000000 -0400
+++ unix/configureback 2006-01-11 18:58:58.000000000 -0400
@@ -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`
|
|
Very nice, thanks for posting that here Hum |
|
Back to top |
|
|
bakkus n00b
Joined: 17 Dec 2002 Posts: 33
|
Posted: Sat Jan 14, 2006 6:13 am Post subject: |
|
|
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
|
|
|
Back to top |
|
|
Aries-Belgium l33t
Joined: 08 Jul 2005 Posts: 730 Location: Willebroek, Belgium
|
Posted: Sat Jan 14, 2006 7:13 pm Post subject: |
|
|
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 ... |
|
Back to top |
|
|
Da Fox Guru
Joined: 06 Jul 2005 Posts: 341
|
Posted: Sun Jan 15, 2006 4:01 pm Post subject: |
|
|
you also need to select a font that can be anti-aliased (a TTF) in your aMSN preferences, select for example "Bit Stream Vera". You need to do this for both the main app, and for conversation windows iirc _________________ "Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami
JGBE, a Java based GameBoy Emulator |
|
Back to top |
|
|
|
|
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
|
|