[mate-sensors-applet] 01/03: debian/patches: Fix 1001_fix-FTBFS-on-hurd.patch. Only the _IOR() macro passages require a type change.
Mike Gabriel
sunweaver at debian.org
Wed Aug 30 12:29:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch master
in repository mate-sensors-applet.
commit 8959370de9e966fff546fb9359811212bf0b2fdc
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Wed Aug 30 14:27:34 2017 +0200
debian/patches: Fix 1001_fix-FTBFS-on-hurd.patch. Only the _IOR() macro passages require a type change.
---
debian/patches/1001_fix-FTBFS-on-hurd.patch | 39 +++++++++++------------------
1 file changed, 14 insertions(+), 25 deletions(-)
diff --git a/debian/patches/1001_fix-FTBFS-on-hurd.patch b/debian/patches/1001_fix-FTBFS-on-hurd.patch
index 1e5826b..1f4a233 100644
--- a/debian/patches/1001_fix-FTBFS-on-hurd.patch
+++ b/debian/patches/1001_fix-FTBFS-on-hurd.patch
@@ -1,36 +1,25 @@
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Description: Make sonypi plugin portable to GNU/Hurd.
---- a/plugins/sonypi/sonypi-plugin.c
-+++ b/plugins/sonypi/sonypi-plugin.c
-@@ -40,8 +40,8 @@
+
+Index: mate-sensors-applet-1.18.2/plugins/sonypi/sonypi-plugin.c
+===================================================================
+--- mate-sensors-applet-1.18.2.orig/plugins/sonypi/sonypi-plugin.c
++++ mate-sensors-applet-1.18.2/plugins/sonypi/sonypi-plugin.c
+@@ -36,12 +36,14 @@
+ #include <glib/gi18n.h>
+ #include "sonypi-plugin.h"
+
++#include <stdint.h>
++
+ const gchar *plugin_name = "sonypi";
/* These values are taken from spicctrl by Stelian Pop */
#define SONYPI_DEV "/dev/sonypi"
-#define SONYPI_IOCGFAN _IOR('v', 10, guint8)
-#define SONYPI_IOCGTEMP _IOR('v', 12, guint8)
-+#define SONYPI_IOCGFAN _IOR('v', 10, u_int8_t)
-+#define SONYPI_IOCGTEMP _IOR('v', 12, u_int8_t)
++#define SONYPI_IOCGFAN _IOR('v', 10, uint8_t)
++#define SONYPI_IOCGTEMP _IOR('v', 12, uint8_t)
#define SONYPI_TEMP "sonypi_temp"
enum {
-@@ -74,7 +74,7 @@
- SensorType type,
- GError **error) {
- int fd;
-- guint8 value8;
-+ u_int8_t value8;
-
- gdouble sensor_value = -1.0;
-
---- a/sensors-applet/sensors-applet-settings.c
-+++ b/sensors-applet/sensors-applet-settings.c
-@@ -30,7 +30,7 @@
- gchar *unique_id;
- gchar *unique_id_hash;
- GChecksum *checksum;
-- guint8 digest[16];
-+ u_int8_t digest[16];
- gsize digest_len = sizeof (digest);
-
- unique_id = g_strdup_printf ("%s/%s/%s", interface, id, path);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-sensors-applet.git
More information about the pkg-mate-commits
mailing list