[Fusionforge-general] Help with scm access paths generated on the "access info" page

Richard Beare richard.beare at gmail.com
Sat Aug 28 14:11:19 CEST 2010


Hi again,

More progress, thankfully. A simple change of the chroot argument to
svnserve in inetd.conf match the path in the web instructions - i.e

svnserve -r -r /var/lib/gforge/chroot/scmrepos

svndir=/svn

in gforge.conf

This now raises the question of whether this was the intended use for
the svndir variable? Have I broken something else by going down this
path?

On Sat, Aug 28, 2010 at 9:15 PM, Richard Beare <richard.beare at gmail.com> wrote:
> Hi All,
> I've done a little more work on this and discovered the following:
>
> svn_root does not get set in
>
> gforge/plugins/scmsvn/common/SVNPlugin.class.php
>
> The default in the patch Olivier sent is always used (/svn)
>
> svndir in /etc/gforge/gforge.conf ends up and svndir_prefix in
> /etc/gforge/local.inc
>
> Copying the structure from the cvs plugin is modified SVNPlugin as
> follows to look at the svndir_prefix variable and I get the expected
> path on the advice page. However checkout doesn't work, so now I need
> to figure that out....
>
>        function SVNPlugin () {
>                global $svn_root;
>                global $svndir_prefix;
>                global $gfconfig;
>                $this->SCMPlugin () ;
>                $this->name = 'scmsvn';
>                $this->text = 'SVN';
>                $this->hooks[] = 'scm_browser_page';
>                $this->hooks[] = 'scm_update_repolist' ;
>                $this->hooks[] = 'scm_generate_snapshots' ;
>                $this->hooks[] = 'scm_gather_stats' ;
>
>                require_once $gfconfig.'plugins/scmsvn/config.php' ;
>
>                $this->default_svn_server = $default_svn_server ;
>                $this->use_ssh = $use_ssh;
>                $this->use_dav = $use_dav;
>                $this->use_ssl = $use_ssl;
>                if (isset($svn_root)) {
>                        $this->svn_root = $svn_root;
>                }  elseif (isset($svndir_prefix)) {
>                        $this->svn_root = $svndir_prefix;
>                } else {
>                        $this->svn_root = '/svn' ;
>                }
>                $this->register () ;
>        }
>
>
> On Fri, Aug 27, 2010 at 4:00 PM, Richard Beare <richard.beare at gmail.com> wrote:
>> Hi Everyone,
>>
>> Thanks for the help on this.
>>
>> I have a few notes and one final (I think) question:
>>
>> I've purged the gforge svn package and reinstalled. I can confirm that the line
>>
>> // $svn_root = $GLOBALS['sys_chroot'].'/scmrepos/svn'
>>
>> in /etc/gforge/plugins/scmsvn/config.php is commented out.
>>
>> The patches didn't quite work against the version 5 branch, but were close.
>>
>> gforge/www/scm/include/viewvc_utils.php seems to have already had the
>> patch applied.
>>
>> hunk 2 of the patch to
>> gforge/plugins/scmsvn/common/SVNPlugin.class.php failed because there
>> is an additional line in my version:
>>
>> $unix_group = 'scm_' . $project->getUnixName() ;
>>
>> ahead of
>>                if (!is_dir ($repo) || !is_file ("$repo/format")) {
>>
>> so I've applied this manually.
>>
>> Now the default path of /svn in
>> gforge/plugins/scmsvn/common/SVNPlugin.class.php appears on the web
>> instructions.
>>
>> I've also noticed that the git plugin seems to have a similar problem
>> with the path for developer access, but not anonymous access.
>>
>> So the final question is where to set svn_root? It isn't in
>> gforge.conf, and it disappears if I add it.
>>
>> Otherwise things are getting close.
>>
>> On Thu, Aug 26, 2010 at 6:14 PM, Olivier Meunier
>> <olivier.meunier at centraliens.net> wrote:
>>>  Hi,
>>> I use the attached patch on my server, but for Webdav access. If it is
>>> working for you with svn+ssh, I will commit the patch for the branch 5.0.
>>> This is already working like this on the trunk. You also have  to remove
>>> $svn_root definition from /etc/gforge/plugins/scmsvn/config.php.
>>> Bye,
>>>
>>> Olivier Meunier
>>>
>>> Le 25/08/2010 13:14, richard.beare at gmail.com a écrit :
>>>>
>>>> Explicitly setting svn_root in /etc/gforge/plugins/scmsvn/config.php
>>>> seems to do the trick.
>>>>
>>>> Presumably is should be something like:
>>>>
>>>> $svn_root=$GLOBALS['svndir'];
>>>>
>>>> but that doesn't seem to work. Not sure what the correct form for that is.
>>>>
>>>> 2010/8/25 Thorsten Glaser<t.glaser at tarent.de>:
>>>>>
>>>>> On Wed, 25 Aug 2010, Richard Beare wrote:
>>>>>
>>>>>> I can see the host in the groups table, but no paths.
>>>>>
>>>>> Ah okay, indeed. I *thought* it came from
>>>>> /etc/gforge/plugins/scmsvn/config.php
>>>>> if I’m not mistaken…
>>>>>
>>>>> bye,
>>>>> //mirabilos
>>>>> --
>>>>> tarent Gesellschaft für Softwareentwicklung und IT-Beratung mbH
>>>>> Geschäftsführer: Boris Esser, Elmar Geese
>>>>> HRB AG Bonn 5168 - USt-ID (VAT): DE122264941
>>>>>
>>>>> Heilsbachstraße 24,  53123 Bonn,   Telefon: +49 228 52675-93
>>>>> Thiemannstraße 36 a, 12059 Berlin, Telefon: +49 30 5682943-30
>>>>> Internet: http://www.tarent.de/  • Telefax: +49 228 52675-25
>>>>>
>>>>> _______________________________________________
>>>>> Fusionforge-general mailing list
>>>>> Fusionforge-general at lists.fusionforge.org
>>>>> http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-general
>>>>>
>>>> _______________________________________________
>>>> Fusionforge-general mailing list
>>>> Fusionforge-general at lists.fusionforge.org
>>>> http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-general
>>>
>>> _______________________________________________
>>> Fusionforge-general mailing list
>>> Fusionforge-general at lists.fusionforge.org
>>> http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-general
>>>
>>>
>>
>



More information about the Fusionforge-general mailing list