FS#24540 - [subversion] Perl Swig SVN bindings not working (noticed with git svn)
Attached to Project:
Arch Linux
Opened by Otto Allmendinger (OttoA) - Thursday, 02 June 2011, 00:26 GMT
Last edited by Stéphane Gaudreault (stephane) - Friday, 18 May 2012, 13:27 GMT
Opened by Otto Allmendinger (OttoA) - Thursday, 02 June 2011, 00:26 GMT
Last edited by Stéphane Gaudreault (stephane) - Friday, 18 May 2012, 13:27 GMT
|
Details
The perl subversion module fails when being used by
git-svn
# pacman -Q subversion perl git subversion 1.6.15-1 perl 5.14.0-1 git 1.7.5.2-2 # git svn rebase /usr/bin/perl: symbol lookup error: /usr/lib/perl5/vendor_perl/auto/SVN/_Core/_Core.so: undefined symbol: Perl_Gthr_key_ptr git: 'svn' is not a git command. See 'git --help'. Did you mean this? svn Rebuilding from abs fails but I think compiling against the newest perl version should fix the problem |
This task depends upon
Closed by Stéphane Gaudreault (stephane)
Friday, 18 May 2012, 13:27 GMT
Reason for closing: Works for me
Friday, 18 May 2012, 13:27 GMT
Reason for closing: Works for me
# git svn rebase
Bizarre copy of UNKNOWN in subroutine entry at /usr/lib/perl5/vendor_perl/SVN/Base.pm line 80.
1. Get subversion package from archlinux svn
2. run makepkg
3. cd src/subversion-1.6.17/subversion/bindings/swig/perl/native
4. run "make test"
make test
PERL_DL_NONLAZY=1 LD_LIBRARY_PATH=:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/bindings/swig/perl/libsvn_swig_perl/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_client/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_delta/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_fs/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_ra/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_repos/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_wc/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_diff/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_subr/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_ra_local/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_ra_svn/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_ra_neon/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_ra_serf/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_fs_base/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_fs_util/.libs:/home/angvp/pkgs/subversion/src/subversion-1.6.17/subversion/libsvn_fs_fs/.libs /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" ../../../../../subversion/bindings/swig/perl/native/t/*.t
../../../../../subversion/bindings/swig/perl/native/t/0use.t ........... ok
../../../../../subversion/bindings/swig/perl/native/t/1repos.t ......... 1/6 # committed 1,2011-06-08T20:31:09.010295Z,root
../../../../../subversion/bindings/swig/perl/native/t/1repos.t ......... 2/6 # committed 2,2011-06-08T20:31:09.357502Z,root
# committed 3,2011-06-08T20:31:09.670357Z,root
# cleanup
../../../../../subversion/bindings/swig/perl/native/t/1repos.t ......... ok
../../../../../subversion/bindings/swig/perl/native/t/2fs.t ............ 20/22 # cleanup
../../../../../subversion/bindings/swig/perl/native/t/2fs.t ............ ok
../../../../../subversion/bindings/swig/perl/native/t/3client.t ........ 119/119 # cleanup
../../../../../subversion/bindings/swig/perl/native/t/3client.t ........ ok
../../../../../subversion/bindings/swig/perl/native/t/4pool.t .......... 1/6 # cleanup
../../../../../subversion/bindings/swig/perl/native/t/4pool.t .......... ok
../../../../../subversion/bindings/swig/perl/native/t/5delta-compat.t .. ok
../../../../../subversion/bindings/swig/perl/native/t/5delta.t ......... ok
../../../../../subversion/bindings/swig/perl/native/t/6ra.t ............ 2/40 # cleanup
../../../../../subversion/bindings/swig/perl/native/t/6ra.t ............ ok
../../../../../subversion/bindings/swig/perl/native/t/7editor.t ........ # committed 1,2011-06-08T20:31:20.792145Z,root
../../../../../subversion/bindings/swig/perl/native/t/7editor.t ........ ok
../../../../../subversion/bindings/swig/perl/native/t/8lock.t .......... ok
All tests successful.
Files=10, Tests=214, 16 wallclock secs ( 0.17 usr 0.04 sys + 2.02 cusr 0.53 csys = 2.76 CPU)
Result: PASS
perl 5.14.0-1
subversion 1.6.17-3
swig 2.0.4-1
git 1.7.5.4-1
perl 5.14.0-1
subversion 1.6.17-3
swig 2.0.4-1
We ran the tests and everything went fine? we need to see if this is a real bug, this is blocking the perl update to core, and is making our work slower, please we will need to know if this is a real issue and then we need to reproduce it to fix it.. need some information here, what architecture were you using? I've tried perl 5.14.0 + swig + subversion on differents x86_64 machines and everything is working as expected.
I don't want to close this report or stop the movement to perl 5.14.0 for this.
EDIT: x86->i686
Your perl environment is sane? I mean, you didn't installed cpan packages by hand, right?
I think my perl environment is sane.
I tested it on a third i686 and it failed, also tested it on a x86_64 machine and it passed (!)
So this is probably related to the architecture.
PERL_DL_NONLAZY=1 LD_LIBRARY_PATH=:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/bindings/swig/perl/libsvn_swig_perl/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_client/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_delta/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_fs/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_ra/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_repos/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_wc/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_diff/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_subr/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_ra_local/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_ra_svn/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_ra_neon/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_ra_serf/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_fs_base/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_fs_util/.libs:/var/abs/testing/subversion/src/subversion-1.6.17/subversion/libsvn_fs_fs/.libs /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" ../../../../../subversion/bindings/swig/perl/native/t/*.t
../../../../../subversion/bindings/swig/perl/native/t/0use.t ........... ok
../../../../../subversion/bindings/swig/perl/native/t/1repos.t ......... 1/6 # committed 1,2011-06-14T01:36:28.980615Z,root
../../../../../subversion/bindings/swig/perl/native/t/1repos.t ......... 2/6 # committed 2,2011-06-14T01:36:29.502849Z,root
# committed 3,2011-06-14T01:36:29.924264Z,root
../../../../../subversion/bindings/swig/perl/native/t/1repos.t ......... 5/6 # cleanup
../../../../../subversion/bindings/swig/perl/native/t/1repos.t ......... ok
../../../../../subversion/bindings/swig/perl/native/t/2fs.t ............ 1/22 Bizarre copy of UNKNOWN in subroutine entry at ../../../../../subversion/bindings/swig/perl/native/t/2fs.t line 37.
# cleanup
# Looks like you planned 22 tests but ran 7.
# Looks like your test exited with 255 just after 7.
../../../../../subversion/bindings/swig/perl/native/t/2fs.t ............ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 15/22 subtests
../../../../../subversion/bindings/swig/perl/native/t/3client.t ........ 1/119 Undefined subroutine &main::0 called at /var/abs/testing/subversion/src/subversion-1.6.17/subversion/bindings/swig/perl/native/blib/lib/SVN/Client.pm line 927.
../../../../../subversion/bindings/swig/perl/native/t/3client.t ........ Failed 110/119 subtests
../../../../../subversion/bindings/swig/perl/native/t/4pool.t .......... 1/6 # cleanup
../../../../../subversion/bindings/swig/perl/native/t/4pool.t .......... ok
../../../../../subversion/bindings/swig/perl/native/t/5delta-compat.t .. ok
../../../../../subversion/bindings/swig/perl/native/t/5delta.t ......... ok
../../../../../subversion/bindings/swig/perl/native/t/6ra.t ............ 2/40 Bizarre copy of UNKNOWN in list assignment at /var/abs/testing/subversion/src/subversion-1.6.17/subversion/bindings/swig/perl/native/blib/lib/SVN/Ra.pm line 492.
# cleanup
# Looks like you planned 40 tests but ran 18.
# Looks like your test exited with 255 just after 18.
../../../../../subversion/bindings/swig/perl/native/t/6ra.t ............ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 22/40 subtests
../../../../../subversion/bindings/swig/perl/native/t/7editor.t ........ # committed 1,2011-06-14T01:36:34.643950Z,root
../../../../../subversion/bindings/swig/perl/native/t/7editor.t ........ ok
../../../../../subversion/bindings/swig/perl/native/t/8lock.t .......... ok
Test Summary Report
-------------------
../../../../../subversion/bindings/swig/perl/native/t/2fs.t (Wstat: 65280 Tests: 7 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 22 tests but ran 7.
../../../../../subversion/bindings/swig/perl/native/t/3client.t (Wstat: 11 Tests: 9 Failed: 0)
Non-zero wait status: 11
Parse errors: Bad plan. You planned 119 tests but ran 9.
../../../../../subversion/bindings/swig/perl/native/t/6ra.t (Wstat: 65280 Tests: 18 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 40 tests but ran 18.
Files=10, Tests=67, 8 wallclock secs ( 0.09 usr 0.02 sys + 2.08 cusr 0.17 csys = 2.36 CPU)
Result: FAIL
Failed 3/10 test programs. 0/67 subtests failed.
make: *** [test_dynamic] Error 255
I did the following steps:
1) git svn init svn://svn.archlinux.org/packages/subversion
2) git svn fetch -r HEAD
3) git svn rebase
would you mind to test and give me some feedback again? if this got fixed we can proceed with the movement to perl 5.14.1 to core!
$ git svn clone svn://svn.archlinux.org/packages/subversion
Initialized empty Git repository in /tmp/subversion/.git/
Bizarre copy of UNKNOWN in subroutine entry at /usr/lib/perl5/vendor_perl/SVN/Base.pm line 80.
I'm getting the same "Bizarre copy of UNKNOWN" message while doing "git svn fetch" on a repository.
a) use git svn init , instead svn clone (and try git svn fetch + rebase .. this is working on i686)
b) do pressure on subversion upstream (just few people reported this and they are not paying so much attention, some noise could help).
Any other workarounds to try?
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628522
[2] http://projects.archlinux.org/svntogit/packages.git/tree/subversion/trunk/subversion-perl-bindings.patch
The only way I managed to fix this was to "yaourt -U perl-5.12.3-1-i686.pkg.tar.xz git-1.7.5.4-1-i686.pkg.tar.xz subversion-1.6.17-2-i686.pkg.tar.xz". Downgrading subversion is needed as well, because otherwise "git svn fetch" gives me "error: git-svn died of signal 11".
> git svn clone http://mysql-python.svn.sourceforge.net/svnroot/mysql-python
Initialized empty Git repository in /.../mysql-python/.git/
Bizarre copy of UNKNOWN in subroutine entry at /usr/lib/perl5/site_perl/SVN/Base.pm line 80.
This is my setup:
>pacman -Q subversion perl git
subversion 1.7.4-1
perl 5.14.2-7
git 1.7.10-1
Additionally, Base.pm is located under /usr/lib/perl5/vendor_perl/SVN/, not /usr/lib/perl5/site_perl/SVN/.
See if /usr/lib/perl5/site_perl/SVN/Base.pm is owned by any package, and if not, do some cleanup under /usr/lib/perl5/site_perl/ (this directory is empty on my system.)