Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
Subject: gentoo-x86 commit in dev-libs/glib/files: glib-2.30.2-machine-id.patch
Date: Mon, 14 Nov 2011 08:11:12 +0000 (UTC)
tetromino    11/11/14 08:11:12

  Added:                glib-2.30.2-machine-id.patch
  Log:
  Bump. Notable changes: gdbus-related bugfixes. Add patch to detect machine-id in both /etc and /var, and lower dbus dep. Compile tests when USE=doc to prevent build failure (bug #387385, solution proposed by Pacho Ramos).
  
  (Portage version: 2.2.0_alpha74/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-libs/glib/files/glib-2.30.2-machine-id.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/files/glib-2.30.2-machine-id.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/glib/files/glib-2.30.2-machine-id.patch?rev=1.1&content-type=text/plain

Index: glib-2.30.2-machine-id.patch
===================================================================
From 1c9eceaccb6e6c4339cd6951cf53fbd60ae80b8b Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <tetromino@g.o>
Date: Mon, 14 Nov 2011 01:43:22 -0500
Subject: [PATCH] _g_dbus_get_machine_id(): check /etc/machine-id too

machine-id can be in /etc or in /var/lib/dbus.

https://bugzilla.gnome.org/show_bug.cgi?id=663928
---
 gio/gdbusprivate.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c
index 55ac883..68c3ddf 100644
--- a/gio/gdbusprivate.c
+++ b/gio/gdbusprivate.c
@@ -1985,7 +1985,11 @@ _g_dbus_get_machine_id (GError **error)
   gchar *ret;
   /* TODO: use PACKAGE_LOCALSTATEDIR ? */
   ret = NULL;
-  if (!g_file_get_contents ("/var/lib/dbus/machine-id",
+  if (!g_file_get_contents ("/etc/machine-id",
+                            &ret,
+                            NULL,
+                            NULL) &&
+      !g_file_get_contents ("/var/lib/dbus/machine-id",
                             &ret,
                             NULL,
                             error))
-- 
1.7.8.rc1






Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in dev-libs/glib: ChangeLog glib-2.30.2.ebuild
Next by thread:
gentoo-x86 commit in app-text/libexttextcat: libexttextcat-3.2.0.ebuild ChangeLog libexttextcat-3.1.1.ebuild
Previous by date:
gentoo-x86 commit in dev-libs/glib: ChangeLog glib-2.30.2.ebuild
Next by date:
gentoo-x86 commit in app-text/libexttextcat: libexttextcat-3.2.0.ebuild ChangeLog libexttextcat-3.1.1.ebuild


Updated Jun 26, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.