[packages/geoclue] fix build with -Werror=format-security on recent gcc
atler
atler at pld-linux.org
Mon Aug 12 23:14:47 CEST 2019
commit e3270c1f4ef4f1e917733607288ad3619262e8a1
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Aug 12 23:13:32 2019 +0200
fix build with -Werror=format-security on recent gcc
geoclue-format.patch | 11 +++++++++++
geoclue.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/geoclue.spec b/geoclue.spec
index 4fd9ed7..cdfb939 100644
--- a/geoclue.spec
+++ b/geoclue.spec
@@ -13,6 +13,7 @@ Source0: http://freedesktop.org/~hadess/%{name}-%{version}.tar.gz
# Source0-md5: 779245045bfeeec4853da8baaa3a18e6
Patch0: %{name}-libsoup.patch
Patch1: %{name}-gpsd.patch
+Patch2: %{name}-format.patch
URL: http://geoclue.freedesktop.org/
BuildRequires: GConf2-devel >= 2.0
BuildRequires: NetworkManager-devel
@@ -129,6 +130,7 @@ Interfejs geoclue do gypsy.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__gtkdocize}
diff --git a/geoclue-format.patch b/geoclue-format.patch
new file mode 100644
index 0000000..950a30c
--- /dev/null
+++ b/geoclue-format.patch
@@ -0,0 +1,11 @@
+--- geoclue-0.12.99/configure.ac.orig 2019-08-12 23:10:56.302187404 +0200
++++ geoclue-0.12.99/configure.ac 2019-08-12 23:11:19.675432391 +0200
+@@ -64,7 +64,7 @@
+ AC_SUBST(DBUS_SERVICES_DIR)
+ AC_DEFINE_UNQUOTED(DBUS_SERVICES_DIR, "$DBUS_SERVICES_DIR", [Where services dir for D-Bus is])
+
+-CFLAGS="$CFLAGS -g -Wall -Wno-format"
++CFLAGS="$CFLAGS -g -Wall"
+
+ # -----------------------------------------------------------
+ # gtk+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/geoclue.git/commitdiff/83fb0372d218ca04a6eccff9a5b2294981b525b1
More information about the pld-cvs-commit
mailing list