diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-07-05 19:34:49 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-07-05 19:34:49 +0800 |
commit | bde500a3f7cf00b9c196f3393e21c440b318b03f (patch) | |
tree | b107009a045c5f5fad5d442bbd34f58d031772cb /devel/seed/files/patch-libseed_seed-importer.c | |
parent | 910ed5f4ecfca362ba908a3f74a888b6e78022ff (diff) | |
download | marcuscom-ports-bde500a3f7cf00b9c196f3393e21c440b318b03f.tar marcuscom-ports-bde500a3f7cf00b9c196f3393e21c440b318b03f.tar.gz marcuscom-ports-bde500a3f7cf00b9c196f3393e21c440b318b03f.tar.bz2 marcuscom-ports-bde500a3f7cf00b9c196f3393e21c440b318b03f.tar.lz marcuscom-ports-bde500a3f7cf00b9c196f3393e21c440b318b03f.tar.xz marcuscom-ports-bde500a3f7cf00b9c196f3393e21c440b318b03f.tar.zst marcuscom-ports-bde500a3f7cf00b9c196f3393e21c440b318b03f.zip |
webkit-gtk2 shlib changed its name. Chase all users. also update some
depend lines to include a version because there is now a webkitgtk-1.0 and
webkitgtk-3.0. So webkitgtk matches both.
While here reset epiphany back to the 2.30 version.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14295 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/seed/files/patch-libseed_seed-importer.c')
-rw-r--r-- | devel/seed/files/patch-libseed_seed-importer.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/devel/seed/files/patch-libseed_seed-importer.c b/devel/seed/files/patch-libseed_seed-importer.c new file mode 100644 index 000000000..ffce27254 --- /dev/null +++ b/devel/seed/files/patch-libseed_seed-importer.c @@ -0,0 +1,49 @@ +--- libseed/seed-importer.c.orig 2009-12-31 11:42:51.000000000 +0100 ++++ libseed/seed-importer.c 2010-01-02 02:12:09.000000000 +0100 +@@ -19,6 +19,8 @@ + + #include <gio/gio.h> + #include <string.h> ++#include <stdlib.h> ++#include <unistd.h> + + #include "seed-private.h" + +@@ -636,8 +638,9 @@ seed_importer_handle_file (JSContextRef + JSValueRef js_file_dirname; + JSObjectRef global, c_global; + JSStringRef file_contents, file_name; +- gchar *contents, *walk, *file_path, *canonical, *absolute_path; ++ gchar *contents, *walk, *file_path, *canonical, *absolute_path, *normalp; + gchar *normalized_path; ++ gsize path_max; + + file_path = g_build_filename (dir, file, NULL); + canonical = seed_importer_canonicalize_path (file_path); +@@ -691,15 +694,24 @@ seed_importer_handle_file (JSContextRef + g_path_get_dirname (file_path), NULL); + } + +- normalized_path = realpath (absolute_path, NULL); ++#ifdef PATH_MAX ++ path_max = PATH_MAX; ++#else ++ path_max = pathconf (absolute_path, _PC_PATH_MAX); ++ if (path_max <= 0) ++ path_max = 4096; ++#endif ++ normalized_path = (gchar *) g_malloc (path_max); ++ normalp = realpath (absolute_path, normalized_path); + +- js_file_dirname = seed_value_from_string (ctx, normalized_path, NULL); ++ js_file_dirname = seed_value_from_string (ctx, normalp, NULL); + + seed_object_set_property (nctx, global, "__script_path__", js_file_dirname); + + g_hash_table_insert (file_imports, canonical, global); + g_free (file_path); + g_free (absolute_path); ++ g_free (normalized_path); + + JSEvaluateScript (nctx, file_contents, NULL, file_name, 0, exception); + |