[41119] trunk/dports/gnome/libgtop

jmr at macports.org jmr at macports.org
Thu Oct 23 18:32:07 PDT 2008


Revision: 41119
          http://trac.macports.org/changeset/41119
Author:   jmr at macports.org
Date:     2008-10-23 18:32:07 -0700 (Thu, 23 Oct 2008)
Log Message:
-----------
libgtop: fix missing symbol at runtime, and a possible compile error

Modified Paths:
--------------
    trunk/dports/gnome/libgtop/Portfile

Added Paths:
-----------
    trunk/dports/gnome/libgtop/files/patch-sysdeps_darwin_Makefile.am.diff
    trunk/dports/gnome/libgtop/files/patch-sysdeps_darwin_proclist.c.diff
    trunk/dports/gnome/libgtop/files/procaffinity.c

Modified: trunk/dports/gnome/libgtop/Portfile
===================================================================
--- trunk/dports/gnome/libgtop/Portfile	2008-10-24 00:54:29 UTC (rev 41118)
+++ trunk/dports/gnome/libgtop/Portfile	2008-10-24 01:32:07 UTC (rev 41119)
@@ -4,6 +4,7 @@
 
 name		libgtop
 version		2.24.0
+revision	1
 description	A library for gtop2
 long_description \
 		This is library for the gtop2, the GNOME 2.0 \
@@ -18,11 +19,24 @@
 checksums	md5     f0e3584b9157d3425184a9e21e3ac482 \
 		sha1    934b9a83f8042dbbacdfb02cf85f4078d8b6fd14 \
 		rmd160  f007316559118c02acd7f0eafba79b7c8dfd28f3
+
+depends_build   port:autoconf port:automake port:libtool \
+                port:pkgconfig port:gtk-doc
 depends_lib     path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 \
 		port:gettext
 use_bzip2 	yes
 
-patchfiles	patch-sysdeps_darwin_glibtop_server.h.diff
+patchfiles	patch-sysdeps_darwin_glibtop_server.h.diff \
+			patch-sysdeps_darwin_proclist.c.diff \
+			patch-sysdeps_darwin_Makefile.am.diff
 
+post-patch {
+    copy ${filespath}/procaffinity.c ${worksrcpath}/sysdeps/darwin/
+}
+
+pre-configure {
+    system "cd ${worksrcpath} && LIBTOOLIZE=${prefix}/bin/glibtoolize ./autogen.sh"
+}
+
 configure.args	--mandir=${prefix}/share/man --infodir=${prefix}/share/info \
 		--disable-static

Added: trunk/dports/gnome/libgtop/files/patch-sysdeps_darwin_Makefile.am.diff
===================================================================
--- trunk/dports/gnome/libgtop/files/patch-sysdeps_darwin_Makefile.am.diff	                        (rev 0)
+++ trunk/dports/gnome/libgtop/files/patch-sysdeps_darwin_Makefile.am.diff	2008-10-24 01:32:07 UTC (rev 41119)
@@ -0,0 +1,11 @@
+--- sysdeps/darwin/Makefile.am.orig	2008-05-24 08:13:21.000000000 +1000
++++ sysdeps/darwin/Makefile.am	2008-10-24 12:08:53.000000000 +1100
+@@ -2,7 +2,7 @@ INCLUDES			= @INCLUDES@ @LIBGTOP_INCS@
+ 
+ noinst_LTLIBRARIES			= libgtop_sysdeps-2.0.la libgtop_sysdeps_suid-2.0.la
+ 
+-libgtop_sysdeps_2_0_la_SOURCES	= nosuid.c siglist.c sysinfo.c
++libgtop_sysdeps_2_0_la_SOURCES	= nosuid.c procaffinity.c siglist.c sysinfo.c 
+ 
+ libgtop_sysdeps_suid_2_0_la_SOURCES = open.c close.c \
+ cpu.c mem.c swap.c uptime.c loadavg.c shm_limits.c msg_limits.c \

Added: trunk/dports/gnome/libgtop/files/patch-sysdeps_darwin_proclist.c.diff
===================================================================
--- trunk/dports/gnome/libgtop/files/patch-sysdeps_darwin_proclist.c.diff	                        (rev 0)
+++ trunk/dports/gnome/libgtop/files/patch-sysdeps_darwin_proclist.c.diff	2008-10-24 01:32:07 UTC (rev 41119)
@@ -0,0 +1,11 @@
+--- sysdeps/darwin/proclist.c.orig	2008-05-24 08:13:21.000000000 +1000
++++ sysdeps/darwin/proclist.c	2008-10-24 11:07:01.000000000 +1100
+@@ -43,7 +43,7 @@ _glibtop_init_proclist_p (glibtop *serve
+ 
+ pid_t *
+ glibtop_get_proclist_p (glibtop *server, glibtop_proclist *buf,
+-			int64_t which, int64_t arg)
++			gint64 which, gint64 arg)
+ {
+ 	unsigned count, total, i;
+ 	pid_t *pids_chain;

Added: trunk/dports/gnome/libgtop/files/procaffinity.c
===================================================================
--- trunk/dports/gnome/libgtop/files/procaffinity.c	                        (rev 0)
+++ trunk/dports/gnome/libgtop/files/procaffinity.c	2008-10-24 01:32:07 UTC (rev 41119)
@@ -0,0 +1,42 @@
+/* Copyright (C) 2007 Joe Marcus Clarke <marcus at FreeBSD.org>
+   This file is part of LibGTop 2.
+
+   LibGTop is free software; you can redistribute it and/or modify it
+   under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License,
+   or (at your option) any later version.
+
+   LibGTop is distributed in the hope that it will be useful, but WITHOUT
+   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+   for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with LibGTop; see the file COPYING. If not, write to the
+   Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.
+*/
+
+#include <config.h>
+#include <glibtop/procaffinity.h>
+#include <glibtop/error.h>
+
+#include <sys/param.h>
+
+void
+_glibtop_init_proc_affinity_s(glibtop *server)
+{
+  server->sysdeps.proc_affinity =
+    (1 << GLIBTOP_PROC_AFFINITY_NUMBER) |
+    (1 << GLIBTOP_PROC_AFFINITY_ALL);
+
+}
+
+
+guint16 *
+glibtop_get_proc_affinity_s(glibtop *server, glibtop_proc_affinity *buf, pid_t pid)
+{
+  memset(buf, 0, sizeof *buf);
+
+  return NULL;
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081023/a3180982/attachment.html>


More information about the macports-changes mailing list