diff --git a/python-gobject-missing-prototypes.patch b/python-gobject-missing-prototypes.patch new file mode 100644 index 0000000..d92634b --- /dev/null +++ b/python-gobject-missing-prototypes.patch @@ -0,0 +1,31 @@ +From d005df9645fd5fb2f19bd09384355f45591f1e58 Mon Sep 17 00:00:00 2001 +From: Christoph Reiter +Date: Mon, 23 Jan 2017 21:26:05 +0100 +Subject: Disable -Werror=missing-prototypes + +https://bugzilla.gnome.org/show_bug.cgi?id=760056 +added some code triggering "missing-prototype" which we by default +treat as an error. This disables that specific error by default. + +https://bugzilla.gnome.org/show_bug.cgi?id=777534 +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index c8d95c7..8e225f4 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -228,7 +228,7 @@ AC_SUBST(INTROSPECTION_SCANNER) + AC_SUBST(INTROSPECTION_COMPILER) + + # compiler warnings, errors, required cflags, and code coverage support +-GNOME_COMPILE_WARNINGS([maximum]) ++GNOME_COMPILE_WARNINGS([maximum], [-Wno-error=missing-prototypes]) + AC_MSG_CHECKING(for Gnome code coverage support) + m4_ifdef([GNOME_CODE_COVERAGE], + [AC_MSG_RESULT(yes) +-- +cgit v0.12 + + diff --git a/python-gobject.changes b/python-gobject.changes index 8bfa7e4..cc23ca1 100644 --- a/python-gobject.changes +++ b/python-gobject.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Feb 22 18:06:29 UTC 2017 - dimstar@opensuse.org + +- Add python-gobject-missing-prototypes.patch: Disable + -Werror=missing-prototypes (bgo#777534). +- Add gnome-common BuildRequires and call autoreconf, as above + patch touches the build system. + ------------------------------------------------------------------- Mon Sep 19 14:58:45 UTC 2016 - dimstar@opensuse.org diff --git a/python-gobject.spec b/python-gobject.spec index a850a11..2bf2b99 100644 --- a/python-gobject.spec +++ b/python-gobject.spec @@ -1,7 +1,7 @@ # # spec file for package python-gobject # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -46,8 +46,11 @@ Url: https://wiki.gnome.org/Projects/PyGObject/ Source: http://download.gnome.org/sources/pygobject/3.22/%{_name}-%{version}.tar.xz # PATCH-FIX-UPSTREAM pycompile-searchpath.patch jmatejek@suse.com -- Fix build with python 3.4 Patch1: pycompile-searchpath.patch +# PATCH-FIX-UPSTREAM python-gobject-missing-prototypes.patch bgo#777534 dimstar@opensuse.org -- Disable -Werror=missing-prototypes, taken from git commit d005df +Patch2: python-gobject-missing-prototypes.patch BuildRequires: fdupes BuildRequires: glib2-devel >= 2.38.0 +BuildRequires: gnome-common BuildRequires: gobject-introspection-devel >= 1.46.0 BuildRequires: libffi-devel >= 3.0.0 %if %{build_for_python3} @@ -116,8 +119,10 @@ addon libraries such as pygtk. %prep %setup -q -n %{_name}-%{version} %patch1 -p1 +%patch2 -p1 %build +autoreconf -fiv %if %{build_for_python3} export PYTHON=python3 %else diff --git a/python3-gobject.changes b/python3-gobject.changes index 8bfa7e4..cc23ca1 100644 --- a/python3-gobject.changes +++ b/python3-gobject.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Feb 22 18:06:29 UTC 2017 - dimstar@opensuse.org + +- Add python-gobject-missing-prototypes.patch: Disable + -Werror=missing-prototypes (bgo#777534). +- Add gnome-common BuildRequires and call autoreconf, as above + patch touches the build system. + ------------------------------------------------------------------- Mon Sep 19 14:58:45 UTC 2016 - dimstar@opensuse.org diff --git a/python3-gobject.spec b/python3-gobject.spec index d222932..dceb72b 100644 --- a/python3-gobject.spec +++ b/python3-gobject.spec @@ -1,7 +1,7 @@ # # spec file for package python3-gobject # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -46,8 +46,11 @@ Url: https://wiki.gnome.org/Projects/PyGObject/ Source: http://download.gnome.org/sources/pygobject/3.22/%{_name}-%{version}.tar.xz # PATCH-FIX-UPSTREAM pycompile-searchpath.patch jmatejek@suse.com -- Fix build with python 3.4 Patch1: pycompile-searchpath.patch +# PATCH-FIX-UPSTREAM python-gobject-missing-prototypes.patch bgo#777534 dimstar@opensuse.org -- Disable -Werror=missing-prototypes, taken from git commit d005df +Patch2: python-gobject-missing-prototypes.patch BuildRequires: fdupes BuildRequires: glib2-devel >= 2.38.0 +BuildRequires: gnome-common BuildRequires: gobject-introspection-devel >= 1.46.0 BuildRequires: libffi-devel >= 3.0.0 %if %{build_for_python3} @@ -116,8 +119,10 @@ addon libraries such as pygtk. %prep %setup -q -n %{_name}-%{version} %patch1 -p1 +%patch2 -p1 %build +autoreconf -fiv %if %{build_for_python3} export PYTHON=python3 %else