Blame SOURCES/0001-Do-not-install-into-python_sitelib.patch

c269c2
From fae22c2f1bf5d40b0ba5cb47f597daaf3ed4ae6b Mon Sep 17 00:00:00 2001
c269c2
From: Richard Hughes <richard@hughsie.com>
c269c2
Date: Mon, 17 Mar 2014 19:35:04 +0000
c269c2
Subject: [PATCH] Do not install into python_sitelib
c269c2
c269c2
The .pyc and .pyo files are actually architecture specific and this causes
c269c2
PackageKit to fail the RHEL multilib self tests.
c269c2
---
c269c2
 configure.ac               | 11 +++++++++--
c269c2
 contrib/PackageKit.spec.in |  5 +++--
c269c2
 2 files changed, 12 insertions(+), 4 deletions(-)
c269c2
c269c2
diff --git a/configure.ac b/configure.ac
c269c2
index 68ce26a..8cdabd7 100644
c269c2
--- a/configure.ac
c269c2
+++ b/configure.ac
c269c2
@@ -91,8 +91,14 @@ if test x$enable_python3 = xyes; then
c269c2
 else
c269c2
 	AM_PATH_PYTHON([2.7])
c269c2
 fi
c269c2
-
c269c2
-PYTHON_PACKAGE_DIR=${pythondir}/packagekit
c269c2
+AC_ARG_WITH([python_package_dir],
c269c2
+	    AS_HELP_STRING([--with-python-package-dir=<location>],
c269c2
+			   [Location for python modules]))
c269c2
+if test -z "$with_python_package_dir" ; then
c269c2
+	PYTHON_PACKAGE_DIR=${pythondir}/packagekit
c269c2
+else
c269c2
+	PYTHON_PACKAGE_DIR=${with_python_package_dir}/packagekit
c269c2
+fi
c269c2
 AC_SUBST(PYTHON_PACKAGE_DIR)
c269c2
 
c269c2
 if test "$GCC" = "yes"; then