Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148656 - media-gfx/graphviz-2.8-r2 fails to compile with python-2.5
Summary: media-gfx/graphviz-2.8-r2 fails to compile with python-2.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on: 148733 149064
Blocks: python-2.5
  Show dependency tree
 
Reported: 2006-09-22 08:27 UTC by Helmut Jarausch
Modified: 2007-01-07 13:33 UTC (History)
5 users (show)

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


Attachments
SWIG patch for python-2.5 (swig-python-2.5.patch,6.73 KB, patch)
2006-09-25 02:02 UTC, Helmut Jarausch
Details | Diff
Fixes on python2.5 (graphviz-2.8-python25.patch,1.23 KB, patch)
2006-09-27 16:42 UTC, Alex
Details | Diff
graphviz-2.8-r2.ebuild - includes touch to ensure swig rebuilds all components (graphviz-2.8-r2.ebuild,2.54 KB, text/plain)
2006-10-30 01:29 UTC, Mike Auty (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2006-09-22 08:27:19 UTC
emerge media-gfx/graphviz-2.8-r1
on a python-2.5 based system fails:
/bin/sh ../../libtool --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/lib/ocaml -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/python2.5      -O2 -march=i686 -pipe -c -o gv_python.lo gv_python.cpp
005094  i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/usr/lib/perl5/5.8.8/i686-linux/CORE -I/usr/lib/ocaml -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -I/usr/include/python2.5 -O2 -march=i686 -pipe -c gv_python.cpp  -fPIC -DPIC -o .libs/gv_python.o
005095 gv_python.cpp: In function 'int SWIG_Python_ConvertPtr(PyObject*, void**, swig_type_info*, int)':
005096 gv_python.cpp:1231: error: invalid conversion from 'const char*' to 'char*'
005097 gv_python.cpp: In function 'void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, swig_type_info**, swig_type_info**)':
005098 gv_python.cpp:5501: error: invalid conversion from 'const char*' to 'char*'
005099 make[3]: *** [gv_python.lo] Error 1
005100 make[3]: *** Waiting for unfinished jobs....
005101 make[3]: Leaving directory `/var/tmp/portage/graphviz-2.8-r1/work/graphviz-2.8

==============================
emerge --info
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-
r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Xeon(TM) CPU 3.06GHz
Gentoo Base System version 1.12.5
Last Sync: Fri, 22 Sep 2006 07:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r1, 2.5
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu
tdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /et
c/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict
"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LINGUAS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d
istfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X berkdb bitmap-fonts cdr cli crypt cups dlloader doc dri dvd elibc_gli
bc fortran gdbm gnome gpm gtk input_devices_evdev input_devices_keyboard input_d
evices_mouse ipv6 isdnlog kde kernel_linux libg++ ncurses nls nptl nptlonly pam 
pcre perl ppds pppd python qt readline reflection session spl ssl tcpd tk truety
pe-fonts type1-fonts udev unicode userland_GNU video_cards_apm video_cards_ark v
ideo_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_card
s_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 vi
deo_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_card
s_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge vi
deo_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb vi
deo_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards
_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_c
ards_voodoo xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTA
GE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Helmut Jarausch 2006-09-25 02:02:21 UTC
Created attachment 98003 [details, diff]
SWIG patch for python-2.5

The patch to swig-1.3.29 (taken from the CVS version of SWIG)
fixes the problems with lcms and graphviz

One still needs to touch some files to force make to rebuild the swig wrappers
with the new SWIG.
Comment 2 Alex 2006-09-26 15:30:44 UTC
I too get this bug, hope it's fixed in portage shortly.
Comment 3 Alex 2006-09-27 16:42:29 UTC
Created attachment 98267 [details, diff]
Fixes on python2.5

This worked for me, I just made it and testing it about 5 minutes ago.
Comment 4 Mike Auty (RETIRED) gentoo-dev 2006-09-30 10:18:03 UTC
Updating the version number in the summary on this, since it's still a problem with the latest ebuild.  The SWIG patch has gone in, so all that's required now is either to touch the relevant files (hopefully Helmut can provide us with the precise list) or apply Alex's patch...
Comment 5 Alex 2006-10-15 23:48:06 UTC
Any news?
Comment 6 Mike Auty (RETIRED) gentoo-dev 2006-10-29 14:56:49 UTC
Graphics guys, do you have any problems with me reassigning this to the python guys?

It's been a month, and it's quite a quick fix to simply touch the *.i files.  I just want to make sure nobody feels their toes are getting tread on if someone else commits a fix to the tree?  I'll reassign this in a couple of days if I don't hear anything...
Comment 7 Mike Auty (RETIRED) gentoo-dev 2006-10-30 01:29:07 UTC
Created attachment 100769 [details]
graphviz-2.8-r2.ebuild - includes touch to ensure swig rebuilds all components

Here's the proposed modification I'll be making to the ebuild.  This has only one new line:

touch tclpkg/gv/gv.i

This will ensure that the swig wrapper is rebuilt (seeing as swig is a dependency).  Ideally this would be included in a swig.eclass during the unpack phase that simply touches *.i files.  However, this will at least allow people to start using graphviz again...
Comment 8 Bryan Østergaard (RETIRED) gentoo-dev 2007-01-07 13:33:56 UTC
SWIG and lcms was both fixed yesterday so I just added the 'touch tclpkg/gv/gv.i' to force rebuilding.