Blame SOURCES/0001-Revert-build-Require-libgudev-232.patch

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