JHBuild and SVN problem

I’ve recently experiencing a very annoying problem when trying to update modules located in SVN servers using JHBuild. The error was something like this

svn: Network socket initialization failed

This was even reported as debian bug. But it’s not definitely a bug in SVN, the problem is located in the libgcrypt library used by SVN to deal with SSL enabled SVN servers. Being inside a JHBuild shell you’ll most likely have a LD_LIBRARY_PATH environment variable that will point to the location you setup as destination folder for the modules to build. So the svn command will use that libgcrypt and thus the error will appear.

It’s as easy as to wrap your svn command like this for example.

#!/bin/sh
unset LD_LIBRARY_PATH
exec /usr/bin/svn "$@"

Update: BTW jdub I’ve now a hackergotchi (thx pvanhoof). You can take it from here. It could be already seen in Planet Igalia

This entry was posted on Friday, May 23rd, 2008 at 5:51 pm and is filed under Hacking. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

  • May 2008
    M T W T F S S
    « Feb   Jun »
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  

One Response to “JHBuild and SVN problem”

  1. Wouter Bolsterlee says:

    This can be easily solved by updating the libgcrypt inside your JHBuild environment. The JHBuild modulesets have already been fixed: https://bugzilla.gnome.org/show_bug.cgi?id=532696

Leave a Reply