[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

1.7.0-alpha2 testsuite pysqlite complications with CentOS

From: Josh Cepek <josh.cepek_at_usa.net>
Date: Fri, 01 Jul 2011 17:32:19 -0500

I was building the subversion 1.7.0-alpha2 pre-release in a CentOS 5.6
environment and encountered an interesting problem with the new
dependency for python's sqlite support.

CentOS seems to name the site python library 'sqlite' while the
subversion system expects to import 'sqlite3'. This causes the test to
halt accordingly on the first python test when the import fails.

I'm not sure if the solution is to have the distro packager of the
python-sqlite package update the site paths (or at least symlink sqlite3
-> sqlite) or to patch the svntest library to handle this case. Both
methods worked as expected for me, and allowed the test suite to continue.

In the event we want to support this within the 1.7.x test suite, I've
attached a patch to svntest/__init__.py that adds an additional try
clause to import sqlite as sqlite3. I'm not sure if there are any
historical implications (read: a previously named sqlite library) to
this patch.

If the Subversion devs view this as a completely upstream problem I may
file a bug there, but the chances of it getting fixed are pretty low
since CentOS just repackages what RHEL provides.

--
Josh

Received on 2011-07-02 00:34:49 CEST

This is an archived mail posted to the Subversion Users mailing list.