1From 7938a5a760827aec737ea49d2f8719051abda188 Mon Sep 17 00:00:00 2001 2From: Hongxu Jia <hongxu.jia@windriver.com> 3Date: Wed, 31 Jan 2018 11:01:09 +0800 4Subject: [PATCH] fix build path issue 5 6Get the "--root" directory supplied to the "install" command, 7and use it as a prefix to strip off the purported filename 8encoded in bytecode files. 9 10Since --root added, we need to tweak --prefix and --install-lib 11to use relative path. 12 13Upstream-Status: Submitted [gnupg-devel@gnupg.org] 14Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 15 16--- 17 lang/python/Makefile.am | 5 +++-- 18 1 file changed, 3 insertions(+), 2 deletions(-) 19 20diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am 21index bbb9111..cee499e 100644 22--- a/lang/python/Makefile.am 23+++ b/lang/python/Makefile.am 24@@ -96,8 +96,9 @@ install-exec-local: 25 build \ 26 --build-base="$$(basename "$${PYTHON}")-gpg" \ 27 install \ 28- --prefix "$(DESTDIR)$(prefix)" \ 29- --install-lib=$(DESTDIR)${pythondir} \ 30+ --root=${DESTDIR} \ 31+ --prefix "$(prefix)" \ 32+ --install-lib=${pythondir} \ 33 --verbose ; \ 34 done 35 36