Skip to contentSkip to conversation

Why does boost require bzip2

Buildroot Will Wagner 2 participants 2 messages Jun 3, 2013

lore
Share & tools
lore
#0 lore raw

Hello,

Does anyone know why the boost package requires bzip2? I am wanting to build a very small rootfs and require only a single boost library, I want to avoid the overhead of having the bzip2 library in my target fs.

If I change the boost package it still manages to build all the libraries so I can't work out which libraries need bzip2. (I also have a build failure when trying to build the boost context library, it is failing because my arm target doesn't support the assembler, I'll look into that error separately).

Thanks
Will

Signature · 5 lines
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7471 9224
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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

Will> Hello,
Will> Does anyone know why the boost package requires bzip2? I am Will> wanting to build a very small rootfs and require only a single Will> boost library, I want to avoid the overhead of having the bzip2 Will> library in my target fs.

It has been there since the boost package was added:

commit f64a740f360439bbab6526b8a08588a57ea8fd52

Author: Yegor Yefremov <[email protected]>
Date:   Thu Oct 13 12:39:12 2011 +0200

boost: New package added. Version 1.47

But I don't know enough about boost to know if it really is needed.

I must say that libbz2 is probably not your biggest concern compared to the size of libstdc++ and the template heavy boost code:

-rwxr-xr-x 1 peko peko 73K Jun 3 20:28 output/target/usr/lib/libbz2.so.1.0.6 -rwxr-xr-x 1 peko peko 624K 2013-06-03 19:42 output/target/usr/lib/libstdc++.so.6.0.16

Will> If I change the boost package it still manages to build all the Will> libraries so I can't work out which libraries need bzip2.

Perhaps it used to be a dependency of something, and isn't anymore? We have relatively recently (February) bumped the boost version to 1.53.0.

Will> (I also have a build failure when trying to build the boost Will> context library, it is failing because my arm target doesn't Will> support the assembler, I'll look into that error separately).

Thanks!

Signature · 1 line
Bye, Peter Korsgaard