summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2021-01-12 10:36:53 +0100
committerDavid Seifert <soap@gentoo.org>2021-01-12 10:36:53 +0100
commit989f5747c6845c252e893686086f4452df94d9c5 (patch)
tree060b451c30c6ffaf2d3972dce2816fee63252dad /sys-auth/fprintd/files
parentsys-devel/bmake: Bump to 20201222 (diff)
downloadgentoo-989f5747c6845c252e893686086f4452df94d9c5.tar.gz
gentoo-989f5747c6845c252e893686086f4452df94d9c5.tar.bz2
gentoo-989f5747c6845c252e893686086f4452df94d9c5.zip
sys-auth/fprintd: Fix build with gcc-10
* Disable static-libs Closes: https://github.com/gentoo/gentoo/pull/18965 Closes: https://bugs.gentoo.org/764077 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sys-auth/fprintd/files')
-rw-r--r--sys-auth/fprintd/files/fprintd-0.8.1-fno-common.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/sys-auth/fprintd/files/fprintd-0.8.1-fno-common.patch b/sys-auth/fprintd/files/fprintd-0.8.1-fno-common.patch
new file mode 100644
index 000000000000..ba4574fce60d
--- /dev/null
+++ b/sys-auth/fprintd/files/fprintd-0.8.1-fno-common.patch
@@ -0,0 +1,44 @@
+--- a/src/device.c
++++ b/src/device.c
+@@ -47,6 +47,7 @@ static char *fingers[] = {
+ "right-little-finger"
+ };
+
++extern struct storage store;
+ extern DBusGConnection *fprintd_dbus_conn;
+
+ static void fprint_device_claim(FprintDevice *rdev,
+--- a/src/file_storage.c
++++ b/src/file_storage.c
+@@ -44,6 +44,7 @@
+ #define FP_FINGER_IS_VALID(finger) \
+ ((finger) >= LEFT_THUMB && (finger) <= RIGHT_LITTLE)
+
++extern struct storage store;
+ static char *get_path_to_storedir(uint16_t driver_id, uint32_t devtype, char *base_store)
+ {
+ char idstr[5];
+--- a/src/main.c
++++ b/src/main.c
+@@ -34,6 +34,7 @@
+ #include "storage.h"
+ #include "file_storage.h"
+
++struct storage store;
+ extern DBusGConnection *fprintd_dbus_conn;
+ static gboolean no_timeout = FALSE;
+ static gboolean g_fatal_warnings = FALSE;
+--- a/src/storage.h
++++ b/src/storage.h
+@@ -41,10 +41,7 @@ struct storage {
+ storage_discover_prints discover_prints;
+ };
+
+-typedef struct storage fp_storage;
+-
+-/* The currently setup store */
+-fp_storage store;
++extern struct storage store;
+
+ #endif
+