diff options
authorNiels de Vos <>2016-05-14 19:23:20 +0200
committerVijay Bellur <>2016-06-29 09:54:46 -0700
commit4d62806d3031cea33bab1641e0c14a1a8cb11c46 (patch)
parentf9a6eba4e0b31247116256545b3c12e1df88c0de (diff)
configure: Prevent glupy installation outside $prefix
glupy was installed in the global path outside the prefix path, even if --prefix is passed. ./configure --prefix=/usr/local make install Expected: ${DESTDIR}${prefix}/lib64/python<VERSION>/site-packages/gluster Actual: ${DESTDIR}/usr/lib64/python<VERSION>/site-packages/gluster prefix was not honoured. With this patch, glupy will be installed inside the prefix path. Cherry picked from commit 85de0c83392d861ba47c97664ff73fd7f8705a3a: > BUG: 1335717 > Change-Id: I810dd8d2d6c403540d4b738f5ab54237c7358bf6 > Signed-off-by: Aravinda VK <> > Reviewed-on: > Smoke: Gluster Build System <> > Reviewed-by: Niels de Vos <> > NetBSD-regression: NetBSD Build System <> > Reviewed-by: Jeff Darcy <> > CentOS-regression: Gluster Build System <> BUG: 1336137 Change-Id: I810dd8d2d6c403540d4b738f5ab54237c7358bf6 Signed-off-by: Niels de Vos <> Reviewed-on: Smoke: Gluster Build System <> Tested-by: Anoop C S <> NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <> Reviewed-by: Vijay Bellur <>
1 files changed, 1 insertions, 1 deletions
diff --git a/ b/
index 2cb4a18a63c..40b75ac3d2d 100644
--- a/
+++ b/
@@ -1188,7 +1188,7 @@ if test "x$enable_glupy" = "xyes"; then
dnl Find python libs at user configured libdir and also "lib" under prefix
PYTHONDEV_LDFLAGS="${PYTHON_LIBS} -L`${PYTHON}-config --prefix`/lib -L`${PYTHON}-config --prefix`/$libdir `${PYTHON}-config --ldflags`"
- BUILD_PYTHON_SITE_PACKAGES=`$PYTHON -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'`
+ BUILD_PYTHON_SITE_PACKAGES=`$PYTHON -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib(prefix="${exec_prefix}"))'`
BUILD_PYTHON_INC=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_inc()"`