summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgutteridge <gutteridge@pkgsrc.org>2020-08-22 00:46:49 +0000
committergutteridge <gutteridge@pkgsrc.org>2020-08-22 00:46:49 +0000
commit3b026e300c0ac2f329cdacef0b917933b681126e (patch)
treef1d5de714c566ca6014e89390f71d3ce8dce01dd
parent26bfcf1233464448eaacf35aa70516769ca78ffb (diff)
downloadpkgsrc-3b026e300c0ac2f329cdacef0b917933b681126e.tar.gz
mate-sensors-applet: fix (some) builds
Expect basic headers to be available universally. The configure script doesn't actually check for or define HAVE_LOCALE_H, which can cause breakages when locale.h isn't pulled in through other means already. Simplify the source file in question, rather than making configure more complicated. (There are other source files in this package that unconditionally expect stdio.h to be present, which seems reasonable.)
-rw-r--r--sysutils/mate-sensors-applet/distinfo3
-rw-r--r--sysutils/mate-sensors-applet/patches/patch-plugins_i2c-proc_i2c-proc-plugin.c22
2 files changed, 24 insertions, 1 deletions
diff --git a/sysutils/mate-sensors-applet/distinfo b/sysutils/mate-sensors-applet/distinfo
index 65b13340411..e5cb30a5a7c 100644
--- a/sysutils/mate-sensors-applet/distinfo
+++ b/sysutils/mate-sensors-applet/distinfo
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.7 2020/04/05 16:05:44 bsiegert Exp $
+$NetBSD: distinfo,v 1.8 2020/08/22 00:46:49 gutteridge Exp $
SHA1 (mate-sensors-applet-1.24.0.tar.xz) = 909a462908abb0b0943be2046d935396a59d65a6
RMD160 (mate-sensors-applet-1.24.0.tar.xz) = 317bcc8a405524035d4cbbec4c9d937ea86317d5
SHA512 (mate-sensors-applet-1.24.0.tar.xz) = 039834b7cfe641e670e372e311da3d737254ab3cf13b27e71c6555888ac1165766fe2d940bcea44a5ceed5f0ddcd3390d01331d927121137c21a6647c68875c2
Size (mate-sensors-applet-1.24.0.tar.xz) = 580536 bytes
+SHA1 (patch-plugins_i2c-proc_i2c-proc-plugin.c) = a630cdff99696fc893df863be43433a00f3c07c4
SHA1 (patch-plugins_sonypi_sonypi-plugin.c) = 903f3c27e211518934fad8cf1493fb79bd198ae1
SHA1 (patch-sensors-applet_Makefile.in) = 260e64160369d2e373bfd8219a9bf814966c33be
diff --git a/sysutils/mate-sensors-applet/patches/patch-plugins_i2c-proc_i2c-proc-plugin.c b/sysutils/mate-sensors-applet/patches/patch-plugins_i2c-proc_i2c-proc-plugin.c
new file mode 100644
index 00000000000..a43ac55b042
--- /dev/null
+++ b/sysutils/mate-sensors-applet/patches/patch-plugins_i2c-proc_i2c-proc-plugin.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-plugins_i2c-proc_i2c-proc-plugin.c,v 1.1 2020/08/22 00:46:49 gutteridge Exp $
+
+Expect basic headers to be available universally. (The configure script
+doesn't actually check for or define HAVE_LOCALE_H, which can cause
+breakages. Simplify here, rather than making configure more complicated.)
+
+--- plugins/i2c-proc/i2c-proc-plugin.c.orig 2020-02-10 12:40:35.000000000 +0000
++++ plugins/i2c-proc/i2c-proc-plugin.c
+@@ -20,13 +20,8 @@
+ #include <config.h>
+ #endif /* HAVE_CONFIG_H */
+
+-#ifdef HAVE_STDIO_H
+ #include <stdio.h>
+-#endif /* HAVE_STDIO_H */
+-
+-#ifdef HAVE_LOCALE_H
+ #include <locale.h>
+-#endif
+
+ #include <glib.h>
+ #include <glib/gi18n.h>