[mate-sensors-applet] 02/03: debian/patches: Add 1001_fix-FTBFS-on-hurd.patch. Fix FTBFS in sonypi plugin on GNU/Hurd. Refrain from using non-standard guint8 in the _IOR call, instead use the standard u_int8_t.

Mike Gabriel sunweaver at debian.org
Tue Aug 29 15:26:11 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 2a04356bd64d4284a171ea6cf1aa35325e94b3ba
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Aug 29 17:24:47 2017 +0200

    debian/patches: Add 1001_fix-FTBFS-on-hurd.patch. Fix FTBFS in sonypi plugin on GNU/Hurd. Refrain from using non-standard guint8 in the _IOR call, instead use the standard u_int8_t.
---
 debian/patches/1001_fix-FTBFS-on-hurd.patch | 36 +++++++++++++++++++++++++++++
 debian/patches/series                       |  1 +
 2 files changed, 37 insertions(+)

diff --git a/debian/patches/1001_fix-FTBFS-on-hurd.patch b/debian/patches/1001_fix-FTBFS-on-hurd.patch
new file mode 100644
index 0000000..1e5826b
--- /dev/null
+++ b/debian/patches/1001_fix-FTBFS-on-hurd.patch
@@ -0,0 +1,36 @@
+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 @@
+ 
+ /* 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_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);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b64f6df
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+1001_fix-FTBFS-on-hurd.patch

-- 
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