60 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
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
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
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
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
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
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
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
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
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
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
jasper
e20801e7cd submitted upstream 2015-07-10 07:25:06 +00:00
ajacoutot
ce94d7b0ef Garbage collect some patches that looks uneeded. Survived a bulk.
If it ends up we have some runtime fallout because of these, we'll fix it and
document the patch.

from Brad (maintainer)
jasper@ had the same diff
2015-07-05 15:15:58 +00:00
jasper
61585ccce9 - update to boost 1.58.0
earlier diff looked good to brad
tested in multiple bulks by aja@ and me
ok aja@ robert@
2015-07-01 08:41:59 +00:00
ajacoutot
56e458b4b5 machine/endian.h -> sys/endian.h 2015-05-01 14:47:29 +00:00
brad
2ece201d52 Remove some chunks of the patch now that _POSIX_VERSION has been
bumped higher.
2015-01-05 21:14:46 +00:00
brad
5f3151d7e6 Let Boost know OpenBSD has certain POSIX features but Boost does
not enable the use of said features because the POSIX feature
groups are not enabled yet due to missing functions/features
within respective feature groups.

ok sthen@
2013-04-12 01:11:32 +00:00
brad
dfacbd3e97 Mention using non-C locales. 2013-03-26 20:19:04 +00:00
brad
12677ce7ee Sync boost-filesystem library with upstream and add OpenBSD to the UTF-8
codepath to fix a run-time issue for apps using boost-filesystem with apps
failing with.. "std::runtime_error: locale::facet::_S_create_c_locale name not valid"

Reported by/tested/Ok gonzalo@ bentley@
2013-03-26 20:15:10 +00:00
brad
81beb76314 Update to boost 1.53.0.
Mostly from Amit Kulkarni.

ok sthen@
2013-03-08 01:21:37 +00:00
robert
d11f09d747 bring back a diff from boost svn to support code compilation
with libreoffice and boost

tested in a bulk by jasper and ok jasper@
2012-10-15 20:31:59 +00:00
ajacoutot
2c9b511af1 Remove an unncessary patch now that the system time.h header has been
fixed. No pkg change.

from Brad
2012-05-11 06:06:11 +00:00
ajacoutot
86f65194dd Mark the port as for use with gcc4 only and garbage collect a gcc3
workaround patch.

from Brad
2012-04-22 10:18:13 +00:00
ajacoutot
1d60756007 Remove patch no longer necessary now that the compiler has been fixed.
from Brad (maintainer)
2012-04-13 06:22:02 +00:00
ajacoutot
a1738e64e4 Remove workaround after wchar.h header was fixed.
from Brad
2012-01-06 07:39:55 +00:00
jasper
edfae0e0ad - Remove OpenBSD long double workaround for Boost.Functional/Hash.
- Have Boost.Filesystem use statvfs().

from brad
ok aja@
2011-11-06 20:05:47 +00:00
jasper
64e978a250 spacing 2011-11-06 19:26:23 +00:00
jasper
dae9b3f523 - Remove the now unnecessary patches now the that wide character
support has been integrated
  - Move the endian setting bits within endian.hpp header up above
    Boost's own set of checks to try and guess the endianness of
      the architecture so that the OpenBSD endian header is actually
	used
	- Sync the Boost.Math patch for enabling the long double support
	  on OpenBSD/hppa with what was submitted upstream and commited.

tested by aja@ and naddy@
	  from brad
	  ok aja@
2011-11-02 11:54:15 +00:00
naddy
77233f59d9 * Pass MAKE_JOBS to jam, which can do parallel building.
* Don't add -O2 to all builds.
* Remove workaround for (no longer) missing libm functions and bump
  library.

* Remove OpenBSD hack after the gcc3 thread model has been
  switched to posix.  This part ok kurt@
2011-09-19 19:53:20 +00:00
jasper
bee9e6df51 - tweak, suggested by fgs@ 2010-09-19 20:47:29 +00:00
jasper
761754e9c9 - OpenBSD does not have the definitions for the signals SI_ASYNCIO and
SI_MESGQ.

from markus hennecke
ok landry@
2010-09-19 20:09:41 +00:00
espie
a4bcddad44 build boost with gcc4 and newer libstdc++-v3.
(I'll revisit the math funcs later)
2010-05-26 12:25:23 +00:00
espie
dc1a53b1ec fix warning. wesnoth should compile again 2010-04-30 20:08:02 +00:00
landry
4f93631615 Update to boost 1.42, fixes regressions in gzip module introduced in
1.41. Tested without fallout in a bulk build by stephan@, thanks!
Endianess fixes from kili@, mark as NO_REGRESS as regression suite
changed a lot since old previous 1.34 version.
Remove deanna@ from MAINTAINER has she agreed not having time for it atm.
This port doesn't honour CFLAGS but this will be dealt separately.
2010-04-21 09:26:58 +00:00
landry
7e1dc25aa8 Unbreak boost on hppa, checking for defined(__hppa) to detect HPUX is stupid.
No binary change on other archs, bump PKGNAME to be on the safe side.
2010-04-13 17:15:28 +00:00
landry
0a236cfbc3 Fix boost header so that -Werror configure scripts (wesnoth) doesn't
bomb. An update to 1.42 is needed anyway.
ok jasper@
2010-04-08 11:33:35 +00:00
robert
9d0bd550e1 Add missing patches... 2010-03-30 11:01:10 +00:00
robert
9cfa962094 Udpate to 1.41.0; original diff from Markus Hennecke 2010-03-30 11:00:15 +00:00
kurt
0050e86593 - fix patch that didn't apply cleanly. noted by andreas.kahari at gmail.com 2009-07-27 11:31:08 +00:00