|
|
f73620 |
From 6a807a31b5d762797850948761d66c1ab4fbfd7b Mon Sep 17 00:00:00 2001
|
|
|
f73620 |
From: Olivier Fourdan <ofourdan@redhat.com>
|
|
|
f73620 |
Date: Fri, 15 Sep 2017 09:39:18 +0200
|
|
|
f73620 |
Subject: [PATCH] Revert "build: Require libgudev >= 232"
|
|
|
f73620 |
|
|
|
f73620 |
This reverts commit 361bf847af82c7dca097302fe64c575079280c9c.
|
|
|
f73620 |
---
|
|
|
f73620 |
configure.ac | 4 ++--
|
|
|
f73620 |
src/backends/native/meta-launcher.c | 2 ++
|
|
|
f73620 |
src/backends/native/meta-monitor-manager-kms.c | 3 +++
|
|
|
f73620 |
3 files changed, 7 insertions(+), 2 deletions(-)
|
|
|
f73620 |
|
|
|
f73620 |
diff --git a/configure.ac b/configure.ac
|
|
|
f73620 |
index e6b2bf8..2fde187 100644
|
|
|
f73620 |
--- a/configure.ac
|
|
|
f73620 |
+++ b/configure.ac
|
|
|
f73620 |
@@ -227,10 +227,10 @@ AC_MSG_CHECKING([gudev])
|
|
|
f73620 |
if test x$with_gudev = xno ; then
|
|
|
f73620 |
AC_MSG_RESULT([disabled])
|
|
|
f73620 |
else
|
|
|
f73620 |
- if $PKG_CONFIG --exists "gudev-1.0 >= 232"; then
|
|
|
f73620 |
+ if $PKG_CONFIG --exists gudev-1.0; then
|
|
|
f73620 |
have_gudev=yes
|
|
|
f73620 |
AC_MSG_RESULT(yes)
|
|
|
f73620 |
- MUTTER_PC_MODULES="$MUTTER_PC_MODULES gudev-1.0 >= 232"
|
|
|
f73620 |
+ MUTTER_PC_MODULES="$MUTTER_PC_MODULES gudev-1.0"
|
|
|
f73620 |
AC_DEFINE([HAVE_LIBGUDEV], 1, [Building with gudev for device type detection])
|
|
|
f73620 |
else
|
|
|
f73620 |
AC_MSG_RESULT(no)
|
|
|
f73620 |
diff --git a/src/backends/native/meta-launcher.c b/src/backends/native/meta-launcher.c
|
|
|
f73620 |
index 8b066c9..22ea2ad 100644
|
|
|
f73620 |
--- a/src/backends/native/meta-launcher.c
|
|
|
f73620 |
+++ b/src/backends/native/meta-launcher.c
|
|
|
f73620 |
@@ -46,6 +46,8 @@
|
|
|
f73620 |
#include "meta-cursor-renderer-native.h"
|
|
|
f73620 |
#include "meta-renderer-native.h"
|
|
|
f73620 |
|
|
|
f73620 |
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUdevClient, g_object_unref)
|
|
|
f73620 |
+
|
|
|
f73620 |
struct _MetaLauncher
|
|
|
f73620 |
{
|
|
|
f73620 |
Login1Session *session_proxy;
|
|
|
f73620 |
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
|
|
|
f73620 |
index 1a2eaec..2a13cdb 100644
|
|
|
f73620 |
--- a/src/backends/native/meta-monitor-manager-kms.c
|
|
|
f73620 |
+++ b/src/backends/native/meta-monitor-manager-kms.c
|
|
|
f73620 |
@@ -52,6 +52,9 @@
|
|
|
f73620 |
|
|
|
f73620 |
#define DRM_CARD_UDEV_DEVICE_TYPE "drm_minor"
|
|
|
f73620 |
|
|
|
f73620 |
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUdevDevice, g_object_unref)
|
|
|
f73620 |
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUdevEnumerator, g_object_unref)
|
|
|
f73620 |
+
|
|
|
f73620 |
typedef struct
|
|
|
f73620 |
{
|
|
|
f73620 |
GSource source;
|
|
|
f73620 |
--
|
|
|
f73620 |
1.8.3.1
|
|
|
f73620 |
|