Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98688 - subversion with db-4.3
Summary: subversion with db-4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
: 106978 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-11 10:11 UTC by Masatomo Nakano (RETIRED)
Modified: 2006-06-05 13:28 UTC (History)
4 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 Masatomo Nakano (RETIRED) gentoo-dev 2005-07-11 10:11:07 UTC
I want to run subversion with sys-libs/db-4.3 which is package.masked yet.

I unmasked/emerged db-4.3.
Then, emerged subversion-1.2.1  but subverion was going to link with db-4.2.

After that, I tried to add 'db-4.3' to files/subversion-db4.patch. But the
result was same.

I know a masked ebuild is not supported well.
But if you have any chance, can you take care of it please?


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
subversion always link db-4.2.

Expected Results:  
suversion with db-4.3 works fine.
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2005-07-17 13:48:50 UTC
Well, it actually will link against the db version that apr/apr-util was linked
against. To link it against 4.3 you therefore need to remerge apr and/or apr-util.
Comment 2 Andrew Johnson 2005-07-18 18:10:26 UTC
This can cause problems when upgrading from subversion 1.1.x to 1.2.x.

As an example,
Subversion 1.1.x, which apparently didn't utilize apr-util, may have been
compiled against db4.1.

During an upgrade to 1.2.1, subversion uses whatever version of db that apr-util
was compiled against (as you mentioned). Because the apr-util ebuilds do not
take into account version db4.1 or db4.3, this results in the 1.2.1 subversion
package being compiled against db4.0. As a result, subversion repositories
created with the 1.1.x subversion installation will not be readable by the newly
installed subversion package. Re emerging apr-util + subversion will not fix
this problem, because the apr-util ebuild will still only look for db4.0 and db4.2.

To fix this problem for myself, I changed the apr-util ebuild to take into
account db4.1, and re-emerged apr-util and subversion.

This may or may not be the proper fix. Let me know if you me to submit a patch.
Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2005-07-19 01:05:24 UTC
I'm CC'ing the apache team on this. They maintain apr/apr-util. Probably the
reason that 4.1 is not used by apache has to do with bugs. Usage of 4.3 is
probably just not enabled.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-12-06 19:05:50 UTC
*** Bug 106978 has been marked as a duplicate of this bug. ***
Comment 5 Paul de Vrieze (RETIRED) gentoo-dev 2005-12-07 02:02:55 UTC
Please note that berkeley db is kind of problematic in the update path. For this
reason fsfs is now the default subversion filesystem. If you want to avoid these
issues, you might want to consider using fsfs.
Comment 6 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2006-06-04 20:45:36 UTC
apr-util now uses the db-use.eclass with the fixing of bug 133871. The issue of which db version subversion links against is probably now resolved.
Comment 7 Paul de Vrieze (RETIRED) gentoo-dev 2006-06-05 13:28:04 UTC
Happy to see the db-use eclass being of some use ;-). I consider this closed then. If it is still an issue, please reopen.