diff --git a/debian/patches/prefix.patch b/debian/patches/prefix.patch index e8cc5146b..bb0da1c5c 100644 --- a/debian/patches/prefix.patch +++ b/debian/patches/prefix.patch @@ -5,7 +5,7 @@ use the debian layout when installing python modules --- a/Makefile +++ b/Makefile -@@ -96,9 +96,9 @@ client-install: client client-dirs +@@ -95,9 +95,9 @@ client-install: client client-dirs done cd install/po && $(MAKE) install || exit 1; if [ "$(DESTDIR)" = "" ]; then \ @@ -26,6 +26,15 @@ use the debian layout when installing python modules fi tests: version-update tests-man-autogen +@@ -180,7 +180,7 @@ tests-install: tests + if [ "$(DESTDIR)" = "" ]; then \ + cd ipatests; $(PYTHON) setup.py install; \ + else \ +- cd ipatests; $(PYTHON) setup.py install --root $(DESTDIR); \ ++ cd ipatests; $(PYTHON) setup.py install --root $(DESTDIR) --install-layout=deb; \ + fi + cd ipatests/man && $(MAKE) install + --- a/ipapython/Makefile +++ b/ipapython/Makefile @@ -14,7 +14,7 @@ install: