From ca3c1957171da29b62277d3a435209c95920ff17 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Fri, 10 May 2019 14:25:43 +0000 Subject: [PATCH] Forgot to cvs add these in previous. --- x11/gnome/menus/Makefile | 3 +- .../patches/patch-libmenu_entry-directories_c | 32 ++++++++++ .../menus/patches/patch-libmenu_gmenu-tree_c | 60 +++++++++++++++++++ 3 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 x11/gnome/menus/patches/patch-libmenu_entry-directories_c create mode 100644 x11/gnome/menus/patches/patch-libmenu_gmenu-tree_c diff --git a/x11/gnome/menus/Makefile b/x11/gnome/menus/Makefile index e192f94b7ef..c02d239ede6 100644 --- a/x11/gnome/menus/Makefile +++ b/x11/gnome/menus/Makefile @@ -1,9 +1,10 @@ -# $OpenBSD: Makefile,v 1.81 2019/05/08 11:55:46 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.82 2019/05/10 14:25:43 ajacoutot Exp $ COMMENT= implementation of the FreeDesktop Desktop Menu Spec GNOME_PROJECT= gnome-menus GNOME_VERSION= 3.32.0 +REVISION= 0 SHARED_LIBS += gnome-menu-3 0.0 # 0.0 diff --git a/x11/gnome/menus/patches/patch-libmenu_entry-directories_c b/x11/gnome/menus/patches/patch-libmenu_entry-directories_c new file mode 100644 index 00000000000..5a0bf4deaee --- /dev/null +++ b/x11/gnome/menus/patches/patch-libmenu_entry-directories_c @@ -0,0 +1,32 @@ +$OpenBSD: patch-libmenu_entry-directories_c,v 1.3 2019/05/10 14:25:43 ajacoutot Exp $ + +REVERT (our realpath behaves differently) +From f8708a09630eedd038cbc377007cbf687228a2e6 Mon Sep 17 00:00:00 2001 +From: Pino Toscano +Date: Mon, 24 Dec 2018 22:36:36 +0100 +Subject: [PATCH] Switch to modern realpath() + +Index: libmenu/entry-directories.c +--- libmenu/entry-directories.c.orig ++++ libmenu/entry-directories.c +@@ -23,10 +23,10 @@ + #include + #include + #include +-#include + + #include "menu-util.h" + #include "menu-monitor.h" ++#include "canonicalize.h" + + typedef struct CachedDir CachedDir; + typedef struct CachedDirMonitor CachedDirMonitor; +@@ -766,7 +766,7 @@ entry_directory_new (DesktopEntryType entry_type, + + menu_verbose ("Loading entry directory \"%s\"\n", path); + +- canonical = realpath (path, NULL); ++ canonical = menu_canonicalize_file_name (path, FALSE); + if (canonical == NULL) + { + menu_verbose ("Failed to canonicalize \"%s\": %s\n", diff --git a/x11/gnome/menus/patches/patch-libmenu_gmenu-tree_c b/x11/gnome/menus/patches/patch-libmenu_gmenu-tree_c new file mode 100644 index 00000000000..cbad92c1c72 --- /dev/null +++ b/x11/gnome/menus/patches/patch-libmenu_gmenu-tree_c @@ -0,0 +1,60 @@ +$OpenBSD: patch-libmenu_gmenu-tree_c,v 1.8 2019/05/10 14:25:44 ajacoutot Exp $ + +REVERT (our realpath behaves differently) +From f8708a09630eedd038cbc377007cbf687228a2e6 Mon Sep 17 00:00:00 2001 +From: Pino Toscano +Date: Mon, 24 Dec 2018 22:36:36 +0100 +Subject: [PATCH] Switch to modern realpath() + +Index: libmenu/gmenu-tree.c +--- libmenu/gmenu-tree.c.orig ++++ libmenu/gmenu-tree.c +@@ -21,11 +21,11 @@ + + #include + #include +-#include + + #include "menu-layout.h" + #include "menu-monitor.h" + #include "menu-util.h" ++#include "canonicalize.h" + + /* private */ + typedef struct GMenuTreeItem GMenuTreeItem; +@@ -330,7 +330,7 @@ static gboolean + canonicalize_path (GMenuTree *tree, + const char *path) + { +- tree->canonical_path = realpath (path, NULL); ++ tree->canonical_path = menu_canonicalize_file_name (path, FALSE); + if (tree->canonical_path) + { + tree->canonical = TRUE; +@@ -1888,7 +1888,7 @@ load_merge_file (GMenuTree *tree, + + if (!is_canonical) + { +- canonical = freeme = realpath (filename, NULL); ++ canonical = freeme = menu_canonicalize_file_name (filename, FALSE); + if (canonical == NULL) + { + if (add_monitor) +@@ -1983,7 +1983,7 @@ compare_basedir_to_config_dir (const char *canonical_b + + retval = FALSE; + +- canonical_menus_dir = realpath (dirname, NULL); ++ canonical_menus_dir = menu_canonicalize_file_name (dirname, FALSE); + if (canonical_menus_dir != NULL && + strcmp (canonical_basedir, canonical_menus_dir) == 0) + { +@@ -2060,7 +2060,7 @@ load_parent_merge_file (GMenuTree *tree, + basedir = menu_layout_node_root_get_basedir (root); + menu_name = menu_layout_node_root_get_name (root); + +- canonical_basedir = realpath (basedir, NULL); ++ canonical_basedir = menu_canonicalize_file_name (basedir, FALSE); + if (canonical_basedir == NULL) + { + menu_verbose ("Menu basedir '%s' no longer exists, not merging parent\n",