Date: Friday, July 9, 2021 @ 18:26:29 Author: arojas Revision: 976252
fmt 8.0 rebuild Added: opendht/trunk/opendht-gcc11.patch Modified: opendht/trunk/PKGBUILD ---------------------+ PKGBUILD | 12 +++++++++--- opendht-gcc11.patch | 12 ++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-07-09 18:21:01 UTC (rev 976251) +++ PKGBUILD 2021-07-09 18:26:29 UTC (rev 976252) @@ -4,7 +4,7 @@ pkgname=opendht epoch=1 pkgver=2.1.10 -pkgrel=1 +pkgrel=2 pkgdesc="C++14 Distributed Hash Table (DHT) implementation" arch=(x86_64) url="https://github.com/savoirfairelinux/opendht" @@ -12,9 +12,15 @@ depends=(openssl gnutls nettle argon2 readline fmt http-parser jsoncpp libjsoncpp.so) makedepends=(msgpack-c cmake cython python-setuptools cppunit restinio) optdepends=('python: to use the Python bindings') -source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) -sha256sums=('917e5f691199349d6884a68c26645840914c18e72b2e21d97817618ddc55fb81') +source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz + opendht-gcc11.patch) +sha256sums=('917e5f691199349d6884a68c26645840914c18e72b2e21d97817618ddc55fb81' + '4cd9ee51b3da01f00b0eb4367c48fb3a00df0840d5cf7beafaabcd149c8bd0fc') +prepare() { + patch -d $pkgname-$pkgver -p1 < opendht-gcc11.patch # Fix build with GCC 11 +} + build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=None \ Added: opendht-gcc11.patch =================================================================== --- opendht-gcc11.patch (rev 0) +++ opendht-gcc11.patch 2021-07-09 18:26:29 UTC (rev 976252) @@ -0,0 +1,12 @@ +diff --git a/tests/threadpooltester.cpp b/tests/threadpooltester.cpp +index be948f9..4a5199f 100644 +--- a/tests/threadpooltester.cpp ++++ b/tests/threadpooltester.cpp +@@ -21,6 +21,7 @@ + + #include "opendht/thread_pool.h" + #include <atomic> ++#include <thread> + + namespace test { + CPPUNIT_TEST_SUITE_REGISTRATION(ThreadPoolTester);