# Suspected Bug in git install procedure [ git-daemon-run (version 1:2.9.3-1) ]

3 messages from 2016-08-29 to 2016-08-29. Participants: Jean-Marc B. van Schendel, Jeff King.
Thread: https://gitlist.dev/t/43953

## Jean-Marc B. van Schendel, 2016-08-29 04:29

Subject: Suspected Bug in git install procedure [ git-daemon-run (version 1:2.9.3-1) ]
Message-ID: <CAKUcBEDwbZ7aLsa2w4dqNCRg3QQMo_2hm7-O-6o0Fg58ANYv=A@mail.gmail.com>
URL: https://gitlist.dev/e/CAKUcBEDwbZ7aLsa2w4dqNCRg3QQMo_2hm7-O-6o0Fg58ANYv%3DA%40mail.gmail.com

```
Hi,

Not really a bad bug, apparently just one little detail...

Symptoms:
On a fresh new install of Debian "Stretch" (8.5 alpha7, dated 2016-06-30),
Trying to install a subset of Git packages (roughly, all those listed
in git-all, except CVS-related packages)
Install of package git-daemon-run (version 1:2.9.3-1) fails, dpkg
reporting error

Assumed cause:
The directory /etc/service does not exist, and the install procedure
does not create it, subsequently fails to create a symlink (git-daemon
--> /etc/sv/git-daemon)

Workaround used:
Manually created, directory /etc/service and ... it seems to work fine...

Dunno's...
It seems like the location for the newly created symlink may be
hard-coded as /etc/service/. I cannot substantiate whether this
location is a "universal invariant", or something platform-specific,
which ought to be documented in one way or another.
The "real'' cause of the problem might as well be that the install of
Debian silently failed to create /etc/service/ (either as a folder or
as a symlink to anwhere else)...
The git daemon is the first standalone daemon I am installing on this
system. From my point of view, it sounds possible that another
standalone daemon (eg. ProFTPd) might have reported the same problem
if I had installed it before git...


Kind regards


--jmbvs
Jean-Marc B. van Schendel
email: jeanmarc.vanschendel@gmail.com
voice: +32.(0)474.70.3885
msn: jmbvs@hotmail.com

```

## Jeff King, 2016-08-29 05:05

Subject: Re: Suspected Bug in git install procedure [ git-daemon-run (version 1:2.9.3-1) ]
Message-ID: <20160829050547.sv4rslwp2ocehvgx@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20160829050547.sv4rslwp2ocehvgx%40sigill.intra.peff.net
In-Reply-To: <CAKUcBEDwbZ7aLsa2w4dqNCRg3QQMo_2hm7-O-6o0Fg58ANYv=A@mail.gmail.com>

```
On Mon, Aug 29, 2016 at 06:29:04AM +0200, Jean-Marc B. van Schendel wrote:

> Symptoms:
> On a fresh new install of Debian "Stretch" (8.5 alpha7, dated 2016-06-30),
> Trying to install a subset of Git packages (roughly, all those listed
> in git-all, except CVS-related packages)
> Install of package git-daemon-run (version 1:2.9.3-1) fails, dpkg
> reporting error

The git-daemon-run package is entirely a Debian creation, and has more
to do with "runit" than it does with "git daemon" itself. In particular,
your problem:

> Assumed cause:
> The directory /etc/service does not exist, and the install procedure
> does not create it, subsequently fails to create a symlink (git-daemon
> --> /etc/sv/git-daemon)

looks like it's about the system runit setup. I didn't dig, but it's
probably related to:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834087

-Peff

```

## Jean-Marc B. van Schendel, 2016-08-29 07:15

Subject: Re: Suspected Bug in git install procedure [ git-daemon-run (version 1:2.9.3-1) ]
Message-ID: <CAKUcBEAmaALBQT9YdgCRcCBeALKJ1QTHtcVSDRWvMLQwrGFSHg@mail.gmail.com>
URL: https://gitlist.dev/e/CAKUcBEAmaALBQT9YdgCRcCBeALKJ1QTHtcVSDRWvMLQwrGFSHg%40mail.gmail.com
In-Reply-To: <20160829050547.sv4rslwp2ocehvgx@sigill.intra.peff.net>

```
Thanks for the reply...
Indeed there was a problem with the runit package (2.1.2-5), which
_should_ have created /etc/system/ as a link to (in my case)
/etc/runit/runsvdir/current ...
Upgrading to runit 2.1.2-6 clears this off.

Regards

--jmbvs
Jean-Marc B. van Schendel
email: jeanmarc.vanschendel@gmail.com
voice: +32.(0)474.70.3885
msn: jmbvs@hotmail.com


On Mon, Aug 29, 2016 at 7:05 AM, Jeff King <peff@peff.net> wrote:
> On Mon, Aug 29, 2016 at 06:29:04AM +0200, Jean-Marc B. van Schendel wrote:
>
>> Symptoms:
>> On a fresh new install of Debian "Stretch" (8.5 alpha7, dated 2016-06-30),
>> Trying to install a subset of Git packages (roughly, all those listed
>> in git-all, except CVS-related packages)
>> Install of package git-daemon-run (version 1:2.9.3-1) fails, dpkg
>> reporting error
>
> The git-daemon-run package is entirely a Debian creation, and has more
> to do with "runit" than it does with "git daemon" itself. In particular,
> your problem:
>
>> Assumed cause:
>> The directory /etc/service does not exist, and the install procedure
>> does not create it, subsequently fails to create a symlink (git-daemon
>> --> /etc/sv/git-daemon)
>
> looks like it's about the system runit setup. I didn't dig, but it's
> probably related to:
>
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834087
>
> -Peff

```
