git not showing commit summary on 15.04

Bug #1446746 reported by Bill Bonney
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
gitg (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

using 15.04 pre-release I don't see the commit summary. If i go to the commit page, a summary of the stage commit (diffs) are shown. (see screen shot attached)

Description: Ubuntu 15.04
Release: 15.04

the log when running shows

** (gitg:24014): WARNING **: gitg-plugins-engine.vala:40: Could not load repository: Typelib file for namespace 'Peas', version '1.0' not found

** (gitg:24014): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-8F6N4v0NKy: Connection refused

SRU

[IMPACT]
Out of the box gitg doesn't display commit summary section, making it rather hard to get details on changes. By installing an additional package (gir1.2-peas-1.0) things start working as expected.

[TEST CASE]
1. Navigate to a git repo.
2. Run `gitg` (and maximize the window).
3. Click on a commit.
4. Observe that details on the selected commit is displayed in the bottom right of the screen.

[REGRESSION POTENTIAL]
Minimal. Code is unchanged, only added an additional dependency which will be installed.

Related branches

Revision history for this message
Bill Bonney (billbonney) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gitg (Ubuntu):
status: New → Confirmed
Revision history for this message
Bill Bonney (billbonney) wrote :

I think this issue is a dependency problem. I had previously tried to build gitg 3.14 on 14.10. Then upgraded the box to 15.04. It wasn't working. I did some cleaning up and removed the libgit2 and libgit2-glib (I think that was its name)

Anyway, with the new official 15.04 update released the issue now seems resolved.

Revision history for this message
Christoph Haas (chaas) wrote :

Sory, no. I just updated to Xubuntu 15.04 and that's when gitg showed this bug. All was fine with the 14.10 version.

Revision history for this message
Bill Bonney (billbonney) wrote :

>Sorry, no.
Ok...

What would be interesting if you tried what I did to make it work. Note: 14.10 came with gitg v0.3. it was really old. 15.04 comes with gitg 3.14 which has newer dependencies see https://wiki.gnome.org/Apps/Gitg/

The first thing I tried and would suggest is trying apt-get remove for libgit2-lib and libgit2-glib and then reinstalling gitg (though I am unsure if this actually did anything)

The second thing I did yesterday, was install mate-desktop (I was just interested in how well mate worked) and then gitg worked (even though I am using xubuntu (xcfe)) There might be a missing dependency that mate-desktop is including that gitg needs.

post back how you get on.

Revision history for this message
Christoph Haas (chaas) wrote :

Thanks for the quick response. Those library packages are not installed here:

chaas@aldi:~$ LANG=C sudo apt-get remove libgit2-lib libgit2-glib
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgit2-lib
E: Unable to locate package libgit2-glib

Version 3.15.1-0ubuntu2 of gitg is installed. There are no pending updates.

The error message I get is similar to the OP's:

** (gitg:28040): WARNING **: gitg-plugins-engine.vala:40: Could not load repository: Typelib file for namespace 'Peas', version '1.0' not found

I also purged gitg and ran "apt-get autoremove" and reinstalled gitg. Same effect.

ldd says:

chaas@aldi:~/projekte/debshots2.ror4$ ldd /usr/bin/gitg | grep git
 libgit2-glib-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libgit2-glib-1.0.so.0 (0x00007f2bf9f64000)
 libgitg-1.0.so.0 => /usr/lib/gitg/libgitg-1.0.so.0 (0x00007f2bf7549000)
 libgitg-ext-1.0.so.0 => /usr/lib/gitg/libgitg-ext-1.0.so.0 (0x00007f2bf7336000)
 libgit2.so.22 => /usr/lib/x86_64-linux-gnu/libgit2.so.22 (0x00007f2bf677f000)

Revision history for this message
Christoph Haas (chaas) wrote :

Strange enough - I took the most recent source package, built it, installed it and now gitg works.

What I did to get it working:

dget -ux http://archive.ubuntu.com/ubuntu/pool/universe/g/gitg/gitg_3.15.1-0ubuntu2.dsc
cd gitg-3.15.1/
sudo apt-get build-dep gitg
debuild -uc -us
cd ..
sudo dpkg -i gitg_3.15.1-0ubuntu2_amd64.deb
gitg

Revision history for this message
kgoeser (kevin-kevin-online) wrote :

This seems to be a dependency issue: following Christoph Haas to (including)
sudo apt-get build-dep gitg
already fixed it for me. No need to build and install the local package.

Revision history for this message
David Bennett (davidbennett) wrote :

Also had this problem with after an upgrade from Xubuntu 14.10 to 15.05
(xubuntu was installed on top of ubuntu server without recommends if that helps)

Following kgoeser advice I used `sudo apt-get build-dep gitg` to generate a list of missing build dependences:

The following NEW packages will be installed:
  autopoint dh-autoreconf gir1.2-atspi-2.0 gir1.2-gconf-2.0 gir1.2-gdesktopenums-3.0 gir1.2-gee-0.8 gir1.2-git2-glib-1.0 gir1.2-gtksource-3.0 gir1.2-gtkspell3-3.0 gir1.2-javascriptcoregtk-4.0 gir1.2-json-1.0 gir1.2-peas-1.0
  gir1.2-secret-1 gir1.2-webkit2-4.0 gnome-common gobject-introspection gsettings-desktop-schemas-dev intltool libatk-bridge2.0-dev libatspi2.0-dev libenchant-dev libgconf2-dev libgcrypt20-dev libgee-0.8-dev libgirepository1.0-dev
  libgit2-dev libgit2-glib-1.0-dev libgpg-error-dev libgtk-3-dev libgtksourceview-3.0-dev libgtkspell3-3-dev libhttp-parser-dev libjavascriptcoregtk-4.0-dev libjson-glib-dev libpeas-dev libsecret-1-dev libsoup2.4-dev libssh2-1-dev
  libvala-0.26-0 libwebkit2gtk-4.0-dev libxtst-dev valac valac-0.26 valac-0.26-vapi x11proto-record-dev

I don’t like installing unnecessary stuff so I cancelled that and took a punt that I was only missing `gir1.2-peas-1.0`.

After a:

sudo apt-get install gir1.2-peas-1.0

gitg was all working without errors :)

Revision history for this message
Leon Maurer (leon-n-maurer) wrote :

I had the same problem. Installing gir1.2-peas-1.0 solved it.

Revision history for this message
Thomas U. (thomas-unterthiner) wrote :

Can confirm that

    sudo apt-get install gir1.2-peas-1.0

Solved the issue for me as well (Xubuntu 15.04)

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for the report and information everyone.

From what I can see, the problem is that gitg doesn't depend on gir1.2-peas-1.0 since installing this resolves the issue. I've created a small patch which adds this dependency and have opened a merge proposal which will fix the issue in Ubuntu 15.04.

In Ubuntu Wily, the package has been resynced from Debian and already includes this dependency so things should already work there, see http://packages.ubuntu.com/wily/gitg for details. Does anyone know whether older releases might be affected too, or whether this issue was introduced in 15.04?

tags: added: packaging vivid
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

>Does anyone know whether older releases might be affected too, or whether this issue was introduced in 15.04?

Replying to myself: just checked with Ubuntu 14.10 in a vm and gitg 0.2.7-3 displays the summary section out-of-the-box. So looks like older releases are in fact not affected.

description: updated
Changed in gitg (Ubuntu):
importance: Undecided → Low
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Marking as fix released since gir1.2-peas-1.0 is added as a dependency in Ubuntu 15.10 and later releases.

Since then 15.04 has reached end of life (https://lists.ubuntu.com/archives/ubuntu-announce/2016-January/000203.html), so the SRU will unfortunately not happen.

Changed in gitg (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.