File 0002-udev_device_new_from_device_id-is-unsupported-in-SLE.patch of Package openlmi-providers

From 833f66130b0cf8b967f0342ce005108bdde8b8d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@suse.de>
Date: Fri, 4 Oct 2013 14:21:26 +0200
Subject: [PATCH 2/7] udev_device_new_from_device_id is unsupported in SLE11

---
 src/logicalfile/file.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/logicalfile/file.c b/src/logicalfile/file.c
index e90e77a1a9e5..6646f76d8037 100644
--- a/src/logicalfile/file.c
+++ b/src/logicalfile/file.c
@@ -91,6 +91,10 @@ CMPIStatus get_fsinfo_from_stat(const CMPIBroker *b, const struct stat *sb, cons
     const char *dev_name;
     CMPIStatus st = {.rc = CMPI_RC_OK};
 
+#if 1 /* udev_device_new_from_device_id unsupported in SLE11 */
+    return_with_status(b, &st, ERR_FAILED, "udev_device_new_from_device_id unsupported");
+    return st;
+#else
     udev_ctx = udev_new();
     if (!udev_ctx) {
         return_with_status(b, &st, ERR_FAILED, "Could not create udev context");
@@ -120,6 +124,7 @@ CMPIStatus get_fsinfo_from_stat(const CMPIBroker *b, const struct stat *sb, cons
     udev_unref(udev_ctx);
 
     return st;
+#endif
 }
 
 CMPIStatus get_fsinfo_from_path(const CMPIBroker *b, const char *path, char **fsclassname, char **fsname)
-- 
1.8.4

openSUSE Build Service is sponsored by