Commit Graph

108 Commits

Author SHA1 Message Date
Carlos Miguel Ferreira 1c15ce4d22 boost: Updates package to version 1.84.0
This commit updates boost to version 1.84.0

New available libraries:
* *Cobalt:* Basic algorithms and types for C++20 coroutines, from
Klemens Morgenstern. [2]
* *Redis:* Redis async client library built on top of Boost.Asio, from
Marcelo Zimbres Silva. [3]

More info about Boost 1.84.0 can be found at the usual place [1].

[1]: https://www.boost.org/users/history/version_1_84_0.html
[2]: https://www.boost.org/libs/cobalt/
[3]: https://www.boost.org/libs/redis/

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2023-12-24 10:34:49 -08:00
Carlos Miguel Ferreira 4917405d34 boost: Updates package to version 1.83.0
This commit updates boost to version 1.83.0

A new header-only library is available:
- Compat: A repository of C++11 implementations of standard components
  added in later C++ standards, from Peter Dimov and contributors. [1]

More info about Boost 1.83.0 can be found at the usual place [2].

[1]: https://www.boost.org/doc/libs/1_83_0/libs/compat/doc/html/compat.html
[2]: https://www.boost.org/users/history/version_1_83_0.html

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2023-08-14 18:15:20 -07:00
Carlos Miguel Ferreira 80edc718bf boost: Updates package to version 1.82.0
This commit updates boost to version 1.82.0

A new header-only library is available:
- MySql: a C++11 client for the MySQL database server, based on
Boost.Asio, from Ruben Perez. [1]

More info about Boost 1.82.0 can be found at the usual place [2].

[1]: https://www.boost.org/doc/libs/1_82_0/libs/mysql/doc/html/index.html
[2]: https://www.boost.org/users/history/version_1_82_0.html

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2023-04-17 16:06:56 +03:00
Andre Heider e7d9c86503 treewide: refactor to use PKG_BUILD_FLAGS:=lto
See commit 07730ff3 "treewide: add support for "lto" in PKG_BUILD_FLAGS"
on the main repository.

Note: Some packages only added `-flto` to CFLAGS and not LDFLAGS. This
fixes it and properly enables LTO.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Andre Heider 35f4ef76e0 treewide: refactor to use PKG_BUILD_FLAGS:=gc-sections
See commit da370098 "treewide: add support for "gc-sections" in
PKG_BUILD_FLAGS" on the main repository.

Note: This only touches packages which use all three parts
(-ffunction-sections, -fdata-sections and -Wl,--gc-sections) enabled by
this build flag. Some packages only use a subset, and these are left
unchanged for now.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Andre Heider 565866a472 treewide: refactor to use PKG_BUILD_FLAGS:=no-mips16
See commit 5c545bdb "treewide: replace PKG_USE_MIPS16:=0 with
PKG_BUILD_FLAGS:=no-mips16" on the main repository.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Tony Butler 8d638fe835 boost: refresh GCC options in Makefile
this Makefile still used `CONFIG_GCC_USE_VERSION_*` to select various
compilation options, for GCC versions that are antiquated

convert to parsing the major from the `CONFIG_GCC_VERSION` which will
always exist and can also be used with range logic

intent seemed to be:
* `-std=gnu++20` for "=10" (and newer, probably)
* `-std=gnu++14` for "=5"
* `-std=gnu++17` for "not =10 and not =5"

GCC 11 or 12 would likely revert to the default (6 through 9) option
with those, because 10 was the newest at the time, and 11 and 12 are
"not =10 and not =5"

probably the GCC 5 support could be removed, not sure about 9 and 10

Signed-off-by: Tony Butler <spudz76@gmail.com>
2022-12-22 18:11:51 -08:00
Carlos Miguel Ferreira 67e1e7856c boost: Reset Package Release version
Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2022-12-18 13:31:37 -08:00
Carlos Miguel Ferreira e2ede69ef5 boost: Updates package to version 1.81.0
This commit updates boost to version 1.81.0

A new library is available:
- URL [1]: A library for parsing, modifying, and printing URLs using
only C++11, from Vinnie Falco and Alan de Freitas. Features include
fast compilation, strong invariants, and strict compliance using a
memory-friendly approach.

More info about Boost 1.81.0 can be found at the usual place [2].

[1]: https://www.boost.org/doc/libs/1_81_0/libs/url/doc/html/index.html
[2]: https://www.boost.org/users/history/version_1_81_0.html

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2022-12-18 13:31:37 -08:00
Carlos Miguel Ferreira c39be2732d boost: restores patch for libboost_context for mips64
This commit restores the patch for libboost_context for mips64 given
that the upstream update added in 1.80.0 does not fully fixes the issue.

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2022-08-23 21:15:28 -07:00
Carlos Miguel Ferreira 97becb5bd7 boost: bump to version 1.80.0
This commit updates boost to version 1.80.0

There are no new libraries in this version

The following patches were removed due to upstream update:
* 010-mips1.patch [1]
* 910-json-array-erase-relocate.patch [2]

More info about Boost 1.80.0 can be found at the usual place [3].

[1]: https://github.com/boostorg/config/pull/390
[2]: https://github.com/boostorg/json/pull/695
[3]: https://www.boost.org/users/history/version_1_80_0.html

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2022-08-18 18:32:18 -07:00
Carlos Miguel Ferreira d4db474c81 boost: Updates package to version 1.79.0
This commit updates boost to version 1.79.0

There are no new libraries in this version

The following patches were removed due to upstream update:
* 010-fix-b2-install.patch [1]
* 020-fix-musl-build.patch [2]

More info about Boost 1.79.0 can be found at the usual place [3].

Note: This package update includes a fix merged to Boost.JSON in [4]
which did not make into this version.

[1]: 78fd284a42
[2]: https://github.com/boostorg/interprocess/pull/162
[3]: https://www.boost.org/users/history/version_1_79_0.html
[4]: https://github.com/boostorg/json/issues/692

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2022-04-30 23:58:02 -07:00
Rosen Penev da03d1a9b0 Revert "boost: Updates package to version 1.79.0"
This reverts commit 70b7dc87d4.
2022-04-29 15:25:34 -07:00
Carlos Miguel Ferreira 70b7dc87d4 boost: Updates package to version 1.79.0
This commit updates boost to version 1.79.0

There are no new libraries in this version

More info about Boost 1.79.0 can be found at the usual place [1].

Note: This package update includes a fix merged to Boost.JSON in [2]
which did not make into this version.

[1]: https://www.boost.org/users/history/version_1_79_0.html
[2]: https://github.com/boostorg/json/issues/692

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2022-04-27 12:43:59 -07:00
Rosen Penev 8ffdecc972 boost: fix libboost_context for mips64
There was an upstream patch that changes mips1 to mips.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-01-08 19:05:17 -08:00
Carlos Miguel Ferreira e9731ff6b4 boost: Bump to version 1.78.0
This commit updates boost to version 1.78.0
More info about Boost 1.78.0 can be found at the usual place [1].

No new libraries have been added.

[1]: https://www.boost.org/users/history/version_1_78_0.html

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2021-12-29 13:37:11 -08:00
Carlos Miguel Ferreira f2280ae82e boost: Fixes Boost.Math build for arm_xscale
This commit adds a new patch which fixes build issue with Boost.Math.
Issue is described in upstream PR boostorg/math#684 [1]

[1]: https://github.com/boostorg/math/pull/684

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2021-09-08 18:32:31 -07:00
Carlos Miguel Ferreira 1953240085
boost: Bump to version 1.77.0
This commit updates boost to version 1.77.0
More info about Boost 1.77.0 can be found at the usual place [1].

There are two new libraries in this version:
* Describe [2]: A C++14 reflection library, from Peter Dimov. Provides
macros for describing enumerators and struct/class members, and
primitives for querying this information.
* Lambda2 [3]: A C++14, dependency-free, single header lambda library, from
Peter Dimov. Allows simple function objects to be constructed via
expressions such as:
_1 + 5, _1 % 2 == 0, _1 > _2, or _1 == ' ' || _1 == '\t'.

[1]: https://www.boost.org/users/history/version_1_77_0.html
[2]: https://www.boost.org/libs/describe/
[3]: https://www.boost.org/libs/lambda2/

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2021-09-02 02:12:19 +01:00
Rosen Penev 8e35ba8860 boost: fix compilation error under SPARC
Missing braces.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-07-14 19:08:47 -07:00
Carlos Miguel Ferreira 34a91f7be3
boost: Fixes Boost.regex header-only (v5) include
In v1.76.0 Boost.Regex became a header-only library.
With this update, there are now two different versions:
- v4 for C++03 (deprecated)
- v5 header-only

This commit fixes an issue which was preventing Boost.Regex
from being built for old ArmV5 targets

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2021-06-03 23:45:30 +01:00
Carlos Miguel Ferreira 7109e2ef1b
boost: Bump to version 1.76.0
This commit updates boost to version 1.76.0

There are no new libraries in this version

More info about Boost 1.76.0 can be found at the usual place [1].

Note: This package update includes a fix merged to Boost.Fiber in [2]
which did not make into this version but it will be present in the next
one. For now, the patch is needed, but it will be removed in version
1.77.0

[1]: https://www.boost.org/users/history/version_1_76_0.html
[2]: https://github.com/boostorg/fiber/pull/276

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2021-04-20 22:14:46 +01:00
Rosen Penev 04c81d3bcc boost: fixup mips64 fiber patch
It turns out that this is also broken on mips64el. Further testing
reveals that

-mips32r2 -mtune=mips32r2 -mabi=32

compiles the PAUSE instruction just fine whereas

-mips64r2 -mtune=mips64r2 -mabi=64

does not. The PAUSE instruction was introduced in version 2.6 of the
MIPS ISA and GCC for some reason does not allow usage of it with MIPS64.
Modify the macro to fix the situation instead of just matching on
octeon, which is not quite correct.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-26 12:35:17 -07:00
Rosen Penev 7b360868ff boost: build context for mips64
It turns out there's upstream support for it. A small patch is needed
to fix softfloat support.

Also added patch to fix boost-fiber on octeon+. Failure happens because
the platform is based on an old MIPSr2 standard that lacks the pause
instruction.

It also turns out that MIPS64 builds are done with the wrong ABI.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-02-13 18:40:50 -08:00
Carlos Miguel Ferreira 6b79c46bb4
boost: Adds json library
json library can work as header-only, but adding for the
cases where it is necessary.

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2020-12-14 22:18:46 +00:00
Carlos Miguel Ferreira a3c6d8badc
boost: Removes unecessary patch
Fixed in upstream

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2020-12-14 00:10:59 +00:00
Carlos Miguel Ferreira e688f1c764
boost: Updates package to version 1.75
This commit updates boost to version 1.75

This release brings three new packages
* JSON parsing, serialization, and DOM in C++11, from Vinnie Falco and
  Krystian Stasiowski. [1]
* LEAF: A lightweight error-handling library for C++11, from Emil
  Dotchevski. [2]
* PFR: Basic reflection without macro or boilerplate code for user
  defined types, from Antony Polukhin. [3]

More info about Boost 1.75.0 can be found at the usual place [4].

[1]: https://www.boost.org/libs/json/
[2]: https://www.boost.org/libs/leaf/
[3]: https://www.boost.org/libs/pfr/
[4]: https://www.boost.org/users/history/version_1_75_0.html

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2020-12-13 21:30:36 +00:00
Van Waholtz 18ceb48284 boost: fix boost-regex compiling failure on targets of uClibc
Signed-off-by: Van Waholtz <vanwaholtz@gmail.com>
2020-10-24 02:04:58 -07:00
Van Waholtz eaa201b774 boost: fix the LDFLAGS and reduce the package size
1. Add -lstdc++ to LDFLAGS.
2. Add "-Wl,--gc-sections,--as-needed" to LDFLAGS and "-ffunction-sections -fdata-sections -flto" to CFLAGS which will reduce the size by 10% ~ 13%.
3. Only a virtual package will be created if only static libs are built, which will avoid compiliation failures.
4. Other improvements

Signed-off-by: Van Waholtz <vanwaholtz@gmail.com>
2020-10-17 06:17:14 -07:00
Van Waholtz 31b4830539 boost: refine the dependences
Signed-off-by: Van Waholtz <vanwaholtz@gmail.com>
2020-10-12 00:08:53 -07:00
Rosen Penev da840fa878
boost: replace zstd dependency with libzstd
libzstd is the correct one.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-09-18 14:15:28 -07:00
Carlos Miguel Ferreira 038646225b
boost: Package Revision - Remove unneded patches
This commit removes patches which are no longer needed

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2020-08-19 12:12:15 +01:00
Carlos Miguel Ferreira 45290b6953
boost: Package Revision - Fix C++ standard flag
This commit fixes the use of the C++20 standard when
 GCC 10.x is used.

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2020-08-18 23:38:21 +01:00
Carlos Miguel Ferreira e9c5b9d3e1
boost: Package Version Update (1.74.0)
This commit updates Boost to version 1.74.0
In this release, there is one new libraries
 - STLInterfaces [2]:
   A library of CRTP bases to ease the writing of STL views,
   iterators, and sequence containers, from Zach Laine.

This update also provides support to build boost with C++20 when using
GCC 10.x

More info about Boost 1.74.0 can be found at the usual place [1].

[1]: https://www.boost.org/users/history/version_1_74_0.html
[2]: https://www.boost.org/libs/stl_interfaces/

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2020-08-18 14:37:33 +01:00
Carlos Miguel Ferreira 3fb802f5d0
boost: Package Version Update (1.73.0)
This commit updates Boost to version 1.73.0
In this release, there are two new libraries
 - Nowide [2] - Standard library functions with UTF-8 API on Windows,
   from Artyom Beilis.
 - Static String [3] - A dynamically resizable string of characters
   with compile-time fixed capacity and contiguous embedded storage,
   from Vinnie Falco and Krystian Stasiowski.

More info about Boost 1.73.0 can be found at the usual place [1].

[1]: https://www.boost.org/users/history/version_1_73_0.html
[2]: https://www.boost.org/libs/nowide/
[3]: https://www.boost.org/libs/static_string/

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2020-05-03 20:29:04 +01:00
Jeffery To 2aaf4a6aee boost: Remove Python 2 library package
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-01 01:56:02 +08:00
Rosen Penev ac100e45f7
boost: Fix embarassing ARC typo
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-12-21 17:39:19 -08:00
Carlos Miguel Ferreira c8907926cc
boost: Package Version Update (1.72.0)
This commit updates Boost to version 1.72.0
    There are no new libraries in this release.

    Note:
    - This commit also adds a post-release patch to fix an issue
    with Boost.Coroutine

    More info about Boost 1.72.0 can be found at the usual place [1].

    [1]: https://www.boost.org/users/history/version_1_72_0.html

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2019-12-21 22:19:56 +00:00
Rosen Penev f795779c0a boost: Fix fiber compilation for mips
The issue was that the pause instruction was emitted through an asm
directive which was not correct for some mips platforms.

Simplified boost-fiber-exclude as a result.

Removed uClibc-ng math patch. It was not correct as it broke float and
long double support (std variants use function overloads). A different
solution was applied upstream. As it's quite annoying to backport, just
wait until a new release comes with that change. ARC as a platform is
barely supported anyways.

Swapped asio patch for the upstream submission, which is unfortunately, in
limbo.

Refreshed remaining patch.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-11-15 12:53:20 -08:00
Rosen Penev 260d4a346a
boost: Remove thread dependency from context
thread is only used when the C++ mutex header is missing. AFAIK, this is
the case on Windows and not on Linux. Certainly not in OpenWrt.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-07 11:07:50 -07:00
Rosen Penev ddd4109c1c
boost: Remove several host libraries
The facebook people have been working on removing Boost dependencies from
their projects. This is the current state.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-07 11:07:50 -07:00
Rosen Penev dc3220736d
boost: Switch to blacklist of targets for context
Works around a buildbot bug.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-09-25 22:39:28 -07:00
Rosen Penev 1f77459ace boost: Update host libraries
It seems newer versions of fbthrift require more libraries.

Also added AR7, RB532, and Lantiq ASE to fiber exclusion.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-09-23 11:29:52 -07:00
Jan Pavlinec 299e5b0a9b
treewide: add PKG_CPE_ID for better cvescanner coverage
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-17 12:40:26 +02:00
Carlos Miguel Ferreira 0cd9824623
boost: Package Version Update (1.71.0) + bugfixes
This commit updates Boost to version 1.71.0 and disables Boost.Context
 for arc and mips64 architectures, since either jump_fcontext or
 getcontext are undefined for those architectures.

It also fixes a bug were Boost.Fiber was not properly disabled for
mips32 and mips64 architectures.

Boost.Coroutine2 option was removed since it was redundant. By selecting
the Coroutine package, Coroutine2 is also installed.

Boost.Fiber has been disabled for target brcm47xx_generic and brcm47xx_legacy
due to misssing opcode support from instruction set.

Boost 1.71.0 brings a new header-only library
 - Boost.Variant2 [1]
   -> A never-valueless, strong guarantee implementation of
      std::variant, from Peter Dimov.

More info about Boost 1.71.0 can be found at the usual place [2].

[1]: https://www.boost.org/doc/libs/1_71_0/libs/variant2/doc/html/variant2.html
[2]: https://www.boost.org/users/history/version_1_71_0.html

Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
2019-09-10 14:25:35 +01:00
Jo-Philipp Wich af4cacd108
boost: fix raw kconfig syntax
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-06-22 19:30:25 +02:00
Josef Schlehofer 79831ee0ab
boost: Makefile polishing
Corrected License according to SPDX in PKG_LICENSE
Added PKG_LICENSE_FILES
HTTPS in their website
Reordered some stuff

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-06-22 19:30:19 +02:00
Rosen Penev 45d2000f9c boost: Install HOST libraries to HOSTPKG
After talking to @jow on IRC, we found two problems. STAGING_DIR_HOST is
designed for tools, not host packages. Changing this to HOSTPKG allows
CMake and pkgconfig to work properly with fbthrift.

The host-libraries should not be modular like this for host packages.
Changed to eliminate them and to only build the needed ones. This can be
changed as conditions change.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-06-17 12:29:36 -07:00
Stijn Tintel 1404da5894 boost: refresh patches
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2019-06-05 10:34:06 +03:00
Stijn Tintel 7766b0b878 boost: ignore site config during host build
Without this, the host build picks up the site config in
/usr/share/boost-build/site-config.jam which causes a build failure on
Gentoo where a custom optimization value "none" is used.

Fixes #9152.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2019-06-05 10:33:08 +03:00
Amol Bhave 7c42ddf9ff boost: add host library build for boost
Summary: Currently, boost host build doesn't actually compile boost
libraries for the host arch. If there are host tools that would want
to link against boost, it can't right now.

This diff adds support for compiling host boost library as well.
Any packages that need to depend on a host boost library can depend on
CONFIG_boost-host-build-<lib>.

Test Plan: Compiled fbthrift and verified that it works.
used openwrt master using nbg6817

Maintainer: @ClaymorePT

Signed-off-by: Amol Bhave <ambhave@fb.com>
2019-05-10 18:42:30 -07:00