FS#65974 - [boost] - co-routines broken

Attached to Project: Arch Linux
Opened by Adam (catch22) - Wednesday, 25 March 2020, 12:03 GMT
Last edited by Evangelos Foutras (foutrelis) - Saturday, 12 December 2020, 08:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Coroutines library is broken

* package version: 1.72

* This is a know issue on the release page
https://www.boost.org/users/history/version_1_72_0.html

* Patch provided on the boost release page
https://www.boost.org/patches/1_72_0/0001-revert-cease-dependence-on-range.patch


Steps to reproduce:
The coroutine example won't compile, unless that patch is applied.
https://www.boost.org/doc/libs/1_72_0/doc/html/boost_asio/example/cpp11/spawn/echo_server.cpp
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Saturday, 12 December 2020, 08:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  Assuming this is fixed in boost 1.74.0; reopen if not.
Comment by Adam (catch22) - Wednesday, 25 March 2020, 12:09 GMT
patch
-----
diff --git a/boost/repos/extra-x86_64/PKGBUILD b/boost/repos/extra-x86_64/PKGBUILD
index dee11f3c526..623cde56129 100644
--- a/boost/repos/extra-x86_64/PKGBUILD
+++ b/boost/repos/extra-x86_64/PKGBUILD
@@ -12,15 +12,18 @@ pkgbase=boost
pkgname=('boost-libs' 'boost')
pkgver=1.72.0
_boostver=${pkgver//./_}
-pkgrel=1
+pkgrel=2
pkgdesc='Free peer-reviewed portable C++ source libraries'
url='https://www.boost.org/'
arch=('x86_64')
license=('custom')
makedepends=('icu' 'python' 'python2' 'python-numpy' 'python2-numpy' 'bzip2' 'zlib' 'openmpi' 'zstd' 'findutils')
-source=(https://dl.bintray.com/boostorg/release/${pkgver}/source/boost_${_boostver}.tar.bz2)
-sha256sums=('59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722')
-b2sums=('ab270a0e3cb24da687d86785e2d2e6d7731b4dbc07bd839eadb642dfa5a428ad584acb1f3529661a8de9a986008ff3427491041059ea2b742348d02e00761cd8')
+source=(https://dl.bintray.com/boostorg/release/${pkgver}/source/boost_${_boostver}.tar.bz2
+ https://www.boost.org/patches/1_72_0/0001-revert-cease-dependence-on-range.patch)
+sha256sums=('59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722'
+ 'da7950df251a9d785a84c0092fb7ac4f68f6872c6172cccb303a5453e0ef98fd')
+b2sums=('ab270a0e3cb24da687d86785e2d2e6d7731b4dbc07bd839eadb642dfa5a428ad584acb1f3529661a8de9a986008ff3427491041059ea2b742348d02e00761cd8'
+ '9419cf7b50359c17f6226e0706e64a4637d835172a742807349536fb87731912929148810e5abb33c6005583bf6077283c2e6c453a911ea7922266f616b60ea4')

build() {
export _stagedir="${srcdir}/stagedir"
@@ -28,6 +31,8 @@ build() {

cd ${pkgbase}_${_boostver}

+ patch -p1 -i ${srcdir}/0001-revert-cease-dependence-on-range.patch
+
./bootstrap.sh --with-toolset=gcc --with-icu --with-python=/usr/bin/python2

install -Dm755 tools/build/src/engine/b2 "${_stagedir}"/bin/b2
Comment by Philipp Claßen (PhCl) - Friday, 12 June 2020, 12:48 GMT
I also get compile errors in the asio examples with Boost 1.72. This related bug report mentions that it should be fixed in Boost 1.73: https://github.com/boostorg/beast/issues/1884

(In the meantime, my workaround is to disable coroutine support with "#define BOOST_ASIO_DISABLE_CONCEPTS")
Comment by Adam (catch22) - Tuesday, 23 June 2020, 02:24 GMT
This is only a work around if you don't want to use coroutines :(

Loading...