Maybe I didn't use the right search terms, but I couldn't find this in the gitolite documentation:
I have an old server whose default perl is older than the 5.10 version that gitolite wants (at least, the "config" command). I can't change the default perl version, but I have a newer version installed as /usr/local/bin/perl. The problem is that all the gitolite tools (including the gitolite command itself) install with /usr/bin/perl as their interpreter path.
Is there a way to specify a non-standard perl path for the Gitolite install to have these paths corrected, or is it a manual post-install task?
If it's manual, is there a safe limited set of tools/scripts that need to have the interpreter changed, or do I need to do a global sed across every file in the gitolite directory?
Thanks,
- Johnson
I have 5.8.8, and it seems to work without that, but I don't have any way to test it comprehensively. I don't have any repos with non-standard config settings at this point.
(As an aside, when I first asked this question, I had thought -- because I couldn't get it to run at all -- that the "gitolite config" command would give you configuration values from either the gitolite.conf or .gitolite.rc file. Knowing now what it does, I don't actually need to use it.)
> If you have a version older than 5.8.8 (released 2006, if I
> recall), you may need to fix that. Lots of things in gitolite
> may fail then, not just an optional remote-user command.
>
> > I can't change the default perl version, but I have a newer
> > version installed as /usr/local/bin/perl. The problem is that
> > all the gitolite tools (including the gitolite command itself)
> > install with /usr/bin/perl as their interpreter path.
> >
> > Is there a way to specify a non-standard perl path for the
> > Gitolite install to have these paths corrected, or is it a
> > manual post-install task?
>
> Manual.
>
> > If it's manual, is there a safe limited set of tools/scripts
> > that need to have the interpreter changed, or do I need to do
> > a global sed across every file in the gitolite directory?
>
> I don't know what you mean by "safe". Why would it be unsafe,
> and what kind of un-safety are you thinking about?
"Safe" is ambiguous here, my apologies. Basically, I wouldn't trust it if I did a global replace on "/usr/bin/perl" with the proper perl path throughout the entire gitolite directory. Without both analyzing every instance that occurs *and* foretelling the future in knowing how every occurrence of /usr/bin/perl in all files would be used in future changes, I wouldn't want to put in a process that does a global replace as part of the install. What I was sort of hoping to hear was "you only need to change the perl version on the main gitolite program" or something. I know now that you need to change it in each file in the commands directory, at least. So I guess my long-winded answer ends up with: by "safe", I mean the set of files in which it is known definitely safe to replace the "/usr/bin/perl" string with another path.
> regards
> sitaram
Thanks for your reply and assistance,
- Johnson