Blame mmgui-fix-linker-errors.patch

29e635
# HG changeset patch
29e635
# User Alex <alex@linuxonly.ru>
29e635
# Date 1521544292 -10800
29e635
#      Tue Mar 20 14:11:32 2018 +0300
29e635
# Node ID 18b40f69c56d4cd1670a775c31091b63b1be9dc4
29e635
# Parent  b2959a69539dded2623f33aa76209e28a769d3ee
29e635
#
29e635
# Fix linker errors
29e635
#
29e635
diff -r b2959a69539d -r 18b40f69c56d meson.build
29e635
--- a/meson.build	Sat Mar 17 22:08:20 2018 +0300
29e635
+++ b/meson.build	Tue Mar 20 14:11:32 2018 +0300
29e635
@@ -13,6 +13,7 @@
29e635
 appindicator = dependency('appindicator3-0.1', version: '>=0.4.92', required: false)
29e635
 gdbm = meson.get_compiler('c').find_library('gdbm')
29e635
 rt = meson.get_compiler('c').find_library('rt')
29e635
+m = meson.get_compiler('c').find_library('m')
29e635
 
29e635
 po4a = find_program('po4a')
29e635
 
29e635
diff -r b2959a69539d -r 18b40f69c56d src/Makefile
29e635
--- a/src/Makefile	Sat Mar 17 22:08:20 2018 +0300
29e635
+++ b/src/Makefile	Tue Mar 20 14:11:32 2018 +0300
29e635
@@ -4,10 +4,10 @@
29e635
 GCC       = gcc
29e635
 ifeq ($(ADDLIBSNAMES),)
29e635
 INC       = `pkg-config --cflags gtk+-3.0 gthread-2.0 gmodule-2.0`
29e635
-LIB       = `pkg-config --libs gtk+-3.0 gthread-2.0 gmodule-2.0` -lgdbm
29e635
+LIB       = `pkg-config --libs gtk+-3.0 gthread-2.0 gmodule-2.0` -lgdbm -lm
29e635
 else
29e635
 INC       = `pkg-config --cflags gtk+-3.0 gthread-2.0 gmodule-2.0 $(ADDLIBSNAMES)`
29e635
-LIB       = `pkg-config --libs gtk+-3.0 gthread-2.0 gmodule-2.0 $(ADDLIBSNAMES)` -lgdbm
29e635
+LIB       = `pkg-config --libs gtk+-3.0 gthread-2.0 gmodule-2.0 $(ADDLIBSNAMES)` -lgdbm -lm
29e635
 endif
29e635
 OBJ       = settings.o strformat.o libpaths.o dbus-utils.o notifications.o addressbooks.o ayatana.o smsdb.o trafficdb.o providersdb.o modem-settings.o ussdlist.o encoding.o vcard.o netlink.o polkit.o svcmanager.o mmguicore.o contacts-page.o traffic-page.o scan-page.o info-page.o ussd-page.o sms-page.o devices-page.o preferences-window.o welcome-window.o connection-editor-window.o main.o
29e635
 
29e635
diff -r b2959a69539d -r 18b40f69c56d src/meson.build
29e635
--- a/src/meson.build	Sat Mar 17 22:08:20 2018 +0300
29e635
+++ b/src/meson.build	Tue Mar 20 14:11:32 2018 +0300
29e635
@@ -43,4 +43,4 @@
29e635
 	c_args: c_args,
29e635
 	link_args: link_args,
29e635
 	install: true,
29e635
-	dependencies : [glib, gobject, gio, gtk, gdbm, gtkspell, appindicator])
29e635
+	dependencies : [glib, gobject, gio, gmodule, gtk, gdbm, gtkspell, appindicator, m])
29e635
diff -r b2959a69539d -r 18b40f69c56d src/modules/Makefile
29e635
--- a/src/modules/Makefile	Sat Mar 17 22:08:20 2018 +0300
29e635
+++ b/src/modules/Makefile	Tue Mar 20 14:11:32 2018 +0300
29e635
@@ -4,9 +4,9 @@
29e635
 GCCLMOD    = gcc -shared
29e635
 INCMOD     = `pkg-config --cflags glib-2.0` `pkg-config --cflags  gmodule-2.0` `pkg-config --cflags gio-2.0`
29e635
 LIBMOD     = `pkg-config --libs glib-2.0` `pkg-config --libs gmodule-2.0` `pkg-config --libs gio-2.0`
29e635
-LIBMOD1    = `pkg-config --libs glib-2.0` `pkg-config --libs gmodule-2.0` `pkg-config --libs gio-2.0` -lgdbm
29e635
-LIBMOD2    = `pkg-config --libs glib-2.0` `pkg-config --libs gmodule-2.0` `pkg-config --libs gio-2.0` -lgdbm
29e635
-LIBMOD5    = `pkg-config --libs glib-2.0` `pkg-config --libs gmodule-2.0` `pkg-config --libs gio-2.0` -lgdbm -lrt
29e635
+LIBMOD1    = `pkg-config --libs glib-2.0` `pkg-config --libs gmodule-2.0` `pkg-config --libs gio-2.0` -lgdbm -lm
29e635
+LIBMOD2    = `pkg-config --libs glib-2.0` `pkg-config --libs gmodule-2.0` `pkg-config --libs gio-2.0` -lgdbm -lm
29e635
+LIBMOD5    = `pkg-config --libs glib-2.0` `pkg-config --libs gmodule-2.0` `pkg-config --libs gio-2.0` -lgdbm -lrt -lm
29e635
 OBJMOD1    = smsdb.o encoding.o dbus-utils.o mm06.o
29e635
 OBJMOD2    = smsdb.o encoding.o dbus-utils.o mm07.o
29e635
 OBJMOD3    = uuid.o nm09.o
29e635
diff -r b2959a69539d -r 18b40f69c56d src/modules/meson.build
29e635
--- a/src/modules/meson.build	Sat Mar 17 22:08:20 2018 +0300
29e635
+++ b/src/modules/meson.build	Tue Mar 20 14:11:32 2018 +0300
29e635
@@ -14,7 +14,7 @@
29e635
 	c_args: mm06_c_args,
29e635
 	install: true,
29e635
 	install_dir: join_paths(get_option('prefix'), get_option('libdir'), 'modem-manager-gui', 'modules'),
29e635
-	dependencies : [glib, gobject, gio, gmodule, gdbm])
29e635
+	dependencies : [glib, gobject, gio, gmodule, gdbm, m])
29e635
 
29e635
 mm07_c_sources = [
29e635
 	'../smsdb.c',
29e635
@@ -32,7 +32,7 @@
29e635
 	c_args: mm07_c_args,
29e635
 	install: true,
29e635
 	install_dir: join_paths(get_option('prefix'), get_option('libdir'), 'modem-manager-gui', 'modules'),
29e635
-	dependencies : [glib, gobject, gio, gmodule, gdbm])
29e635
+	dependencies : [glib, gobject, gio, gmodule, gdbm, m])
29e635
 
29e635
 nm09_c_sources = [
29e635
 	'uuid.c',
29e635
@@ -82,7 +82,7 @@
29e635
 	c_args: ofono109_c_args,
29e635
 	install: true,
29e635
 	install_dir: join_paths(get_option('prefix'), get_option('libdir'), 'modem-manager-gui', 'modules'),
29e635
-	dependencies : [glib, gobject, gio, gmodule, gdbm, rt])
29e635
+	dependencies : [glib, gobject, gio, gmodule, gdbm, rt, m])
29e635
 
29e635
 connman112_c_sources = [
29e635
 	'uuid.c',