Hello community,

here is the log from the commit of package libgit2-glib for openSUSE:Factory 
checked in at 2018-04-30 22:50:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libgit2-glib (Old)
 and      /work/SRC/openSUSE:Factory/.libgit2-glib.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libgit2-glib"

Mon Apr 30 22:50:04 2018 rev:30 rq:601534 version:0.26.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/libgit2-glib/libgit2-glib.changes        
2018-03-08 10:51:06.303148778 +0100
+++ /work/SRC/openSUSE:Factory/.libgit2-glib.new/libgit2-glib.changes   
2018-04-30 22:50:06.379797392 +0200
@@ -1,0 +2,6 @@
+Wed Apr 25 10:23:05 UTC 2018 - dims...@opensuse.org
+
+- Add libgit2-glib-libgit2-0.27.0.patch: Fix build with libgit2
+  0.27.0. Patch only conditionally applied.
+
+-------------------------------------------------------------------

New:
----
  libgit2-glib-libgit2-0.27.0.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libgit2-glib.spec ++++++
--- /var/tmp/diff_new_pack.NqFwot/_old  2018-04-30 22:50:07.175768351 +0200
+++ /var/tmp/diff_new_pack.NqFwot/_new  2018-04-30 22:50:07.175768351 +0200
@@ -25,7 +25,8 @@
 Group:          Development/Libraries/C and C++
 URL:            https://wiki.gnome.org/Projects/Libgit2-glib
 Source0:        
https://download.gnome.org/sources/libgit2-glib/0.26/%{name}-%{version}.tar.xz
-
+# PATCH-FIX-UPSTREAM libgit2-glib-libgit2-0.27.0.patch bgo#794890 
dims...@opensuse.org -- Fix build with libgit2 0.27.0
+Patch0:         libgit2-glib-libgit2-0.27.0.patch
 BuildRequires:  gtk-doc
 BuildRequires:  meson
 BuildRequires:  pkgconfig
@@ -65,7 +66,10 @@
 libgit2-glib is a GLib wrapper library around the libgit2 git access library.
 
 %prep
-%autosetup
+%setup -q
+if pkg-config --atleast-version=0.27.0 libgit2; then
+%patch0 -p1
+fi
 
 %build
 %meson \

++++++ libgit2-glib-libgit2-0.27.0.patch ++++++
Index: libgit2-glib-0.26.4/libgit2-glib/ggit-config.c
===================================================================
--- libgit2-glib-0.26.4.orig/libgit2-glib/ggit-config.c
+++ libgit2-glib-0.26.4/libgit2-glib/ggit-config.c
@@ -295,6 +295,7 @@ ggit_config_add_file (GgitConfig      *c
        ret = git_config_add_file_ondisk (_ggit_native_get (config),
                                          path,
                                          (git_config_level_t)level,
+                                         NULL,
                                          force);
        g_free (path);
 

Reply via email to