118 Commits

Author SHA1 Message Date
rsadowski
a5cce4a550 Unbreak boost 1.67.0 on i386, spotted by sthen@ Thanks
Diff from upstream:

Removed clang-specific branch for x86 DCAS-based loads.

The storage to load from is const-qualified and DCAS via compiler intrinsics
require an unqualified pointer. Use asm implementation instead, which should be
as efficient as intrinsics, if not better, in this case.

6e14ca24da
2020-08-17 14:01:09 +00:00
rsadowski
bb477f5b45 Update boost from 1.66.0 to 1.67.0 (Not to the latest)
This update was requested by aja to update and unbreak productivity/gnucash.

Changlog from upstream:
https://www.boost.org/users/history/version_1_67_0.html
2020-08-15 20:30:40 +00:00
kn
85bce24ee2 Revert previous
While it builds on sparc64 (nowadays), there are still major
runtime issues.

Noted by sthen, otto, Brad
2020-06-08 18:43:24 +00:00
kn
ae7c862f1d Build boost-md on sparc64
OK rsadwoski
"go ahead" plus comment fix from Brad
2020-06-07 12:03:44 +00:00
rsadowski
78d62b1866 Switch HOMEPAGE to https 2020-03-31 04:37:47 +00:00
sthen
a91a9370aa oops, I missed bumping REVISION-md for the plist change 2020-01-30 14:29:15 +00:00
kmos
96b2d95db1 Adding patch I forgot to add when committing update earlier.
Bump REVISION-main again while here.

Pointed out by Nam Nguyen. Thank you.
2020-01-30 01:42:34 +00:00
kmos
d7c6a44cae Fix devel/boost python3 bindings
From Nam Nguyen

With input from rsadowski and sthen

Reworked by sthen

Tested by myself and sthen

ok sthen
2020-01-29 22:39:09 +00:00
kmos
cb252b44bb Reverting 1.79 workaround now that ports-gcc has been upgraded
Diff from Brad (maintainer)
2019-11-27 05:17:35 +00:00
otto
d6ec34c5bb - Fix userland context switching on powerpc, OpenBSDs ABI differs from the Linux one.
- Fix error in fixed size stack allocator.
Heavy lifting done by George Koehler. ok sthen@ rsadowski@
2019-09-19 07:38:14 +00:00
jca
090ddbce77 Use ONLY_FOR_ARCHS-md instead of a ".if ${MACHINE_ARCH} ..." tests list
ok sthen@ Brad Smith (maintainer)
2019-08-09 11:25:29 +00:00
sthen
e40db86e25 MAP_STACK is also needed for basic_standard_stack_allocator, found while
testing Icinga 2 development code.  Looks good to otto@, ok Brad
2019-07-18 20:27:25 +00:00
sthen
9fe1e38b23 replace simple PERMIT_PACKAGE_CDROM=Yes with PERMIT_PACKAGE=Yes 2019-07-12 20:43:27 +00:00
ajacoutot
b8b4821b2e Build the MD subpackage on PowerPC.
from Brad and tested by cwen@
2019-05-31 05:51:55 +00:00
sthen
1dd0a927d8 boost-md needs LIB_DEPENDS/WANTLIB on -main 2019-05-20 15:58:15 +00:00
sthen
d7f0752227 bump all the py3 things, _SYSTEM_VERSION didn't quite work out how
we expected and it's easier|safer to do it this way than fiddle with
pkg_add now. thanks aja for update tests with a quick bulk.
2019-04-28 20:51:26 +00:00
phessler
3b3ad206cd build the -md multipackage on aarch64, in pkgsnaps for a while 2019-02-28 20:20:03 +00:00
jca
0ab3526081 Simplify libc++7 workaround, tweaking config.hpp was enough
Noticed by naddy@, ok Brad (maintainer)
2019-02-07 13:53:28 +00:00
jca
6086340727 Unbreak on clang archs, prefer <string_view> to <experimental/string_view>
ok Brad (maintainer)

libc++7 made <experimental/string_view> a stub containing only

  #error "<experimental/string_view> has been removed. Use <string_view> instead."

One can wonder why upstream kept the header at all.
2019-02-06 11:43:35 +00:00
rsadowski
194112f1a7 enable boost-build
To make your boost.build executables b2 and bjam useful we have to install
some additional files.

Noticed by Ivan Krylov via openbsd@freenode. Thanks!

feedback from semarie@ and aja@, tweaks and ok sthen@
2019-01-03 07:29:58 +00:00
jca
f85e9e31c3 Drop bogus -mcpu=v7 on sparc64 (sparc64 == sparc V9)
"looks good" rsadowski@, ok Brad (maintainers)
2018-12-24 23:35:41 +00:00
jca
0e2f9ca21d Fix Boost.Locale and unbreak on ports-gcc archs
Since the update to icu4c-63.1, icu4c uses char16_t and others from the
C++11 standard, but eg++-4.9 defaults to -std=gnu++98.

"looks good" rsadowski@, ok Brad (maintainers)
2018-12-24 23:34:27 +00:00
jca
91ba3d0980 Respect PORTPATH and pick up eg++ instead of base g++
"looks good" rsadowski@, ok Brad (maintainers)
2018-12-24 23:31:02 +00:00
jca
dec9bb29a2 Print compile commands again (lost in the update to boost-1.65.1)
Without this debugging problems is almost impossible.
"looks good" rsadowski@, ok Brad (maintainers)
2018-12-24 23:27:51 +00:00
sthen
84b2eeef2b Add support for boost contexts on i386, arm, amd64, from otto@.
As this brings new libraries on supported architectures, split the
package into -main and -md subpackages, keeping plist updates simpler
and avoiding need for knowledge of supported arches in dependent
ports. Also means that if future ports start picking up the MD
libraries they will be easier to find. (Thanks aja@ for running a
bulk build and check-lib-depends run with an earlier version to
make sure existing ports don't pick up the new libs.)

ok rsadowski@

Bumps for ports using boost as LIB_DEPENDS or RUN_DEPENDS to
follow.
2018-12-13 19:52:46 +00:00
sthen
5dbf823bb7 set -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR in archivers/innoextract
to unbreak with new libc++, newer boost is likely to fix this so add a
comment in devel/boost/Makefile
2018-09-11 19:26:14 +00:00
kirby
7f964a3696 enable Unicode/ICU support in Regex
bulk build on macppc, i386 and amd64 by myself
ok rsadowsk@ (maintainer)
2018-08-23 16:38:10 +00:00
rsadowski
5126c24bf7 Update boost to 1.66.0
Main port changes:
- Add myself as second maintainer
- Licence tag from MIT-like to boost

Changelog:

http://www.boost.org/users/history/version_1_66_0.html

ok jca@ and landry@ (Tested in a bulk, thanks!)
"Fine with me" from Brad (maintainer)
2018-01-31 21:54:49 +00:00
rsadowski
90658284fb Update boost to 1.65.1
Notable port changes.

- Bump all shared libs from 6.0 to 7.0.
- COMPILER= base-clang ports-gcc (Replace ONLY_FOR_ARCHS)
- Remove our user.hpp. Boost detects all compiler features correct.
- Drop all -Wno-* options.
- Drop fiber support. It doesn't build with GCC
- Drop stacktrace support. It doesn't build on arm (spotted by jca@)
- b2 doesn't seem to respect python parameter, we need to run twice with
  separate python environments to build both shared libs.
- Zap trailing whitespace
- Add py-numpy as bdep
- Disable precompiled header
- cleanup BJAM_CONFIG
- Drop "-d+2" debug.

Survived a macppc bulk by kirby@
Survived a amd64 bulk by landry@
Build test on sparc64 and arm by jca@ (and many other tests)

Many thanks to all those who made it possible

Final ok landry@, jca@
2017-12-26 19:18:49 +00:00
espie
178d9e13a9 restore sensible permissions to a few wrkdirs. 2017-11-25 13:27:48 +00:00
espie
5fe763a76e Fix the clang config, really configure for INT128, using clang built-in
defines.

This lets i386 build clang.
2017-07-27 17:45:07 +00:00
sthen
5e964ab0df bump LIBCXX/LIBECXX/COMPILER_LIBCXX ports. 2017-07-26 22:45:14 +00:00
espie
8ac47fd9c6 use COMPILER_LIBCXX where applicable 2017-07-16 19:18:47 +00:00
espie
7448552864 the tests are wrong, but it's simpler to define the annoying constant to 0 2017-06-04 19:05:03 +00:00
espie
b5b3ec374e clean up Vadim's mess, reorg file so that what we're doing is actually
documented
2017-06-03 14:59:11 +00:00
espie
582f69183e fix nasty clang bug that prevented facter from building 2017-06-02 02:21:06 +00:00
zhuk
c8e7b74b40 Better Clang support for Boost. Allows facter & friends to be built.
To be revisited later if something else will break under CMake.

a lot of valuable input from espie@
2017-05-30 18:00:53 +00:00
espie
8b0722750f rename COMPILER as TOOLSET in prevision of impending change 2017-05-30 07:54:36 +00:00
espie
ce0bafadca improve the clang config: boost hardcodes __attribute__((unused)) on the
wrong compiler, so re-add it (dependent ports will whine a lot less)
tell boost we have threads and int128 (there's not issue about dual
compiler for clang)
2017-05-24 08:30:20 +00:00
espie
48f8c79870 first try at a clang compile, reuse gcc config so that stuff that builds
does build.

todo:
- enable more stuff
- look closer at the tooling, needs something like the gcc config change

but at least, this allows us to look at the remaining ports.
2017-05-21 11:22:31 +00:00
espie
1727b3f900 do not redefine unix if it's already there, silences some clang warnings 2017-05-21 09:49:30 +00:00
espie
1eadd963d4 make sure the one test that boost fails on clang conforms to what gcc does 2017-05-20 10:32:43 +00:00
sthen
7e44b3e4be Add ${CLANG_ARCHS} to "ONLY_FOR_ARCHS = ${GCC4_ARCHS}" lines to give them
a chance on aarch64.
2017-04-19 11:16:03 +00:00
sthen
7b9fdbb2c9 use LIBCXX 2017-04-10 11:45:22 +00:00
naddy
f306ea3688 Honor CXX, CXXFLAGS.
(1) Pass CXX and CXXFLAGS to the configure script run.
(2) Split out the build of the bjam tool from the bootstrap procedure.
(3) Tell the main build to use CXX via user-config.jam.

ok Brad, jca@
2017-03-07 15:54:05 +00:00
naddy
1db8edffc5 replace libiconv module 2016-09-13 14:40:29 +00:00
dcoppa
6dbc4cc166 boost does not like mixing different compilers at build and compile
time.

We build boost itself with gcc-4.2.1 from base, which doesn't support
the integer scalar type __int128, and this results in a
/usr/local/include/boost/config/user.hpp lacking the "BOOST_HAS_INT128"
define.

When compiling something that depends on boost using a newer compiler
like gcc-4.9 or clang, a code snippet in
/usr/local/include/boost/config/compiler/{clang,gcc}.hpp reactivates
__int128 support, but the code containing typedef declarations
inside /usr/local/include/boost/config/suffix.hpp is never reached,
because /usr/local/include/boost/config/user.hpp lacks "BOOST_HAS_INT128".
Hence, the following errors occur:

/usr/local/include/boost/type_traits/is_integral.hpp:72:1: error: 'int128_type' is not a member of 'boost'
/usr/local/include/boost/type_traits/is_integral.hpp:73:1: error: 'uint128_type' is not a member of 'boost'

As a temporary band-aid, completely disable __int128 support on
OpenBSD.

OK jca@, sthen@
2016-06-01 14:56:54 +00:00
dcoppa
00bbf9b619 Fix Boost.Asio, broken after the removal of SSLv3 support:
/usr/local/include/boost/asio/ssl/impl/context.ipp: In constructor 'boost::asio::ssl::context::context(boost::asio::ssl::context_base::method)':
/usr/local/include/boost/asio/ssl/impl/context.ipp:93: error: '::SSLv3_method' has not been declared
/usr/local/include/boost/asio/ssl/impl/context.ipp:96: error: '::SSLv3_client_method' has not been declared
/usr/local/include/boost/asio/ssl/impl/context.ipp:99: error: '::SSLv3_server_method' has not been declared

OK jca@
2016-05-27 22:35:40 +00:00
jca
8495a25bd4 Unbreak boost on (at least) alpha, hppa and sparc64
- ensure we don't build the 'context' and 'coroutine' libs, they are not
  portable and the latter depends on the former
- don't use the 'gcc_sparc' backend in Boost.atomic, for it doesn't
  build; use the generic gcc backend based on __sync_*
- stop tweaking cc -march / -mcpu values; this is not desirable on any
  arch and it breaks on sparc64 due to a bogus -mcpu=c3 default
- don't attempt to force -m32 / -m64 flags, this breaks at least alpha
  (64 bits but doesn't understand -m64)

alpha, hppa & sparc64 tests by landry@, amd64 bulk by ajacoutot@
ok jasper@
2015-08-03 18:29:30 +00:00
jasper
c37428a718 don't add -m32 to compiler flags; see if this unbreaks hppa 2015-07-10 08:13:46 +00:00