Skip to contentSkip to conversation

boost: only the iostreams library requires bzip2

PATCH Superseded Will Wagner 2 participants 2 messages Jun 10, 2013

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boost: only the iostreams library requires bzip2

---
  package/boost/Config.in |    4 ++++
  package/boost/boost.mk  |    6 +++++-
  2 files changed, 9 insertions(+), 1 deletions(-)
package/boost/Config.in +4 -0
index 5c65b2f..fbe99d0 100644
@@ -18,6 +18,9 @@ config BR2_PACKAGE_BOOST
 
  if BR2_PACKAGE_BOOST
 
+config BR2_PACKAGE_BOOST_REQUIRES_BZIP2
+	bool
+
  config BR2_PACKAGE_BOOST_CHRONO
  	bool "boost-chrono"
 
@@ -43,6 +46,7 @@ config BR2_PACKAGE_BOOST_GRAPH_PARALLEL
 
  config BR2_PACKAGE_BOOST_IOSTREAMS
  	bool "boost-iostreams"
+	select BR2_PACKAGE_BOOST_REQUIRES_BZIP2
 
  config BR2_PACKAGE_BOOST_LOCALE
  	depends on BR2_USE_WCHAR
package/boost/boost.mk +5 -1
index d11f378..c733b89 100644
@@ -12,7 +12,7 @@ BOOST_INSTALL_STAGING = YES
 
  TARGET_CC_VERSION = $(shell $(TARGET_CC) -dumpversion)
 
-BOOST_DEPENDENCIES = bzip2 zlib
+BOOST_DEPENDENCIES = zlib
 
  BOOST_FLAGS =
 
@@ -48,6 +48,10 @@ else
  BOOST_FLAGS += --without-icu
  endif
 
+ifeq ($(BR2_PACKAGE_BOOST_REQUIRES_BZIP2),y)
+BOOST_DEPENDENCIES += bzip2
+endif
+
  BOOST_OPT += toolset=gcc \
  	     threading=multi \
  	     variant=$(if $(BR2_ENABLE_DEBUG),debug,release) \
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 boost: only the iostreams library requires bzip2

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Will" == Will Wagner <[email protected]> writes:

Will> Signed-off-by: Will Wagner <[email protected]> Will> ---

 Will>  package/boost/Config.in |    4 ++++
 Will>  package/boost/boost.mk  |    6 +++++-

Will> 2 files changed, 9 insertions(+), 1 deletions(-)

Will> diff --git a/package/boost/Config.in b/package/boost/Config.in Will> index 5c65b2f..fbe99d0 100644
Will> --- a/package/boost/Config.in
Will> +++ b/package/boost/Config.in
Will> @@ -18,6 +18,9 @@ config BR2_PACKAGE_BOOST

Will> if BR2_PACKAGE_BOOST

Will> +config BR2_PACKAGE_BOOST_REQUIRES_BZIP2
Will> + bool
Will> +
Will> config BR2_PACKAGE_BOOST_CHRONO
Will> bool "boost-chrono"

Will> @@ -43,6 +46,7 @@ config BR2_PACKAGE_BOOST_GRAPH_PARALLEL

Will> config BR2_PACKAGE_BOOST_IOSTREAMS
Will> bool "boost-iostreams"
Will> + select BR2_PACKAGE_BOOST_REQUIRES_BZIP2

You should just move the 'select BR2_PACKAGE_BZIP2' here.

Will> config BR2_PACKAGE_BOOST_LOCALE
Will> depends on BR2_USE_WCHAR
Will> diff --git a/package/boost/boost.mk b/package/boost/boost.mk Will> index d11f378..c733b89 100644
Will> --- a/package/boost/boost.mk
Will> +++ b/package/boost/boost.mk
Will> @@ -12,7 +12,7 @@ BOOST_INSTALL_STAGING = YES

Will> TARGET_CC_VERSION = $(shell $(TARGET_CC) -dumpversion)

Will> -BOOST_DEPENDENCIES = bzip2 zlib
Will> +BOOST_DEPENDENCIES = zlib

Will> BOOST_FLAGS =

Will> @@ -48,6 +48,10 @@ else
Will> BOOST_FLAGS += --without-icu
Will> endif

Will> +ifeq ($(BR2_PACKAGE_BOOST_REQUIRES_BZIP2),y)

And change this to BR2_PACKAGE_BOOST_IOSTREAMS (unless we have reason to expect other parts of boost will need it as well in the future, but that's probable unlikely).

Will> +BOOST_DEPENDENCIES += bzip2
Will> +endif
Will> +

 Will>  BOOST_OPT += toolset=gcc \
 Will>  	     threading=multi \
 Will>  	     variant=$(if $(BR2_ENABLE_DEBUG),debug,release) \

Will> --
Will> 1.7.2.5

Will> _______________________________________________ Will> buildroot mailing list
Will> buildroot at busybox.net
Will> http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 1 line
Bye, Peter Korsgaard