Bug#335455: subversion fails to build with libdb4.3-dev
Florian Weimer
fw at deneb.enyo.de
Mon Oct 24 22:59:13 UTC 2005
* Adam Conrad:
> As for rebuilding with libdb4.3, I've committed the changes required to
> do this to SVN, and tested packages, and they seem fine. Someone should
> probably write a nice NEWS.Debian entry telling people that they need to
> do repository upgrades of one sort or another (dump/load, likely), since
> DB version bumps are... Bumpy.
Actually, they aren't, if you know how to do them. Basically, the
required steps are:
1) Install the db4.2-util and db4.3-util packages.
2) Terminate all processes that may access the Subversion repository
(Apache, svnserve, inetd). If necessary, enter single-user mode
to be sure.
3) Install the new Subversion package.
4) For each Subversion repository which uses the BDB backend, repeat
the following steps:
a) Change to the "db" subdirectory of the repository.
b) Invoke "db4.2_checkpoint -1 -h .".
c) Invoke "db4.2_archive -d -h .".
d) Invoke "db4.2_recover -h .".
e) Invoke "db4.3_recover -e -h .".
This assumes that you do not perform log-file archival. If you
do, you need to archive them before step c), and perform a full
database backup after d).
5) Bring up the system again.
Come to think of it, svnadmin dump/svnadmin create/svnadmin load is
probably easier, although you can hardly avoid the single-user
requirement.
(4b and 4c are mainly a speed optimization, so that less work is
required in 4d.)
More information about the pkg-subversion-maintainers
mailing list