Xfce4-taskmanager Patch for 9.0

Cy Schubert Cy.Schubert at komquats.com
Thu Oct 27 20:14:01 UTC 2011


Hi xfce@,

Here's a fix for xfce4-taskmanager under FreeBSD 9.0.

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/x11/xfce4-taskmanager/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile	26 Oct 2011 20:27:23 -0000	1.30
+++ Makefile	27 Oct 2011 19:56:03 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	xfce4-taskmanager
 PORTVERSION=	1.0.0
+PORTREVISION=	1
 CATEGORIES=	x11 xfce
 MASTER_SITES=	${MASTER_SITE_XFCE}
 MASTER_SITE_SUBDIR=	src/apps/${PORTNAME}/${PORTVERSION:R}
@@ -26,10 +27,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 900000
-BROKEN=		does not compile on FreeBSD 9.X
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|prefix)/$$(DATADIRNAME)|datadir)|' \
 		${WRKSRC}/po/Makefile.in.in
Index: files/patch-task-manager-freebsd.c
===================================================================
RCS file: files/patch-task-manager-freebsd.c
diff -N files/patch-task-manager-freebsd.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-task-manager-freebsd.c	27 Oct 2011 19:56:03 -0000
@@ -0,0 +1,12 @@
+--- src/task-manager-freebsd.c.orig	2010-05-21 06:29:33.000000000 -0700
++++ src/task-manager-freebsd.c	2011-10-27 12:42:24.425260800 -0700
+@@ -18,6 +18,9 @@
+ #include <fcntl.h>
+ #include <paths.h>
+ #include <unistd.h>
++#if defined(__FreeBSD_version) && __FreeBSD_version >= 900044
++#include <sys/vmmeter.h>
++#endif
+ 
+ #include <glib.h>
+ 

If you want, I can commit it for you.


-- 
Cheers,
Cy Schubert <Cy.Schubert at komquats.com>
FreeBSD UNIX:  <cy at FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.




More information about the freebsd-xfce mailing list