blob: 8cc8983e270c574da60996b44c9ab5af154bfa80 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From 180a5669e4a13a550b1b0dcef1689b6c0470fe54 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 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--
361.8.3.1
37