summaryrefslogtreecommitdiff
path: root/sysutils/gentoo/patches
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2008-08-17 05:55:15 +0000
committerdholland <dholland@pkgsrc.org>2008-08-17 05:55:15 +0000
commit26d3528506e45accfb79f334fc8704939bfb9c73 (patch)
tree28b1b4cd90b20066f8fde04c43ff1d067cf18282 /sysutils/gentoo/patches
parent18da6d3247801d499a11138b340bb58b9905eb04 (diff)
downloadpkgsrc-26d3528506e45accfb79f334fc8704939bfb9c73.tar.gz
Fix this to not use the compile-time $HOME to look for the gtkrc file.
(Since that is set to work/.home, it was compiling in the pkgsrc work directory and failing for PKG_DEVELOPERs.) Use getenv("HOME") instead. PKGREVISION++.
Diffstat (limited to 'sysutils/gentoo/patches')
-rw-r--r--sysutils/gentoo/patches/patch-ad23
1 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/gentoo/patches/patch-ad b/sysutils/gentoo/patches/patch-ad
new file mode 100644
index 00000000000..8397b23d478
--- /dev/null
+++ b/sysutils/gentoo/patches/patch-ad
@@ -0,0 +1,23 @@
+$NetBSD: patch-ad,v 1.7 2008/08/17 05:55:16 dholland Exp $
+
+--- src/gentoo.c~ 2006-08-23 14:58:12.000000000 -0400
++++ src/gentoo.c 2008-08-17 01:44:41.000000000 -0400
+@@ -334,7 +334,18 @@ static GtkWidget * build_gui(MainInfo *m
+ static void init_paths(CfgInfo *cfg)
+ {
+ cfg->path.path[PTID_ICON] = g_string_new(PATH_ICN);
++#if 0
++ /* PATH_GRC is the compile-time $HOME, which seems wrong. */
+ cfg->path.path[PTID_GTKRC] = g_string_new(PATH_GRC);
++#else
++ {
++ const char *home = getenv("HOME");
++ if (home == NULL) {
++ home = "/";
++ }
++ cfg->path.path[PTID_GTKRC] = g_string_new(home);
++ }
++#endif
+ cfg->path.path[PTID_FSTAB] = g_string_new("/etc/fstab");
+ cfg->path.path[PTID_MTAB] = g_string_new("/proc/mounts");
+