Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469114 - dev-libs/boost-1.52.0-r6 should depend on app-arch/bzip2
Summary: dev-libs/boost-1.52.0-r6 should depend on app-arch/bzip2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-08 21:20 UTC by Matt Whitlock
Modified: 2013-07-10 11:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock 2013-05-08 21:20:23 UTC
While cross-compiling dev-libs/boost-1.52.0-r6, the build failed at libs/iostreams/src/bzip2.cpp:

gcc.compile.c++ bin.v2/libs/iostreams/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/bzip2.o

    "x86_64-amazon-linux-gnu-g++"  -ftemplate-depth-128 -Os -pipe -fomit-frame-pointer -std=gnu++98 -finline-functions -Wno-inline -Wall -pthread -fPIC  -DBOOST_ALL_NO_LIB=1 -DBOOST_IOSTREAMS_DYN_LINK=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG  -I"." -c -o "bin.v2/libs/iostreams/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi/bzip2.o" "libs/iostreams/src/bzip2.cpp"

libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file or directory
compilation terminated.
...skipped <pbin.v2/libs/iostreams/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi>libboost_iostreams.so.1.52.0 for lack of <pbin.v2/libs/iostreams/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi>bzip2.o...
...skipped <pstage/lib>libboost_iostreams.so.1.52.0 for lack of <pbin.v2/libs/iostreams/build/gcc-4.7/gentoorelease/boost.locale.icu-off/pch-off/threading-multi>libboost_iostreams.so.1.52.0...
...skipped <pstage/lib>libboost_iostreams.so for lack of <pstage/lib>libboost_iostreams.so.1.52.0...
...failed updating 1 target...


After installing app-arch/bzip2, the boost build completed successfully. Therefore, I conclude that the boost ebuild needs added a dependency on app-arch/bzip2.
Comment 1 Tomáš "tpruzina" Pružina (amd64 [ex]AT) 2013-07-05 19:59:24 UTC
Confirming this one [not sure why would you remove bzip2, unless experimenting with alternatives such as pbzip]

qfile /usr/include/bzlib.h
app-arch/bzip2 (/usr/include/bzlib.h)
Comment 2 Matt Whitlock 2013-07-05 20:15:45 UTC
(In reply to Tomáš "tpruzina" Pružina (amd64 AT) from comment #1)
> [not sure why would you remove bzip2, unless
> experimenting with alternatives such as pbzip]

I didn't remove it; it was never installed. This was in a crossdev root.
Comment 3 Sergey Popov gentoo-dev 2013-07-08 13:34:39 UTC
+  08 Jul 2013; Sergey Popov <pinkbyte@gentoo.org> boost-1.49.0-r2.ebuild,
+  boost-1.52.0-r6.ebuild, boost-1.53.0.ebuild:
+  Add missing build-time dependency on app-arch/bzip2, wrt bug #469114, thanks
+  to Matt Whitlock and Tomáš Pružina

According to my tests it is build-time dep only, reopen if i was wrong.
Comment 4 Arfrever Frehtes Taifersar Arahesis 2013-07-09 12:11:28 UTC
(In reply to Sergey Popov from comment #3)
> +  08 Jul 2013; Sergey Popov <pinkbyte@gentoo.org> boost-1.49.0-r2.ebuild,
> +  boost-1.52.0-r6.ebuild, boost-1.53.0.ebuild:
> +  Add missing build-time dependency on app-arch/bzip2, wrt bug #469114, thanks
> +  to Matt Whitlock and Tomáš Pružina
> 
> According to my tests it is build-time dep only

It is also run-time dependency.

$ scanelf -qF "%F: %n" $(qlist dev-libs/boost | sort) | grep libbz2
/usr/lib64/libboost_iostreams-mt.so: libbz2.so.1,libz.so.1,librt.so.1,libstdc++.so.6,libgcc_s.so.1,libpthread.so.0,libc.so.6
/usr/lib64/libboost_iostreams.so: libbz2.so.1,libz.so.1,librt.so.1,libstdc++.so.6,libgcc_s.so.1,libpthread.so.0,libc.so.6
/usr/lib64/libboost_iostreams.so.1.53.0: libbz2.so.1,libz.so.1,librt.so.1,libstdc++.so.6,libgcc_s.so.1,libpthread.so.0,libc.so.6
Comment 5 Mike Gilbert gentoo-dev 2013-07-09 18:45:56 UTC
Reopening at Arfrever's request.
Comment 6 Sergey Popov gentoo-dev 2013-07-10 11:54:08 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #4)
> It is also run-time dependency.

Thanks for extra checking, this thingy slipped through my scripts :-/

+  10 Jul 2013; Sergey Popov <pinkbyte@gentoo.org> boost-1.49.0-r2.ebuild,
+  boost-1.52.0-r6.ebuild, boost-1.53.0.ebuild:
+  Make app-arch/bzip2 dependency also run-time, wrt bug #469114