diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-06-15 03:55:31 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-06-15 03:55:31 +0800 |
commit | 73a6580519b306005f0449fe0fcd1d42a317932d (patch) | |
tree | 78e96729d6c167cb708740836d00fe8eddd0c9ed /ports-mgmt/gnome-packagekit/files | |
parent | 92d63bfaedfd9de6f458c5d2693b2e3d594a3d7d (diff) | |
download | marcuscom-ports-73a6580519b306005f0449fe0fcd1d42a317932d.tar marcuscom-ports-73a6580519b306005f0449fe0fcd1d42a317932d.tar.gz marcuscom-ports-73a6580519b306005f0449fe0fcd1d42a317932d.tar.bz2 marcuscom-ports-73a6580519b306005f0449fe0fcd1d42a317932d.tar.lz marcuscom-ports-73a6580519b306005f0449fe0fcd1d42a317932d.tar.xz marcuscom-ports-73a6580519b306005f0449fe0fcd1d42a317932d.tar.zst marcuscom-ports-73a6580519b306005f0449fe0fcd1d42a317932d.zip |
Remove the packagekit* as our GNOME 3 doesn't come with it because the
packagekit* aren't working great. The packagekit* are kind of pointless
with FreeBSD's own package/ports system, imo.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@16073 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'ports-mgmt/gnome-packagekit/files')
-rw-r--r-- | ports-mgmt/gnome-packagekit/files/patch-src_gpk-dbus.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/ports-mgmt/gnome-packagekit/files/patch-src_gpk-dbus.c b/ports-mgmt/gnome-packagekit/files/patch-src_gpk-dbus.c deleted file mode 100644 index 471734de6..000000000 --- a/ports-mgmt/gnome-packagekit/files/patch-src_gpk-dbus.c +++ /dev/null @@ -1,59 +0,0 @@ ---- src/gpk-dbus.c.orig 2010-07-20 09:56:17.000000000 +0200 -+++ src/gpk-dbus.c 2010-07-21 17:14:31.000000000 +0200 -@@ -32,6 +32,12 @@ - #include <unistd.h> - #endif /* HAVE_UNISTD_H */ - -+#ifdef __FreeBSD__ -+#include <sys/sysctl.h> -+//#include <errno.h> -+#include <string.h> -+#endif -+ - #include <sys/wait.h> - #include <fcntl.h> - -@@ -212,6 +218,13 @@ gpk_dbus_get_exec_for_sender (GpkDbus *d - GError *error = NULL; - guint pid; - -+#ifdef __FreeBSD__ -+ size_t len; -+ int mib[4]; -+/* figure out how to use the above GError */ -+ int error2; -+#endif -+ - g_return_val_if_fail (PK_IS_DBUS (dbus), NULL); - g_return_val_if_fail (sender != NULL, NULL); - -@@ -223,7 +236,29 @@ gpk_dbus_get_exec_for_sender (GpkDbus *d - } - - /* get command line from proc */ -+#ifdef __FreeBSD__ -+ mib[0] = CTL_KERN; -+ mib[1] = KERN_PROC; -+ mib[2] = KERN_PROC_PATHNAME; -+ mib[3] = pid; -+ -+ len = 0; -+ -+ error2 = sysctl(mib, 4, NULL, &len, NULL, 0); -+ if (error2) { -+ printf ("Error: %s\n", strerror(error2)); -+ goto out; -+ } -+ -+ filename = malloc(len); -+ error2 = sysctl(mib, 4, filename, &len, NULL, 0); -+ if (error2) { -+ printf ("Error: %s\n", strerror(error2)); -+ goto out; -+ } -+#else - filename = g_strdup_printf ("/proc/%i/exe", pid); -+#endif - cmdline = g_file_read_link (filename, &error); - if (cmdline == NULL) { - egg_warning ("failed to find exec: %s", error->message); |