Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436262 - >=dev-libs/boost-1.49.0-r1: fails to build on systems without locale support
Summary: >=dev-libs/boost-1.49.0-r1: fails to build on systems without locale support
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:
: 440684 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-25 23:44 UTC by Anthony Basile
Modified: 2012-11-11 05:42 UTC (History)
4 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 Anthony Basile gentoo-dev 2012-09-25 23:44:33 UTC
On systems without locale support, such as uclibc when configure without it, boost fails to build.  And yet there is a configuration option in boost's build system that allows you to disable locale: --without-locale.  It is a simple matter to expose this option to the user:

--- boost-1.49.0-r1.ebuild.orig	2012-09-25 19:38:54.000000000 -0400
+++ boost-1.49.0-r1.ebuild	2012-09-25 18:41:26.000000000 -0400
@@ -18,7 +18,7 @@
 LICENSE="Boost-1.0"
 SLOT="$(get_version_component_range 1-2)"
 KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
-IUSE="debug doc +eselect icu mpi python static-libs test tools"
+IUSE="debug doc +eselect icu +locale mpi python static-libs test tools"
 
 RDEPEND="icu? ( >=dev-libs/icu-3.3 )
 	mpi? ( || ( sys-cluster/openmpi[cxx] sys-cluster/mpich2[cxx,threads] ) )
@@ -143,6 +143,7 @@
 
 	use icu && OPTIONS+=" -sICU_PATH=/usr"
 	use icu || OPTIONS+=" --disable-icu boost.locale.icu=off"
+	use locale || OPTIONS+=" --without-locale"
 	use mpi || OPTIONS+=" --without-mpi"
 	use python || OPTIONS+=" --without-python"
Comment 1 Anthony Basile gentoo-dev 2012-09-25 23:49:34 UTC
Two other points:

1) locale is a local use flag and needs to be added to metadata.xml

2) If there is a good reason to force locale on for glibc, then we can add logic to check if has_version sys-libs/glibc and then act accordingly.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2012-09-26 03:51:36 UTC
Boost.Locale library was introduced in Boost 1.48.

Maybe modularization would better solve this this bug.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-10-31 16:38:17 UTC
There is no reason to use has_version, we should just use package.use.force.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-11-11 03:47:53 UTC
*** Bug 440684 has been marked as a duplicate of this bug. ***
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-11-11 05:42:36 UTC
Fixed, the USE flag is nls and is present in 1.52.0-r2.