Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/mate-sensors-applet mate-sensors-applet: fix ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/688a4003c18f
branches:  trunk
changeset: 437375:688a4003c18f
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Sat Aug 22 00:46:49 2020 +0000

description:
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.)

diffstat:

 sysutils/mate-sensors-applet/distinfo                                         |   3 +-
 sysutils/mate-sensors-applet/patches/patch-plugins_i2c-proc_i2c-proc-plugin.c |  22 ++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r 4049ce61d1fa -r 688a4003c18f sysutils/mate-sensors-applet/distinfo
--- a/sysutils/mate-sensors-applet/distinfo     Sat Aug 22 00:28:29 2020 +0000
+++ b/sysutils/mate-sensors-applet/distinfo     Sat Aug 22 00:46:49 2020 +0000
@@ -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 -r 4049ce61d1fa -r 688a4003c18f sysutils/mate-sensors-applet/patches/patch-plugins_i2c-proc_i2c-proc-plugin.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/mate-sensors-applet/patches/patch-plugins_i2c-proc_i2c-proc-plugin.c     Sat Aug 22 00:46:49 2020 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index