the patch intended to fix compilation broke rapidjson as documented in https://github.com/void-linux/void-packages/issues/25912 I verified this by compiling and running the test suite with and without the patch applied. There is a proposed fix in https://github.com/Tencent/rapidjson/pull/1698 which seemingly was rejected by the upstream developers, the issue is documented at https://github.com/Tencent/rapidjson/issues/1700. Since upstream insists that what they are doing is correct, make the compiler ignore the errors for now. Alternatively, we could still apply the proposed patch to our package.
27 lines
873 B
Bash
27 lines
873 B
Bash
# Template file for 'rapidjson'
|
||
pkgname=rapidjson
|
||
version=1.1.0
|
||
revision=4
|
||
build_style=cmake
|
||
short_desc="Fast JSON parser/generator for C++ with both SAX/DOM style API"
|
||
maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"
|
||
license="BSD-3-Clause, MIT"
|
||
homepage="https://github.com/miloyip/rapidjson"
|
||
distfiles="https://github.com/miloyip/${pkgname}/archive/v${version}.tar.gz"
|
||
checksum=bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e
|
||
|
||
# class-memaccess is required by https://github.com/Tencent/rapidjson/issues/1700
|
||
CXXFLAGS="-Wno-type-limits -Wno-error=class-memaccess"
|
||
|
||
post_patch() {
|
||
# Remove bin/jsonchecker, which is the JSON licensed files
|
||
rm -rf bin/jsonchecker
|
||
vsed -i license.txt \
|
||
-e 's/To avoid the problematic JSON.*//' \
|
||
-e '/Under the JSON License/,/OTHER DEALINGS IN THE SOFTWARE/d'
|
||
}
|
||
|
||
post_install() {
|
||
vlicense license.txt
|
||
}
|