pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/xfce4-genmon-plugin xfce4-genmon-plugin: Set ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ea00915404d9
branches:  trunk
changeset: 380564:ea00915404d9
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu May 17 09:57:42 2018 +0000

description:
xfce4-genmon-plugin: Set _XOPEN_SOURCE correctly on SunOS.

diffstat:

 sysutils/xfce4-genmon-plugin/distinfo                              |   4 +-
 sysutils/xfce4-genmon-plugin/patches/patch-panel-plugin_cmdspawn.c |  30 +++++++--
 2 files changed, 25 insertions(+), 9 deletions(-)

diffs (88 lines):

diff -r 839f28008408 -r ea00915404d9 sysutils/xfce4-genmon-plugin/distinfo
--- a/sysutils/xfce4-genmon-plugin/distinfo     Thu May 17 09:53:22 2018 +0000
+++ b/sysutils/xfce4-genmon-plugin/distinfo     Thu May 17 09:57:42 2018 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.5 2018/05/15 21:55:38 youri Exp $
+$NetBSD: distinfo,v 1.6 2018/05/17 09:57:42 jperkin Exp $
 
 SHA1 (xfce4-genmon-plugin-4.0.1.tar.bz2) = e7a41a6fb47d2ef4a803e19bf0917f99eeb21257
 RMD160 (xfce4-genmon-plugin-4.0.1.tar.bz2) = 065cfca1f5f842d815e9b618644de35f4d2821df
 SHA512 (xfce4-genmon-plugin-4.0.1.tar.bz2) = 14590ba4a3b31773e38139d274c93060b2dfdf3cd476dc2235f95f987529b93b74d2422507cc4bf1152f376ec9c6a01bd1da903d422757b95b19c01aa412b35e
 Size (xfce4-genmon-plugin-4.0.1.tar.bz2) = 327605 bytes
-SHA1 (patch-panel-plugin_cmdspawn.c) = 87109d4b6ac0e7ca804a3ee67033111208137231
+SHA1 (patch-panel-plugin_cmdspawn.c) = dfd800039cab9595eae5ae21a3a0d36d1e270a50
diff -r 839f28008408 -r ea00915404d9 sysutils/xfce4-genmon-plugin/patches/patch-panel-plugin_cmdspawn.c
--- a/sysutils/xfce4-genmon-plugin/patches/patch-panel-plugin_cmdspawn.c        Thu May 17 09:53:22 2018 +0000
+++ b/sysutils/xfce4-genmon-plugin/patches/patch-panel-plugin_cmdspawn.c        Thu May 17 09:57:42 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-panel-plugin_cmdspawn.c,v 1.2 2017/06/20 21:51:31 youri Exp $
+$NetBSD: patch-panel-plugin_cmdspawn.c,v 1.3 2018/05/17 09:57:42 jperkin Exp $
 
 Fix SunOS build.
 
---- panel-plugin/cmdspawn.c.orig       2012-05-10 02:09:21.000000000 +0000
+--- panel-plugin/cmdspawn.c.orig       2017-10-29 00:52:07.000000000 +0000
 +++ panel-plugin/cmdspawn.c
 @@ -12,7 +12,7 @@
   *  version 2.1 of the License, or (at your option) any later version.
@@ -13,7 +13,23 @@
   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   *  Lesser General Public License for more details.
  
-@@ -59,12 +59,12 @@ char *genmon_Spawn (char **argv, int wai
+@@ -24,6 +24,7 @@
+ /* Posix-compliance to make sure that only the calling thread is
+    duplicated, not the whole process (e.g Solaris) */
+ 
++#if !defined(__sun) || (!defined(_XOPEN_SOURCE) && (__STDC_VERSION__-0 < 199901L))
+ #ifndef _POSIX_C_SOURCE
+ #define _POSIX_C_SOURCE 199506L
+ #endif
+@@ -31,6 +32,7 @@
+ #ifndef _XOPEN_SOURCE
+ #define _XOPEN_SOURCE 500
+ #endif
++#endif
+ 
+ #include "cmdspawn.h"
+ 
+@@ -59,12 +61,12 @@ char *genmon_Spawn (char **argv, int wai
   /* Spawn a command and capture its output from stdout or stderr */
   /* Return allocated string on success, otherwise NULL */
  {
@@ -29,7 +45,7 @@
      int             status;
      int             i, j, k;
      char           *str = NULL;
-@@ -73,19 +73,19 @@ char *genmon_Spawn (char **argv, int wai
+@@ -73,19 +75,19 @@ char *genmon_Spawn (char **argv, int wai
          fprintf (stderr, "Spawn() error: No parameters passed!\n");
          return (NULL);
      }
@@ -52,7 +68,7 @@
                  j = i + 1; // stdout/stderr file descriptor
                  close (j);
                  k = dup2 (aaiPipe[i][WR], j);
-@@ -100,7 +100,7 @@ char *genmon_Spawn (char **argv, int wai
+@@ -100,7 +102,7 @@ char *genmon_Spawn (char **argv, int wai
          exit (-1);
      }
  
@@ -61,7 +77,7 @@
          close (aaiPipe[i][WR]); /* close write end of pipes in parent */
  
      /* Wait for child completion */
-@@ -113,16 +113,16 @@ char *genmon_Spawn (char **argv, int wai
+@@ -113,16 +115,16 @@ char *genmon_Spawn (char **argv, int wai
          }
  
          /* Read stdout/stderr pipes' read-ends */
@@ -82,7 +98,7 @@
              goto End;
  
          j = 0;
-@@ -143,7 +143,7 @@ char *genmon_Spawn (char **argv, int wai
+@@ -143,7 +145,7 @@ char *genmon_Spawn (char **argv, int wai
  
      End:
      /* Close read end of pipes */



Home | Main Index | Thread Index | Old Index