Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#2031 - Subversion seems to need rebuild against more recent db package

Attached to Project: Arch Linux
Opened by Thorbjørn Lindeijer (bjorn) - Tuesday, 18 January 2005, 18:50 GMT
Last edited by Dale Blount (dale) - Tuesday, 18 January 2005, 18:51 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jason Chu (jason)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

When trying to run svn I get the following error:

[bjorn@thor ~]$ svn
svn: error while loading shared libraries: libdb-4.2.so: cannot open shared object file: No such file or directory

Checking the db package the most recent one includes libdb-4.3.so.
This task depends upon

Closed by  Jason Chu (jason)
Tuesday, 05 April 2005, 01:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  This one just took time.
Comment by Thorbjørn Lindeijer (bjorn) - Tuesday, 18 January 2005, 18:51 GMT
Note that I'm using subversion package 1.1.3-1.
Comment by Jan de Groot (JGC) - Tuesday, 18 January 2005, 21:10 GMT
And you're using db from testing...
Comment by Jason Chu (jason) - Wednesday, 19 January 2005, 03:35 GMT
And apache needs rebuilding first.
Comment by Paul Mattal (paul) - Sunday, 23 January 2005, 14:54 GMT
Just to add some more experience:

Subversion broke for me in what appears to be a different way (subversion 1.1.13-1) with the most recent db in current (db 4.2.52.2-2).

My problem was on the server side. The subversion server was not able to open/modify any of my repositories. I downgraded to db 4.2.52-1 and the problem was immediately fixed.

Should this be down as a separate bug or the same one?
Comment by Jason Chu (jason) - Sunday, 23 January 2005, 17:47 GMT
I think that's probably a seperate bug. Though, that one I'll probably be able to fix right now.
Comment by Paul Mattal (paul) - Sunday, 23 January 2005, 18:28 GMT
I should mention: I tried recompiling subversion against db 4.2.52.2-2 and that didn't help.
Comment by Paul Mattal (paul) - Monday, 07 March 2005, 06:05 GMT
Okay, I fought against this one for way too long tonight. Here's what I figured out:

If you go back to version 1.12 of the PKGBUILD file for db in CVS, and you update only the location of the source file (which is no longer available via http) and you rebuild the package on a current arch system, it also DOESN'T WORK.

This means either something in glibc or something in gcc is causing versions of db compiled with them to be incompatible with the compiled db package available on the Arch 0.6 distro.

This is just about the worst kind of behavior I could imagine from some c code. Either it's a honking bug somewhere in gcc or glibc or the people at sleepycat software should be skinned.

Either way, there's no good solution I can see at the moment. The incompatibility seems to have NOTHING to do with code patches from 4.2.52 to 4.2.52.2.

Ideas?
Comment by Paul Mattal (paul) - Monday, 07 March 2005, 06:09 GMT
Of course, I should point out at least 1 workaround: convert your repo to fsfs format. My fsfs format repos work fine throughout.

But it still means that any db you created with the old compiled version of 4.52.2 might well not be readable with the newly compiled version of 4.52.2.x.

Ew.
Comment by Thorbjørn Lindeijer (bjorn) - Monday, 07 March 2005, 13:54 GMT
I'll be sure to do a database dump before upgrading then. For now I had fixed my problem by not using the db from testing, thanks to Jan de Groot for pointing this out.
Comment by Paul Mattal (paul) - Monday, 07 March 2005, 14:19 GMT
I should be especially clear for all who might subsequently refer to this: Upgrading from 4.2.52 to 4.2.52.2 (or even compiling your own new 4.2.52 and upgrading to that) may break your old databases. You should dump before upgrading.

If these dbs are your subversion repositories, you should switch to fsfs, unless you have good reason not to. This will avoid these problems altogether.

At this point, my next strategy would be to do a clean install of Arch 0.6 and see how far I can upgrade gcc and glibc before compiling db 4.2.52 becomes incompatible. Not sure I have that kind of time, but we'll see.
Comment by Simo Leone (neotuli) - Sunday, 03 April 2005, 02:34 GMT
I found the following procedure (don't remember where) for handling db upgrades, and it has worked for me.

(from the root of whatever repo)
rm -f db/log.*
svnadmin recover .

In theory, that should bring things back up.
Comment by Simo Leone (neotuli) - Sunday, 03 April 2005, 02:36 GMT
Errr... the above method is assuming that the whatever svn you're using is compiled against that newer db version...i think.
Comment by Jason Chu (jason) - Tuesday, 05 April 2005, 01:10 GMT
I can verify this works. You do need the more recent version of db.

I'm closing this because it's been solved.

Loading...