[72697] trunk/dports/devel/glib2
devans at macports.org
devans at macports.org
Sun Oct 24 10:22:32 PDT 2010
Revision: 72697
http://trac.macports.org/changeset/72697
Author: devans at macports.org
Date: 2010-10-24 10:22:29 -0700 (Sun, 24 Oct 2010)
Log Message:
-----------
glib2: fix hardcoded path to dbus machine-id file in gio/gdbusprivate.c, closes #26924, maintainer timeout.
Modified Paths:
--------------
trunk/dports/devel/glib2/Portfile
Added Paths:
-----------
trunk/dports/devel/glib2/files/patch-gio_gdbusprivate.c.diff
Modified: trunk/dports/devel/glib2/Portfile
===================================================================
--- trunk/dports/devel/glib2/Portfile 2010-10-24 17:12:04 UTC (rev 72696)
+++ trunk/dports/devel/glib2/Portfile 2010-10-24 17:22:29 UTC (rev 72697)
@@ -8,6 +8,7 @@
conflicts glib2-devel
set my_name glib
version 2.26.0
+revision 1
set branch [join [lrange [split ${version} .] 0 1] .]
categories devel
maintainers ryandesign
@@ -38,7 +39,8 @@
patch-glib-2.0.pc.in.diff \
patch-glib_gunicollate.c.diff \
patch-gi18n.h.diff \
- patch-gio_xdgmime_xdgmime.c.diff
+ patch-gio_xdgmime_xdgmime.c.diff \
+ patch-gio_gdbusprivate.c.diff
depends_build port:pkgconfig \
port:dbus
@@ -71,6 +73,7 @@
reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/glib/gutils.c
reinplace "s|path = \"/bin|path = \"${prefix}/bin:/bin|g" ${worksrcpath}/glib/gutils.c ${worksrcpath}/glib/gspawn.c
reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/gio/xdgmime/xdgmime.c
+ reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/gio/gdbusprivate.c
}
post-configure {
Added: trunk/dports/devel/glib2/files/patch-gio_gdbusprivate.c.diff
===================================================================
--- trunk/dports/devel/glib2/files/patch-gio_gdbusprivate.c.diff (rev 0)
+++ trunk/dports/devel/glib2/files/patch-gio_gdbusprivate.c.diff 2010-10-24 17:22:29 UTC (rev 72697)
@@ -0,0 +1,17 @@
+--- gio/gdbusprivate.c.orig 2010-10-20 16:08:38.000000000 -0700
++++ gio/gdbusprivate.c 2010-10-20 16:12:16.000000000 -0700
+@@ -1750,12 +1750,12 @@
+ gchar *ret;
+ /* TODO: use PACKAGE_LOCALSTATEDIR ? */
+ ret = NULL;
+- if (!g_file_get_contents ("/var/lib/dbus/machine-id",
++ if (!g_file_get_contents ("@@PREFIX@@/var/lib/dbus/machine-id",
+ &ret,
+ NULL,
+ error))
+ {
+- g_prefix_error (error, _("Unable to load /var/lib/dbus/machine-id: "));
++ g_prefix_error (error, _("Unable to load @@PREFIX@@/var/lib/dbus/machine-id: "));
+ }
+ else
+ {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101024/b7d85bfa/attachment.html>
More information about the macports-changes
mailing list