[PATCH] python: fix build path issue to improve reproducibility

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] python: fix build path issue to improve reproducibility

Hongxu Jia
* lang/python/Makefile.am: Get the "--root" directory supplied
  to the "install" command, and use it as a prefix to strip off
  the purported filename encoded in bytecode files.

Signed-off-by: Hongxu Jia <[hidden email]>
---
 lang/python/Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
index 43b5d1e..2470efd 100644
--- a/lang/python/Makefile.am
+++ b/lang/python/Makefile.am
@@ -93,7 +93,8 @@ install-exec-local:
   build \
   --build-base="$$(basename "$${PYTHON}")-gpg" \
   install \
-  --prefix "$(DESTDIR)$(prefix)" \
+  --root "${DESTDIR}" \
+  --prefix "$(prefix)" \
   --verbose ; \
  done
 
--
1.8.3.1


_______________________________________________
Gnupg-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-devel