Blame SOURCES/k5test-0.9.1-usr_lib64.patch

2b8ed0
From 833d6c6b7cac7721e6e246b49edc794c19ab5178 Mon Sep 17 00:00:00 2001
2b8ed0
From: Robbie Harwood <rharwood@redhat.com>
2b8ed0
Date: Thu, 24 Mar 2016 14:39:53 -0400
2b8ed0
Subject: [PATCH 1/3] Ensure test suite works with RHEL /usr/lib64
2b8ed0
2b8ed0
Adapted from https://github.com/pythongssapi/k5test/pull/1
2b8ed0
---
2b8ed0
 gssapi/tests/_utils.py | 6 ++++--
2b8ed0
 1 file changed, 4 insertions(+), 2 deletions(-)
2b8ed0
2b8ed0
diff --git a/gssapi/tests/_utils.py b/gssapi/tests/_utils.py
2b8ed0
index 603be56..57e10e4 100644
2b8ed0
--- a/gssapi/tests/_utils.py
2b8ed0
+++ b/gssapi/tests/_utils.py
2b8ed0
@@ -75,9 +75,11 @@ def _find_plugin_dir():
2b8ed0
 
2b8ed0
     # if there was no LD_LIBRARY_PATH, or the above failed
2b8ed0
     if _PLUGIN_DIR is None:
2b8ed0
-        # if we don't have a LD_LIBRARY_PATH, just search in
2b8ed0
-        # $prefix/lib
2b8ed0
+        lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib64')
2b8ed0
+        _PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))
2b8ed0
 
2b8ed0
+    # /usr/lib64 has only been observed on RHEL
2b8ed0
+    if _PLUGIN_DIR is None:
2b8ed0
         lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib')
2b8ed0
         _PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))
2b8ed0
 
2b8ed0
-- 
2b8ed0
1.8.3.1
2b8ed0