[Buildroot] [PATCH 1/1] package/boost: drop versioned layout
Arnout Vandecappelle
arnout at mind.be
Thu Apr 14 19:27:24 UTC 2022
On 06/04/2022 19:29, Fabrice Fontaine wrote:
> boost.m4 embedded by cc-tool is not able to find boost libraries when
> they are versionned (e.g. libboost_program_options-gcc9-mt-sd-1_78.a):
>
> configure: error: cannot find the flags to link with Boost program_options
>
> azmq and i2pd also have the same issue:
>
> CMake Error at /nvmedata/autobuild/instance-8/output-1/host/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
> Could NOT find Boost (missing: Boost_INCLUDE_DIR system date_time thread
> chrono random) (Required is at least version "1.48")
>
> So drop versioned layout option
This is probably going to cause problems for some custom packages that have a
simple build system that assumes the versioned layout. Oh well, bad luck.
Applied to master, thanks.
Regards,
Arnout
>
> Fixes:
> - http://autobuild.buildroot.org/results/4ae98aed925fbb1d54023075deda9a864f52cee6
> - http://autobuild.buildroot.org/results/de35ca0156d4b6f465e440ed9a3effd471f657fa
> - http://autobuild.buildroot.org/results/c3d2a066429d5f2889c2232d62e5950eb6a89311
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
> Config.in.legacy | 9 +++++++++
> package/boost/Config.in | 7 -------
> 2 files changed, 9 insertions(+), 7 deletions(-)
>
> diff --git a/Config.in.legacy b/Config.in.legacy
> index 48c5ebb81e..27f19f14e7 100644
> --- a/Config.in.legacy
> +++ b/Config.in.legacy
> @@ -144,6 +144,15 @@ endif
>
> ###############################################################################
>
> +comment "Legacy options removed in 2022.05"
> +
> +config BR2_PACKAGE_BOOST_LAYOUT_VERSIONED
> + bool "boost versioned layout removed"
> + select BR2_LEGACY
> + help
> + Boost versioned layout isn't handled by a number of autotools
> + and cmake packages (e.g. azmq, cc-tool, i2pd).
> +
> comment "Legacy options removed in 2022.02"
>
> config BR2_PACKAGE_LIBCURL_LIBNSS
> diff --git a/package/boost/Config.in b/package/boost/Config.in
> index 16c3ef8465..f039d68b1e 100644
> --- a/package/boost/Config.in
> +++ b/package/boost/Config.in
> @@ -36,19 +36,12 @@ config BR2_PACKAGE_BOOST_LAYOUT_TAGGED
> and version, or Boost version. This option is useful if you
> build several variants of Boost, using the same compiler.
>
> -config BR2_PACKAGE_BOOST_LAYOUT_VERSIONED
> - bool "versioned"
> - help
> - Boost binary names include the Boost version number, name
> - and version of the compiler and encoded build properties.
> -
> endchoice
>
> config BR2_PACKAGE_BOOST_LAYOUT
> string
> default "system" if BR2_PACKAGE_BOOST_LAYOUT_SYSTEM
> default "tagged" if BR2_PACKAGE_BOOST_LAYOUT_TAGGED
> - default "versioned" if BR2_PACKAGE_BOOST_LAYOUT_VERSIONED
>
> config BR2_PACKAGE_BOOST_ATOMIC
> bool "boost-atomic"
More information about the buildroot
mailing list