.... /usr/portage/tmp/portage/subversion-1.0.0-r1/work/subversion-1.0.0/subversion/bindings/swig/swigutil_py.c:1231: error: `Py_None' undeclared (first use in this function) /usr/bin/swig -c -python -I/usr/portage/tmp/portage/subversion-1.0.0-r1/work/subversion-1.0.0/subversion/bindings/swig -I/usr/portage/tmp/portage/subversion-1.0.0-r1/work/subversion-1.0.0/subversion/include -I -DSVN_SWIG_VERSION=103016 -I/usr/portage/tmp/portage/subversion-1.0.0-r1/work/subversion-1.0.0/apr/include -I/usr/portage/tmp/portage/subversion-1.0.0-r1/work/subversion-1.0.0/apr-util/include -I/usr/portage/tmp/portage/subversion-1.0.0-r1/work/subversion-1.0.0/apr-util/include -o subversion/bindings/swig/python/svn_fs.c /usr/portage/tmp/portage/subversion-1.0.0-r1/work/subversion-1.0.0/subversion/bindings/swig/svn_fs.i make: *** [subversion/bindings/swig/swigutil_py.lo] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-util/subversion-1.0.0-r1 failed. !!! Function src_compile, Line 131, Exitcode 2 !!! subversion python bindings failed Reproducible: Always Steps to Reproduce: # emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0) ================================================================= System uname: 2.6.0 i686 AMD Athlon(tm) XP 1600+ Gentoo Base System version 1.4.3.13 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.7.7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/portage/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d aalib alsa apm avi berkdb crypt cups directfb encode esd flash foomaticdb gdbm gif gnome gpm gtk gtk2 guile imlib ipv6 java jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png python qt quicktime readline samba sasl scpd sdl slang spell sse ssl svga tcltk tcpd tiff truetype x86 xml xml2 xmms xosd xv zlib" # emerge -p autoconf These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild UD] sys-devel/autoconf-2.58-r1 [2.59-r3]
Which swig version do you use? Also ensure that swig uses the newest python version installed
$ emerge -p swig python *** You are not in the portage group. You may experience cache problems *** due to permissions preventing the creation of the on-disk cache. *** Please add this user to the portage group if you wish to use portage. These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] dev-lang/swig-1.3.19 [1.3.16] [ebuild R ] dev-lang/python-2.3.3
You will need to update swig. I have just updated the order of the dependencies in the 1.0.1 ebuild so that it will not flipflop so much
closing as fixed per above comment.