blob: 26ff4723774d22388588492bdc9c297a1b4fd01f [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 4f83750ce402b65d16cc09f8a0274a7ec76fc634 Mon Sep 17 00:00:00 2001
Brad Bishop316dfdd2018-06-25 12:45:53 -04002From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Wed, 31 Jan 2018 11:01:09 +0800
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004Subject: [PATCH 6/7] fix build path issue
Brad Bishop316dfdd2018-06-25 12:45:53 -04005
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 lang/python/Makefile.am | 5 +++--
17 1 file changed, 3 insertions(+), 2 deletions(-)
18
19diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
20index ce4f0a5..5a468f1 100644
21--- a/lang/python/Makefile.am
22+++ b/lang/python/Makefile.am
23@@ -90,8 +90,9 @@ install-exec-local:
24 build \
25 --build-base="$$(basename "$${PYTHON}")-gpg" \
26 install \
27- --prefix "$(DESTDIR)$(prefix)" \
28- --install-lib=$(DESTDIR)${pythondir} \
29+ --root=${DESTDIR} \
30+ --prefix "$(prefix)" \
31+ --install-lib=${pythondir} \
32 --verbose ; \
33 done
34
35--
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800362.7.4
Brad Bishop316dfdd2018-06-25 12:45:53 -040037