[Buildroot] [git commit] package/gnupg2: add bzip2 optional dependency

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Oct 1 20:45:21 UTC 2014


commit: http://git.buildroot.net/buildroot/commit/?id=b39e3e39eb15264efafec3cb7c4ac89a951b9ab9
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

This is to improve build reproducibility.

[Thomas: add --enable-bzip2 --with-bzip options.]

Signed-off-by: Romain Naour <romain.naour at openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/gnupg2/gnupg2.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/package/gnupg2/gnupg2.mk b/package/gnupg2/gnupg2.mk
index 33b5bc0..b0e7297 100644
--- a/package/gnupg2/gnupg2.mk
+++ b/package/gnupg2/gnupg2.mk
@@ -26,4 +26,11 @@ endef
 GNUPG2_POST_INSTALL_TARGET_HOOKS += GNUPG2_REMOVE_GPGV2
 endif
 
+ifeq ($(BR2_PACKAGE_BZIP2),y)
+GNUPG2_CONF_OPT += --enable-bzip2 --with-bzip2=$(STAGING_DIR)
+GNUPG2_DEPENDENCIES += bzip2
+else
+GNUPG2_CONF_OPT += --disable-bzip2
+endif
+
 $(eval $(autotools-package))


More information about the buildroot mailing list