]> git.pld-linux.org Git - packages/geoclue.git/commitdiff
fix build with -Werror=format-security on recent gcc
authorJan Palus <atler@pld-linux.org>
Mon, 12 Aug 2019 21:13:32 +0000 (23:13 +0200)
committerJan Palus <atler@pld-linux.org>
Mon, 12 Aug 2019 21:13:32 +0000 (23:13 +0200)
geoclue-format.patch [new file with mode: 0644]
geoclue.spec

diff --git a/geoclue-format.patch b/geoclue-format.patch
new file mode 100644 (file)
index 0000000..950a30c
--- /dev/null
@@ -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+
index 4fd9ed76566f24ba07ff79e5ab3501f716990cd0..cdfb939f87133f8a915acd8d5cb012b8e008063b 100644 (file)
@@ -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}
This page took 0.52692 seconds and 4 git commands to generate.