On Sun, May 19, 2013 at 11:34:01AM -0700, Jonathan Nieder wrote:
> Hi,
> 
> Julian Gilbey wrote:
> 
> > At present, gitweb expects to find the repositories in /var/cache/git
> > by default.  However, as the FHS specifies:
> 
> Sorry for the slow reply.  I want to fix this for jessie, but I hadn't
> come up with a smooth way to move existing repositories from
> /var/cache/git without teaching gitweb to look in more than one place.
> 
> Do you have ideas for how to do that?

Yes, I realise that's a problem.

One thing to remember is that changing the defaults in conffiles won't
automatically modify any existing configurations unless the sysadmin
chooses to overwrite the existing conffile.  Also, the git-doc
documentation all refers to /srv/git rather than /var/cache/git,
except for the README.Debian files themselves.

So a possible resolution might be the following:

(1) Change /etc/gitweb.conf and /etc/sv/git-daemon/run to point to the
new locations.  This will only affect new installations.

(2) In /usr/share/doc, change git/README.Debian to refer to the new
location (8 occurrences) and add an explanation that older versions of
the package used to use /var/cache/git, though this is no longer
recommended.  Likewise, there are references in
git-daemon-run/README.Debian and gitweb/README.Debian, which should be
updated in a similar way.  There may be other files in packages I
haven't installed.

(3) Add a comment in the git/NEWS.Debian file, explaining that the
default location has moved; existing installations will not be
affected, but to convert them to the new layout, see the instructions
in README.Debian.  These should say to simply move everything from
/var/cache/git to /srv/git (taking care if there is a pre-existing
/srv/git), and to update the files /etc/gitweb.conf,
/etc/sv/git-daemon/run and any relevant webserver configuration such
as Apache which is currently looking in /var/cache/git.  To restart
the git-daemon service, use "sv restart git-daemon"; to restart
apache, use "service apache2 reload".

How does that all sound?

> In the meantime, the usual way to use /var/cache/git is to put
> symlinks there, though I realize that's not very satisfying.

Quite!  But again, the symlinks won't be recreated automatically, so
it's still not ideal.

Thanks for your work on the package!

   Julian


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to