blob: 8d48db2febb0e62c769640722d716fc9ef246976 [file] [log] [blame]
Patrick Williams169d7bc2024-01-05 11:33:25 -06001From 7938a5a760827aec737ea49d2f8719051abda188 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
Patrick Williams169d7bc2024-01-05 11:33:25 -06004Subject: [PATCH] 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>
Patrick Williams169d7bc2024-01-05 11:33:25 -060015
Brad Bishop316dfdd2018-06-25 12:45:53 -040016---
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
Patrick Williams169d7bc2024-01-05 11:33:25 -060021index bbb9111..cee499e 100644
Brad Bishop316dfdd2018-06-25 12:45:53 -040022--- a/lang/python/Makefile.am
23+++ b/lang/python/Makefile.am
Patrick Williams169d7bc2024-01-05 11:33:25 -060024@@ -96,8 +96,9 @@ install-exec-local:
Brad Bishop316dfdd2018-06-25 12:45:53 -040025 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