Skip to content

Commit 5283873

Browse files
committed
xfce4-genmon-plugin: update to 4.2.0
4.2.0 (2023/04/16) ================== - Add shell script to migrate settings to xfconf - Fix GDK_Critical - Fixed deskbar support. Issue #8 - Add Update Now menu option to right-click menu - build: Add GLib requirement - build: Fix autotools warnings - Use "logo-icon-name" instead of "logo" in about dialog - ***Migrate settings to xfconf - Remove unused variable - Fix intltool lock file bug in make distcheck - Remove closing of standard file descriptors in the child process - Update COPYING - Add <css> tag support - fixed .genmon_label and -gtk-icon transform bugs - Fix code indentation and readalility - Add support for single and multi-row panel layout options - Added support for <css></css> XML tag. Changed default progressbar width to 4px - automake: Modernize following other projects - autoconf: Some updates - Update `.gitignore` - Add missing comments to code functions - Fix indentation - Translation updates
1 parent bd38256 commit 5283873

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

sysutils/xfce4-genmon-plugin/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# $NetBSD: Makefile,v 1.50 2023/01/29 21:17:52 ryoon Exp $
1+
# $NetBSD: Makefile,v 1.51 2023/04/19 23:53:15 gutteridge Exp $
22

3-
PKGREVISION= 4
43
.include "../../meta-pkgs/xfce4/Makefile.common"
54

6-
VERSION= 4.1.1
5+
VERSION= 4.2.0
76
DISTNAME= xfce4-genmon-plugin-${VERSION}
87
CATEGORIES= sysutils
98
MASTER_SITES= https://archive.xfce.org/src/panel-plugins/xfce4-genmon-plugin/${VERSION:R}/
@@ -13,5 +12,6 @@ COMMENT= Xfce general purpose monitor plugin
1312

1413
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
1514

15+
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
1616
.include "../../x11/xfce4-panel/buildlink3.mk"
1717
.include "../../mk/bsd.pkg.mk"

sysutils/xfce4-genmon-plugin/distinfo

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$NetBSD: distinfo,v 1.10 2021/11/30 15:03:49 gutteridge Exp $
1+
$NetBSD: distinfo,v 1.11 2023/04/19 23:53:15 gutteridge Exp $
22

3-
BLAKE2s (xfce4-genmon-plugin-4.1.1.tar.bz2) = 0e3d73ed47713c78300a5f73382507f867f2749f4b3c6d70622afa85a21a4b3b
4-
SHA512 (xfce4-genmon-plugin-4.1.1.tar.bz2) = 663dabcdfb9d85325be5bc000f44e6cd61f78143e6d49bc7c481d14eccc3601408e2a7bed1276de5fcb24e75af66d8765fd0dc373dc8b82c1118fb5da2673c03
5-
Size (xfce4-genmon-plugin-4.1.1.tar.bz2) = 400772 bytes
6-
SHA1 (patch-panel-plugin_cmdspawn.c) = bbec3bfd8cbad3ac50c763456d46c32e33a1239d
3+
BLAKE2s (xfce4-genmon-plugin-4.2.0.tar.bz2) = 5730fc15cc90efe947147f255e8f14efb24663b872c2292f2123e8cf14dee8ae
4+
SHA512 (xfce4-genmon-plugin-4.2.0.tar.bz2) = e0166e879244d039097f46526782f2232bea6a94eb260f2558a6daf62e82a5aaa68a44749eb95d3d7c212155e36887fca8b41fb558427a1812c614569b4c11b3
5+
Size (xfce4-genmon-plugin-4.2.0.tar.bz2) = 421113 bytes
6+
SHA1 (patch-panel-plugin_cmdspawn.c) = a469940a17ef5340e289df807742a704cdd7e8a3

sysutils/xfce4-genmon-plugin/patches/patch-panel-plugin_cmdspawn.c

+18-16
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
$NetBSD: patch-panel-plugin_cmdspawn.c,v 1.4 2021/11/30 15:03:49 gutteridge Exp $
1+
$NetBSD: patch-panel-plugin_cmdspawn.c,v 1.5 2023/04/19 23:53:15 gutteridge Exp $
22

33
Fix SunOS build.
44

5-
--- panel-plugin/cmdspawn.c.orig 2017-10-29 00:52:07.000000000 +0000
5+
--- panel-plugin/cmdspawn.c.orig 2023-04-16 22:44:15.000000000 +0000
66
+++ panel-plugin/cmdspawn.c
77
@@ -24,6 +24,7 @@
88
/* Posix-compliance to make sure that only the calling thread is
@@ -18,9 +18,9 @@ Fix SunOS build.
1818
#endif
1919
+#endif
2020

21-
#include "cmdspawn.h"
22-
23-
@@ -59,12 +61,12 @@ char *genmon_Spawn (char **argv, int wai
21+
#ifdef HAVE_CONFIG_H
22+
#include <config.h>
23+
@@ -58,12 +60,12 @@ char *genmon_Spawn (char **argv, int wai
2424
/* Spawn a command and capture its output from stdout or stderr */
2525
/* Return allocated string on success, otherwise NULL */
2626
{
@@ -36,14 +36,16 @@ Fix SunOS build.
3636
int status;
3737
int i, j, k;
3838
char *str = NULL;
39-
@@ -73,19 +75,19 @@ char *genmon_Spawn (char **argv, int wai
39+
@@ -73,20 +75,20 @@ char *genmon_Spawn (char **argv, int wai
4040
fprintf (stderr, "Spawn() error: No parameters passed!\n");
4141
return (NULL);
4242
}
4343
- for (i = 0; i < OUT_ERR; i++)
4444
+ for (i = 0; i < GENMON_OUT_ERR; i++)
4545
pipe (aaiPipe[i]);
46-
switch (pid = fork ()) {
46+
47+
switch (pid = fork ())
48+
{
4749
case -1:
4850
perror ("fork()");
4951
- for (i = 0; i < OUT_ERR; i++)
@@ -52,14 +54,13 @@ Fix SunOS build.
5254
close (aaiPipe[i][j]);
5355
return (NULL);
5456
case 0:
55-
close(0); /* stdin is not used in child */
5657
/* Redirect stdout/stderr to associated pipe's write-ends */
57-
- for (i = 0; i < OUT_ERR; i++) {
58-
+ for (i = 0; i < GENMON_OUT_ERR; i++) {
58+
- for (i = 0; i < OUT_ERR; i++)
59+
+ for (i = 0; i < GENMON_OUT_ERR; i++)
60+
{
5961
j = i + 1; // stdout/stderr file descriptor
60-
close (j);
6162
k = dup2 (aaiPipe[i][WR], j);
62-
@@ -100,7 +102,7 @@ char *genmon_Spawn (char **argv, int wai
63+
@@ -102,7 +104,7 @@ char *genmon_Spawn (char **argv, int wai
6364
exit (-1);
6465
}
6566

@@ -68,12 +69,13 @@ Fix SunOS build.
6869
close (aaiPipe[i][WR]); /* close write end of pipes in parent */
6970

7071
/* Wait for child completion */
71-
@@ -113,16 +115,16 @@ char *genmon_Spawn (char **argv, int wai
72+
@@ -116,17 +118,17 @@ char *genmon_Spawn (char **argv, int wai
7273
}
7374

7475
/* Read stdout/stderr pipes' read-ends */
75-
- for (i = 0; i < OUT_ERR; i++) {
76-
+ for (i = 0; i < GENMON_OUT_ERR; i++) {
76+
- for (i = 0; i < OUT_ERR; i++)
77+
+ for (i = 0; i < GENMON_OUT_ERR; i++)
78+
{
7779
aoPoll[i].fd = aaiPipe[i][RD];
7880
aoPoll[i].events = POLLIN;
7981
aoPoll[i].revents = 0;
@@ -89,7 +91,7 @@ Fix SunOS build.
8991
goto End;
9092

9193
j = 0;
92-
@@ -143,7 +145,7 @@ char *genmon_Spawn (char **argv, int wai
94+
@@ -148,7 +150,7 @@ char *genmon_Spawn (char **argv, int wai
9395

9496
End:
9597
/* Close read end of pipes */

0 commit comments

Comments
 (0)