Package: gitg
Version: 0.2.7-1
Severity: serious
gitg-commit-view.c:1663:2: error: implicit declaration of function
‘gtk_source_style_scheme_get_style’ [-Werror=implicit-function-declaration]
style = gtk_source_style_scheme_get_style (scheme, "current-line");
^
I initially ran into this error on a raspbian jessie autobuilder (
http://buildd.raspbian.org/status/fetch.php?pkg=gitg&arch=armhf&ver=0.2.7-1%2Bb5&stamp=1393673176
), googling showed it had also been seen in ubuntu trusty (
https://bugs.launchpad.net/ubuntu/+source/gitg/+bug/1277882 ) and
testing locally showed it also affected debian sid.
The fix is trivial, just adding an include statement, debdiff of what I
uploaded to raspbian is attatched, no intent to NMU in debian.
diff -Nru gitg-0.2.7/debian/changelog gitg-0.2.7/debian/changelog
--- gitg-0.2.7/debian/changelog 2013-05-08 02:51:42.000000000 +0000
+++ gitg-0.2.7/debian/changelog 2014-03-01 16:01:06.000000000 +0000
@@ -1,3 +1,10 @@
+gitg (0.2.7-1+rpi1) jessie-staging; urgency=medium
+
+ * Add #include <gtksourceview/gtksourcestylescheme.h> to gitg-commit-view.c
+ to fix FTBFS.
+
+ -- Peter Michael Green <plugw...@raspbian.org> Sat, 01 Mar 2014 16:00:04
+0000
+
gitg (0.2.7-1) unstable; urgency=low
* Upload to unstable.
diff -Nru gitg-0.2.7/debian/patches/add-gtksourcestylescheme.h-include.patch
gitg-0.2.7/debian/patches/add-gtksourcestylescheme.h-include.patch
--- gitg-0.2.7/debian/patches/add-gtksourcestylescheme.h-include.patch
1970-01-01 00:00:00.000000000 +0000
+++ gitg-0.2.7/debian/patches/add-gtksourcestylescheme.h-include.patch
2014-03-01 16:03:20.000000000 +0000
@@ -0,0 +1,13 @@
+Description: Add #include <gtksourceview/gtksourcestylescheme.h> to
gitg-commit-view.c to fix FTBFS.
+Author: Peter Michael Green <plugw...@raspbian.org>
+
+--- gitg-0.2.7.orig/gitg/gitg-commit-view.c
++++ gitg-0.2.7/gitg/gitg-commit-view.c
+@@ -25,6 +25,7 @@
+ #include <gtksourceview/gtksourcelanguagemanager.h>
+ #include <gtksourceview/gtksourcemarkattributes.h>
+ #include <gtksourceview/gtksourcestyleschememanager.h>
++#include <gtksourceview/gtksourcestylescheme.h>
+ #include <gtksourceview/gtksourcegutter.h>
+ #include <gtksourceview/gtksourcegutterrendererpixbuf.h>
+ #include <glib/gi18n.h>
diff -Nru gitg-0.2.7/debian/patches/series gitg-0.2.7/debian/patches/series
--- gitg-0.2.7/debian/patches/series 2012-09-30 09:07:49.000000000 +0000
+++ gitg-0.2.7/debian/patches/series 2014-03-01 16:02:44.000000000 +0000
@@ -1 +1,2 @@
desktop-add-RevisionControl.patch
+add-gtksourcestylescheme.h-include.patch