dev-libs/expat should be added as run-time dependancy of dev-util/hgsvn. Hgsvn does not work if dev-libs/expat is missed vv@crusader /tmp $ hgimportsvn svn://svn.zapatec.net/trunk * svn 'info' '--xml' 'svn://svn.zapatec.net/trunk' Traceback (most recent call last): File "/usr/bin/hgimportsvn", line 8, in <module> load_entry_point('hgsvn==0.1.6', 'console_scripts', 'hgimportsvn')() File "//usr/lib/python2.5/site-packages/hgsvn/run/hgimportsvn.py", line 51, in main svn_info = get_svn_info(svn_url, options.svn_rev) File "//usr/lib/python2.5/site-packages/hgsvn/svnclient.py", line 137, in get_svn_info fail_if_stderr=True) File "//usr/lib/python2.5/site-packages/hgsvn/common.py", line 209, in run_svn args=args, bulk_args=bulk_args, fail_if_stderr=fail_if_stderr) File "//usr/lib/python2.5/site-packages/hgsvn/common.py", line 149, in run_command return _run_raw_command(cmd, map(_transform_arg, args), fail_if_stderr) File "//usr/lib/python2.5/site-packages/hgsvn/common.py", line 123, in _run_raw_command % (pipe.returncode, cmd_string, err)) hgsvn.errors.ExternalCommandFailed: External program failed (return code 127): svn 'info' '--xml' 'svn://svn.zapatec.net/trunk' svn: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory vv@crusader /tmp $ Reproducible: Always
Actually, that was a call to external command "svn info --xml" which failed. Subversion does have dev-libs/expat as a dependency, so I'm not sure why expat would not be installed. Could you please post output of 'emerge --info' and 'emerge -pv subversion'?
I bet it's because expat was upgraded from 1.9.xx to 2.x and .so version number was changed from .0 to .1 and revdep-rebuild hasn't been runned.
As "emerge expat" says, ewarn "Please note that the soname of the library changed!" ewarn "If you are upgrading from a previous version you need" ewarn "to fix dynamic linking inconsistencies by executing:" ewarn "revdep-rebuild --library libexpat.so.0"