Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263714 - subversion-1.6.0 upgrade breaks trac-0.11.2 (Python bindings libsvn/_fs.so: undefined symbol: svn_fs_path_change2_create)
Summary: subversion-1.6.0 upgrade breaks trac-0.11.2 (Python bindings libsvn/_fs.so: u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-25 11:28 UTC by MarisN
Modified: 2009-03-30 04:52 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MarisN 2009-03-25 11:28:18 UTC
After subversion upgrade to 1.6.0 Trac-0.11.2 stopped to work due to broken subversion python bindings. revdep-rebuild and python-updater say everything is OK.

Reproducible: Always

Steps to Reproduce:
Python 2.5.4 (r254:67916, Jan 26 2009, 12:28:20)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from svn import core
>>> (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, core.SVN_VER_MICRO, core.SVN_VER_PATCH)
(1, 6, 0, 0)
>>> from svn import fs, repos, core, delta
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/svn-python/svn/fs.py", line 19, in <module>
  File "/usr/lib64/svn-python/libsvn/fs.py", line 7, in <module>
ImportError: /usr/lib64/python2.5/site-packages/libsvn/_fs.so: undefined symbol: svn_fs_path_change2_create




emerge --info
Portage 2.1.6.10 (selinux/2007.0/amd64/hardened, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.26-hardened-r4 x86_64)
=================================================================
System uname: Linux-2.6.26-hardened-r4-x86_64-Intel-R-_Xeon-R-_CPU_5110_@_1.60GHz-with-glibc2.2.5
Timestamp of tree: Wed, 25 Mar 2009 08:45:02 +0000
app-shells/bash:     4.0_p10-r1
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.6
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages loadpolicy parallel-fetch protect-owned sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tups.lv/source http://ftp.linux.ee/pub/gentoo/distfiles"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://gentoo.tups.lv/gentoo-portage"
USE="amd64 apache2 berkdb cli cracklib crypt cups dri fortran gdbm hardened iconv ipv6 isdnlog jfs jpeg logrotate midi mmx mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl pic png pppd python readline reflection selinux session spl sse sse2 sse3 ssl syslog tcpd unicode urandom usb vhosts xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x  ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3         trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_default authn_file authz_default authz_host authz_user autoindex cache deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling unique_id userdir usertrack vhost_alias status" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 intel mach64  mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis         sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Rafał Mużyło 2009-03-25 19:10:03 UTC
I don't have trac installed and your testcase doesn't produce
any errors for me. A naming conflict ?

What package does own /usr/lib64/svn-python/libsvn/fs.py and
/usr/lib64/svn-python/svn/fs.py ?
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-26 03:02:44 UTC
thx for the report, assigning to maintainers
Comment 3 MarisN 2009-03-26 14:47:27 UTC
First - downgrading SVN to dev-util/subversion-1.5.6 fixes problem. Upgrading back to 1.6.0 makes problem to reappear. Only relation to Trac seems to be Trac's dependency on SVN, as as failing import is taken from Trac log: "from svn import fs, repos, core, delta" Rafał, can You, please, at first emerge subversion-1.5.6 and then upgrade it to 1.6.0 and only then try that python import statement?

Second - there are no such directory as /usr/lib64/svn*:
# ls /usr/lib64/svn*
ls: cannot access /usr/lib64/svn*: No such file or directory

Closest match are located in /usr/lib64/python2.5/site-packages:
equery b /usr/lib64/python2.5/site-packages/libsvn/fs.py
[ Searching for file(s) /usr/lib64/python2.5/site-packages/libsvn/fs.py in *... ]
dev-util/subversion-1.6.0 (/usr/lib64/python2.5/site-packages/libsvn/fs.py)

equery b /usr/lib64/python2.5/site-packages/svn/fs.py
[ Searching for file(s) /usr/lib64/python2.5/site-packages/svn/fs.py in *... ]
dev-util/subversion-1.6.0 (/usr/lib64/python2.5/site-packages/svn/fs.py)
Comment 4 Andreas Ertelt 2009-03-26 22:07:08 UTC
Try building subversion with -dso in the use flags. The implied "--enable-runtime-module-search" seems to break at least python and perl bindings in 1.6.0 and has caused problems in earlier versions before (see bug #221931).
Comment 5 Rafał Mużyło 2009-03-27 02:54:21 UTC
(In reply to comment #4)
> Try building subversion with -dso in the use flags. The implied
> "--enable-runtime-module-search" seems to break at least python and perl
> bindings in 1.6.0 and has caused problems in earlier versions before (see bug
> #221931).
> 
Actually, that may be it - I had that disabled, cause git required it.

And I did have 1.5.5 before I gone to 1.6.0.
Comment 6 Rafał Mużyło 2009-03-27 02:56:29 UTC
Also, /usr/lib64/svn-python/svn/fs.py and /usr/lib64/svn-python/libsvn/fs.py
was a quote from your own post.
Comment 7 MarisN 2009-03-27 13:47:11 UTC
(In reply to comment #4)
> Try building subversion with -dso in the use flags. The implied
> "--enable-runtime-module-search" seems to break at least python and perl
> bindings in 1.6.0 and has caused problems in earlier versions before (see bug
> #221931).
> 

Yes, that's it. I emerged 1.6.0 with USE="-dso" and now it works just fine. Is there specific bug for dso and broken subversion bindings? Mark this as duplicate if there is one.

Rafał Mużyło - thanks for testing. Also it's strange why python was reporting errors with non-existing files /usr/lib64/svn-python/svn/fs.py
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-03-28 16:19:17 UTC
https://svn.collab.net/viewvc/svn?view=revision&revision=36823
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-03-28 19:39:03 UTC
Fixed.
Comment 10 Andrei Ivanov 2009-03-29 13:36:38 UTC
1.6.0 installed fine, but 1.6.0-r1 now gives me this:
x86_64-pc-linux-gnu-gcc -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.6  -march=athlon64 -O3 -pipe -fomit-frame-pointer -fno-strict-aliasing   -pthread     -I./subversion/include -I./subversion -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.6 -I/usr/include/neon -I/usr/include  -o subversion/svnadmin/main.o -c subversion/svnadmin/main.c
cd subversion/svnadmin && /bin/sh /var/tmp/portage/dev-util/subversion-1.6.0-r1/work/subversion-1.6.0/libtool --tag=CC --silent --mode=link x86_64-pc-linux-gnu-gcc  -march=athlon64 -O3 -pipe -fomit-frame-pointer -fno-strict-aliasing   -pthread     -Wl,-O1    -L/usr/lib64  -rpath /usr/lib64 -o svnadmin  main.o ../../subversion/libsvn_repos/libsvn_repos-1.la ../../subversion/libsvn_fs/libsvn_fs-1.la ../../subversion/libsvn_delta/libsvn_delta-1.la ../../subversion/libsvn_subr/libsvn_subr-1.la /usr/lib64/libaprutil-1.la /usr/lib64/libapr-1.la
/var/tmp/portage/dev-util/subversion-1.6.0-r1/work/subversion-1.6.0/subversion/libsvn_fs/.libs/libsvn_fs-1.so: undefined reference to `svn_fs__path_change2_create'
collect2: ld returned 1 exit status
make: *** [subversion/svnadmin/svnadmin] Error 1
 *
 * ERROR: dev-util/subversion-1.6.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 5754:  Called die
 * The specific snippet of code:
 *       emake local-all || die "Building of core of Subversion failed";
 *  The die message:
 *   Building of core of Subversion failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-util/subversion-1.6.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/subversion-1.6.0-r1/temp/environment'.


Portage 2.1.6.11 (default/linux/amd64/2008.0/server, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r4-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-glibc2.2.5
Timestamp of tree: Sun, 29 Mar 2009 11:45:01 +0000
app-shells/bash:     4.0_p10-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r13, 2.5.4-r2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.6
sys-devel/autoconf:  2.63
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.evolva.ro/gentoo/ ftp://mirrors.evolva.ro/gentoo/"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow aalib acl acpi adns alsa amd64 apache2 bzip2 cairo caps cli cracklib crypt curl curlwrappers dio exif expat fam flac fortran ftp gd gif gmp gpm iconv idn imagemagick imap imlib isdnlog jpeg lzma mad maildir mailwrapper memlimit mhash midi mmap mmx mudflap multilib ncurses network-cron nocxx nptl nptlonly offensive oggvorbis openmp pam pcntl pcre png posix pppd readline reflection samba session shared sharedmem slang soap sockets speex spl sse sse2 ssl svg sysfs sysvipc tcpd theora tiff truetype unicode urandom usb vhosts vim-syntax wmf xml xmlrpc xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-03-29 13:53:34 UTC
(In reply to comment #10)

It was already fixed. Please wait 1 hour and run `emerge --sync`.
Comment 12 Andrei Ivanov 2009-03-29 14:44:23 UTC
I see... I thought it was an effect of the fix for this bug :-)
Comment 13 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-03-30 04:52:03 UTC
*** Bug 264241 has been marked as a duplicate of this bug. ***