xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-support/gpgme/gpgme/0006-fix-build-path-issue.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From ef920688bfe1c7328c9e97229d62ccd35304ad84 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 6/7] 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 36c6f7b..ce9a108 100644
21--- a/lang/python/Makefile.am
22+++ b/lang/python/Makefile.am
23@@ -92,8 +92,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--
362.7.4
37
38