After python upgrade, sketch was broken so I re-emerged dev-python/Imaging ans sketch. Now sketch fails with : /usr/lib/sketch-0.6.15/Sketch/Graphics/graphics.py:1245: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up self.gc = widget.CreateGC(foreground = 0xFFFFFFFF, Traceback (most recent call last): File "/usr/bin/sketch", line 34, in ? Sketch.main.main() File "/usr/lib/sketch-0.6.15/Sketch/Base/main.py", line 148, in main run_script = options.run_script) File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 181, in __init__ geometry = geometry) File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 100, in __init__ self.init_tk(screen_name, geometry) File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 210, in init_tk geometry = geometry) File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 105, in init_tk className = self.tk_class_name) File "/usr/lib/python2.3/lib-tk/Tkinter.py", line 1565, in __init__ self.tk.wantobjects(wantobjects) AttributeError: wantobjects Looking on the net, it seems to be a known bug : http://qa.mandrakesoft.com/show_bug.cgi?id=4778 http://lists.freebsd.org/pipermail/freebsd-ports/2003-September/004781.html But the part of the project hosted at Savannah can't be accessed, since the servers are down after root compromise. Fortunately the FreeBSD patch applies finely in Gentoo : http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/ports/graphics/sketch/files/patch-Pax%3a%3apaxtkinter.c?rev=1.1&content-type=text/plain Reproducible: Always Steps to Reproduce: Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r1) ================================================================= System uname: 2.4.22-gentoo-r1 i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon -O3 -pipe" DISTDIR="/home/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://212.219.56.146/sites/www.ibiblio.org/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://194.83.57.15/sites/www.ibiblio.org/gentoo/ http://212.219.56.152/sites/www.ibiblio.org/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/ http://212.219.56.131/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/home/portage/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X X509 aalib alsa apm arts avi berkdb bonobo cdr crypt cups dga dillo directfb dv dvd encode esd faad fbcon ffmpeg foomaticdb gd gdbm ggi gif gnome gnomedb gphoto2 gpm gstreamer gtk gtk2 gtkhtml imlib java jpeg kde libg++ libwww mad matroska mikmod mmx motif mozilla mozsvg mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff transcode truetype usb wmf x86 xface xml xml2 xmms xosd xv xvid zlib"
Created attachment 21944 [details, diff] Patch for sketch 0.6.15 with python 2.3
Created attachment 21945 [details] Ebuild to apply the patch above
Oliver, where is the patch from? Is it from the sketch-devs? If not, can you please send it in parallel to the sketch-devs, because we want all patches included in gentoo to go back to the original devs.
Hello The patch comes from FreeBSD port tree, so quite similar to portage. Mandrake solved the problem using 0.6.16pre2. There's no mention of this version on the homepage, so I guess it's located on Savannah, which is closed right now.
I've added skencil-0.6.16_pre3 to the tree with KEYWORD="~x86", which is the new name of sketch. skencil works fine with latest python. For now, you have to manually unmerge sketch and merge skencil. I'll make an automatic update as soon as I'll move stencil to stable x86.
should be done now.