Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60557 - Subversion devs suspect <=BDB-4.1 Upgrade this to 4.2.*
Summary: Subversion devs suspect <=BDB-4.1 Upgrade this to 4.2.*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: Alpha Linux
: High critical (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-16 07:54 UTC by Sander Rijken
Modified: 2004-09-21 01:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sander Rijken 2004-08-16 07:54:34 UTC
Subversion developers have warned that BDB-4.1 sometimes causes repositories to break. 4.2 is not known to have this problem. Will it be possible to update the bdb version required for svn?

Reproducible: Always
Steps to Reproduce:
N/A
Actual Results:  
N/A
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2004-08-16 11:41:30 UTC
I'll unmask db-4.2 now. I will not yet make subversion depend on it (so I can mask it again when problems arise), but will do so probably with the 1.1 release
Comment 2 Sander Rijken 2004-08-16 13:52:26 UTC
Can I test to see if that changes my problems? How do I make sure that subversion links against the 4.2 BDB? 
(This is not a production repos,so I think I can do that reasonably safe.)

The problem *does* occur on another svn server I manage, which is a production server. I'm not too keen on experimenting with db there however.
Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2004-08-16 14:10:08 UTC
Before you start, you might want to dump the repository. After that, merge db-4.2. If things function properly then subversion should just pick up db-4.2. You can check it from the output of the configure script.
Comment 4 Joern P. Meier 2004-08-19 07:29:40 UTC
I have recently merged DB 4.2; now, when trying to upgrade subversion to 1.0.6,I get the following error:

Calculating dependencies ...done!
>>> emerge (1 of 1) dev-util/subversion-1.0.6 to /
>>> md5 src_uri ;-) subversion-1.0.6.tar.bz2
berkdb
apache2
 * The apache2 subversion module will be built, and libapr from the
 * apache package will be used instead of the included.
>>> Unpacking source...
>>> Unpacking subversion-1.0.6.tar.bz2 to /var/tmp/portage/subversion-1.0.6/work
 * Applying subversion-db4.patch...                                                                                                                [ ok ] * Patching ${S}/apr/build/ltmain.sh...
 *   Applying portage-1.4.1.patch...
 *   Applying relink-1.4.3.patch...
 *   Applying sed-1.4.3.patch...
 *   Applying tmp-1.3.5.patch...
 * Patching ${S}/neon/ltmain.sh...
 *   Applying portage-1.4.1.patch...
 *   Applying max_cmd_len-1.5.0.patch...
 * Patching ${S}/ac-helpers/ltmain.sh...
 *   Applying portage-1.4.1.patch...
 *   Applying relink-1.4.3.patch...
 *   Applying sed-1.4.3.patch...
 *   Applying tmp-1.3.5.patch...
 * Patching ${S}/apr-util/xml/expat/conftools/ltmain.sh...
 *   Applying portage-1.4.1.patch...
 *   Applying relink-1.4.3.patch...
 *   Applying sed-1.4.3.patch...
 *   Applying tmp-1.3.5.patch...
>>> Source unpacked.
ssl
ssl
apache2
apache2
berkdb
berkdb
python
python
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
Configuring Subversion 1.0.6
creating config.nice
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether ln -s works... yes
configure: Apache Portable Runtime (APR) library configuration
checking for APR... yes
checking APR version... 0.9.5
configure: Apache Portable Runtime Utility (APRUTIL) library configuration
checking for APR-util... yes
checking APR-UTIL version... 0.9.5
configuring libtool now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking for a sed that does not truncate output... /bin/sed
checking how to recognise dependent libraries... pass_all
checking command to parse nm output... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
configure: checking neon library
checking neon library version... 0.24.7
checking for static Apache module support... no
checking for Apache module support via DSO through APXS... found at /usr/sbin/apxs2
checking httpd version... recent enough
checking for socket in -lsocket... no
checking for availability of Berkeley DB... no
configure: error: Berkeley DB 4.0.14 wasn't found.

!!! ERROR: dev-util/subversion-1.0.6 failed.
!!! Function econf, Line 362, Exitcode 1
!!! econf failed
Comment 5 Paul de Vrieze (RETIRED) gentoo-dev 2004-08-19 07:41:36 UTC
Hmmm. This happens at my machine too. I have not actually checked it, but this should be fixed by recompiling apache-2. The problem is caused by a header/lib mismatch. Please report whether that works
Comment 6 Paul de Vrieze (RETIRED) gentoo-dev 2004-08-19 12:46:34 UTC
Ok, recompiling apache at my machine worked to make subversion work. I guess I'll need to add a check to the ebuild so it is clear how to solve the problem.
Comment 7 Joern P. Meier 2004-08-22 11:21:36 UTC
Recompiling apache worked for me as well. Thanks!
Comment 8 Martin Allchin 2004-08-22 15:33:55 UTC
Recompiling apache now, fingers crossed :)
Comment 9 Paul de Vrieze (RETIRED) gentoo-dev 2004-09-21 01:39:54 UTC
I guess it is fixed now