Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] libgit2: Do not use a bundled zlib.
@ 2018-06-01 15:41 Nicolas Cavallari
  2018-06-01 15:41 ` [Buildroot] [PATCH 2/3] libgit2: Bump version to 0.27.1 Nicolas Cavallari
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nicolas Cavallari @ 2018-06-01 15:41 UTC (permalink / raw)
  To: buildroot

libgit2 depends on zlib.  If libgit2's build system does not find a
system zlib, then it compiles a bundled version of it.

Force a dependency on zlib to avoid building this bundled version.

Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
---
 package/libgit2/Config.in  | 1 +
 package/libgit2/libgit2.mk | 7 ++-----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/package/libgit2/Config.in b/package/libgit2/Config.in
index 24a1f3b5a9..53ba4d4245 100644
--- a/package/libgit2/Config.in
+++ b/package/libgit2/Config.in
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_LIBGIT2
 	bool "libgit2"
+	select BR2_PACKAGE_ZLIB
 	help
 	  libgit2 is a portable, pure C implementation of the Git core
 	  methods provided as a linkable library with a solid API,
diff --git a/package/libgit2/libgit2.mk b/package/libgit2/libgit2.mk
index 277a8d46ac..fcace39290 100644
--- a/package/libgit2/libgit2.mk
+++ b/package/libgit2/libgit2.mk
@@ -16,6 +16,8 @@ LIBGIT2_CONF_OPTS = \
 	-DUSE_ICONV=ON \
 	-DTHREADSAFE=$(if $(BR2_TOOLCHAIN_HAS_THREADS),ON,OFF)
 
+LIBGIT2_DEPENDENCIES = zlib
+
 # If libiconv is available (for !locale toolchains), then we can use
 # it for iconv support. Note that USE_ICONV=ON is still correct even
 # without libiconv because (1) most toolchain have iconv support
@@ -25,11 +27,6 @@ ifeq ($(BR2_PACKAGE_LIBICONV),y)
 LIBGIT2_DEPENDENCIES += libiconv
 endif
 
-# No option to explicitly enable/disable zlib
-ifeq ($(BR2_PACKAGE_ZLIB),y)
-LIBGIT2_DEPENDENCIES += zlib
-endif
-
 ifeq ($(BR2_PACKAGE_LIBSSH2),y)
 LIBGIT2_DEPENDENCIES += libssh2
 LIBGIT2_CONF_OPTS += -DUSE_SSH=ON
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-04 20:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-01 15:41 [Buildroot] [PATCH 1/3] libgit2: Do not use a bundled zlib Nicolas Cavallari
2018-06-01 15:41 ` [Buildroot] [PATCH 2/3] libgit2: Bump version to 0.27.1 Nicolas Cavallari
2018-06-01 15:42 ` [Buildroot] [PATCH 3/3] libgit2: Fix build with LibreSSL 2.7 Nicolas Cavallari
2018-06-04 20:53 ` [Buildroot] [PATCH 1/3] libgit2: Do not use a bundled zlib Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox