Skip to content

Commit

Permalink
dev-cpp/valijson: bump to 0.7 & fix test compilation with gcc12
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/866153
Signed-off-by: Holger Hoffstätte <[email protected]>
Closes: gentoo#26988
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
hhoffstaette authored and thesamesam committed Aug 23, 2022
1 parent 1580dc0 commit 3cc6c15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dev-cpp/valijson/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DIST valijson-0.6.tar.gz 1881386 BLAKE2B 1dd7783e10f7d362673bd2b80920c911cca194068078ac1411897b212600032bc15ffe10dbb62c27e54d168a1c634d73ee40b394e4d534e72224694ec662e0a6 SHA512 a493d17159e479be7fe29d45c610c7d4fdd2c2f9ba897923129734fb07257dbb41fddde4c4263dbf0aa5c7101cd1555568a048beba2f60d2b32e625dd9690749
DIST valijson-0.7.tar.gz 2060214 BLAKE2B d2e1c58e37213e44d7d6af173691cad3853e87648948c229ea683bfcba8b19256b0230852b0537c2dbdd7084fcf1ac068e320c5f59a69e446610390b82e76474 SHA512 662e53bf1cac4def19792392cda7cbfe2cbadf77b768eb69b2dec693b16f85f32fa2e9b97eae36569cfcc9ac45f1e6338967423cf415d6bcd90372bc49793a2d
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ src_configure() {
)

if use test; then
# Fix relative paths to test data
sed -i -e "s:../tests/data/documents/:../${P}/tests/data/documents/:" tests/test_adapter_comparison.cpp || die
sed -i -e "s:../tests/data:../${P}/tests/data:" tests/test_validation_errors.cpp || die
sed -i -e "s:../thirdparty/:../${P}/thirdparty/:" -e "s:../doc/schema/:../${P}/doc/schema/:" tests/test_validator.cpp || die
fi

# -Werror is too aggressive due to false positives with gcc-12, see bug #866153
sed -i -e 's/-Werror//g' ../${P}/CMakeLists.txt || die

cmake_src_configure
}

Expand Down

0 comments on commit 3cc6c15

Please sign in to comment.