Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20310 - subversion needs apache2 with built-in support for berkdb >=4.0.14
Summary: subversion needs apache2 with built-in support for berkdb >=4.0.14
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-02 02:45 UTC by Alessandro Pisani
Modified: 2003-05-06 13:47 UTC (History)
1 user (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 Alessandro Pisani 2003-05-02 02:45:03 UTC
subversion requires apache-2.0.4x to be built with support of the same version
of berkdb it was built with (currently 4.0.14). Unless apache-2.0.4x is built
with this requiresment authentication failures may occour trying to access
remote repositories (cfr subversion INSTALL file for more details).


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2003-05-05 11:16:06 UTC
Do you actually experience failure because of this. At the moment it is not possible to have apache2 compile with db4 yet. Also subversion uses its own versioned static db. So as far as apache is concerned, the subversion module is not linked with db.
Comment 2 Donny Davies (RETIRED) gentoo-dev 2003-05-05 11:56:00 UTC
wrong. apache compiles just fine with db-4.0.14.
Comment 3 Alessandro Pisani 2003-05-05 13:08:15 UTC
Paul: what about using PDEPEND in subversion ebuild to force emerge of an 
db4-statically-compiled version of apache 2.0.45 ? Is this possible ? If so this would 
allow users which are not using subversion to stay with their current apache2 compiled 
against db3 and users of subversion to have it working the right way with apache. 
just an idea.... let me know. 
 
  
Comment 4 Paul de Vrieze (RETIRED) gentoo-dev 2003-05-05 14:29:24 UTC
I know apache2 compiles well with db4, but db4 is still masked currently waiting for all issues concerning an update to be resolved.

With PDEPEND it is still not possible to require apache2 to be built with db4. What I can do is have the ebuild check on the actual existence of db4 on the system, and then have it use it instead of a static db4. For me actually the combination of db versions does not pose a problem using apache2 with authentication (I use htpasswd files). I think including a full apache2 in the ebuild as was done in the 0.10 ebuild is overkill.
Comment 5 Alessandro Pisani 2003-05-05 14:45:29 UTC
Paul: i've seen this can be considered as a dup of #17309.
Even if a real solution won't be available until db4 is unmasked, for now adding a check for db4 in the apache-2.0.45 ebuild could work fine (along with adding a message in the subversion ebuild which could warn the user to emerge db4 and the re-emerge apache or something like this). Any suggestion? What d'you think about this idea ?
Comment 6 Paul de Vrieze (RETIRED) gentoo-dev 2003-05-05 15:32:12 UTC
As I understand it apache2 should just compile with db4 if it is installed. I will put a check in subversion so that it will not use the static db4 if db4 is installed. Be aware though that we might introduce versioned db symbols in db4 which would mean that all db dependend applications need to be recompiled.
Comment 7 Alessandro Pisani 2003-05-05 16:13:07 UTC
ok, what about using a solution like the one you can find at http://cvs.gentoo.org/~alain ? it consists in a tweaked db-4.1.25 which gets installed in a non-standard path to not interfere with db-3.2.x, and tweaked apache2 and subversion ebuilds to use db4 from the non-standard path

is this viable?
Comment 8 Donny Davies (RETIRED) gentoo-dev 2003-05-05 18:02:41 UTC
apache ebuild will not be touched for this nonsense.

manage the versions of db on you system.  same as i do.
Comment 9 Alessandro Pisani 2003-05-05 18:14:58 UTC
>------- Additional Comment #8 From Donny Davies  2003-05-05 18:02 EST -------
>apache ebuild will not be touched for this nonsense.
>manage the versions of db on you system.  same as i do.
okay: btw, i think it is not necessary to shut up people this way.
i was only trying to develop some possible workarounds.
i'm "going to manage the versions of db on my system" now, bye.
Comment 10 Paul de Vrieze (RETIRED) gentoo-dev 2003-05-06 07:06:39 UTC
I changed subversion to use the system db4 if it is installed. I will not change apache2 as it should build with db4 if it is the system db. If you want to use db4 in apache2 and subversion then you basically need a db4 based system. Basically then unmerge db3, merge db4, and all programs that depend on db.

Note that although the subversion documents mention differently, a db3 apache (standard) is able to cooperate with the db4 based subversion.
Comment 11 Alessandro Pisani 2003-05-06 11:35:08 UTC
Paul: thanks for your help. i'll test the new subverison ebuild asap
Comment 12 Alessandro Pisani 2003-05-06 13:47:10 UTC
tested subversion-0.21-r1 with db4 and all the deps rebuilded: okay for me.
thanks again Paul: your -r1 build fixes the issue.