Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35475 - media-gfx/sketch-0.6.15 broken with python 2.3
Summary: media-gfx/sketch-0.6.15 broken with python 2.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 33372
  Show dependency tree
 
Reported: 2003-12-09 13:35 UTC by Olivier Castan
Modified: 2003-12-11 13:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for sketch 0.6.15 with python 2.3 (paxtkinter.c,909 bytes, patch)
2003-12-09 13:36 UTC, Olivier Castan
Details | Diff
Ebuild to apply the patch above (sketch-0.6.15-r1.ebuild,1.13 KB, text/plain)
2003-12-09 13:37 UTC, Olivier Castan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Castan 2003-12-09 13:35:06 UTC
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"
Comment 1 Olivier Castan 2003-12-09 13:36:27 UTC
Created attachment 21944 [details, diff]
Patch for sketch 0.6.15 with python 2.3
Comment 2 Olivier Castan 2003-12-09 13:37:18 UTC
Created attachment 21945 [details]
Ebuild to apply the patch above
Comment 3 Hanno Böck gentoo-dev 2003-12-10 04:19:42 UTC
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.
Comment 4 Olivier Castan 2003-12-10 10:31:31 UTC
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.
Comment 5 Hanno Böck gentoo-dev 2003-12-11 13:00:14 UTC
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.
Comment 6 Hanno Böck gentoo-dev 2003-12-11 13:40:04 UTC
should be done now.