Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310207 - dev-libs/boost: add useflags to enable/disable boost libraries
Summary: dev-libs/boost: add useflags to enable/disable boost libraries
Status: RESOLVED DUPLICATE of bug 260404
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Tiziano Müller (RETIRED)
URL: https://forums.gentoo.org/viewtopic-t...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-19 12:54 UTC by Hanno Zysik (geki)
Modified: 2012-08-20 19:29 UTC (History)
6 users (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 Hanno Zysik (geki) 2010-03-19 12:54:43 UTC
There are already useflags for [mpi] and [python].

A list of all the libraries that come with boost 1_42_0:
- date_time filesystem graph graph_parallel iostreams math mpi program_options python random regex serialization signals system test thread wave

At least math, regex, test & wave libraries have a longer compile-time. It would be good to make them optional.

Another idea I have had is to make an eclass for boost to reduce maintenance. Though, I wonder how often the build system changes that drastically that would drive it useless to make an eclass for boost.

Well, just some thoughts. :)
Comment 1 Hanno Zysik (geki) 2010-03-19 13:28:28 UTC
If you do not want to spam IUSE with options there is an alternative.

An example is the apache2 package. It has an environment variable to set its modules to be built. There are surely even other ways possible.

$ grep ^APACHE /etc/make.conf 
APACHE2_MODULES="actions alias auth_basic ..."
APACHE2_MPMS="worker"
Comment 2 Hanno Zysik (geki) 2011-07-27 11:25:51 UTC
I finally managed to create a boost eclass with use flags for boost libraries.

ebuild: http://code.google.com/p/gekis-playground/source/browse/trunk/dev-libs/boost/boost-1.47.0-r1.ebuild
eclass: http://code.google.com/p/gekis-playground/source/browse/trunk/eclass/boost-monolithic.eclass

The regex DEPEND may be moved to the ebuild. The REQUIRED_USE likewise.
Improvements and ideas are welcomed!

I will not add eselect support. That is up to whoever wants that!

___
The boost headers should be in an own ebuild for not copying each header file into the image separately. Sane projects may require boost headers but no boost libraries.

ebuild: http://code.google.com/p/gekis-playground/source/browse/trunk/dev-libs/boost-headers/boost-headers-1.47.0.ebuild
eclass: http://code.google.com/p/gekis-playground/source/browse/trunk/eclass/boost-headers.eclass
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2012-08-20 19:29:11 UTC

*** This bug has been marked as a duplicate of bug 260404 ***