Package: gitolite3
Version: 3.6.1-2
Severity: normal

Dear Maintainer,

Gitolite (>= v3) supports a "-json" option to the "info" remote command.
This breaks when JSON.pm perl module is not installed.

Installing package libjson-perl fixes it, so gitolite3 should
probably have a "Depends: libjson-perl".

Expected behaviour:

    shell$ ssh gitolite3@<server> info -json

    {
       "GL_USER" : "admin",
       "repos" : {
          "testing" : {
             "perms" : {
                "R" : 1,
                "W" : 1
             }
          },
          "gitolite-admin" : {
             "perms" : {
                "W" : 1,
                "R" : 1
             }
          }
       },
       "gitolite_version" : "3.6.1-2 (Debian)",
       "git_version" : "2.1.4",
       "USER" : "gitolite3@debian3"
    }


However, without libjson-perl this happens:

    shell$ ssh gitolite3@<server> info -json

    FATAL: Can't locate JSON.pm in @INC (you may need to install the
    JSON module) (@INC contains: /usr/share/gitolite3/lib /etc/perl
    /usr/local/lib/x86_64-linux-gnu/perl/5.20.2
    /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20
    /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20
    /usr/share/perl/5.20 /usr/local/lib/site_perl .) at
    /usr/share/gitolite3/commands/info line 65, <DATA> line 1.


Regards, Heiko


-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gitolite3 depends on:
ii  adduser                      3.113+nmu3
ii  debconf [debconf-2.0]        1.5.55
ii  git [git-core]               1:2.1.4-2.1
ii  openssh-server [ssh-server]  1:6.7p1-3
ii  perl                         5.20.2-2

gitolite3 recommends no packages.

Versions of packages gitolite3 suggests:
pn  git-daemon-run  <none>
pn  gitweb          <none>

-- debconf information:
  gitolite3/gitdir: /var/lib/gitolite3
  gitolite3/gituser: gitolite3
* gitolite3/adminkey:


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to