HomeFreeBSD

net-im/licq: apply googletest patches which fix null pointer accesses

Description

net-im/licq: apply googletest patches which fix null pointer accesses

During an exp-run for llvm 12 (see bug 255570), it turned out that
net-im/licq does not build with clang 12.0.0:

[ 92%] Running unit test
cd /wrkdirs/usr/ports/net-im/licq/work/.build/src && /usr/local/bin/ctest
Test project /wrkdirs/usr/ports/net-im/licq/work/.build/src

Start 1: licq

1/1 Test #1: licq .............................***Exception: SegFault 0.03 sec

This is due to licq using a relatively ancient version of googletest,
which has a few issues with more modern compilers. In particular, it
does not handle mocking methods with move-only return types, and in the
case of this port, this leads to a null pointer access and consequently
a segfault.

To fix the null pointer accesses, apply a few upstream googletest
commits.

Approved by: maintainer timeout (2 weeks)
PR: 255915
MFH: 2021Q2

Details

Provenance
dimAuthored on May 15 2021, 10:49 PM
Parents
R11:e7a55adfd667: math/py-ducc0: Update 0.12.0 -> 0.13.0
Branches
Unknown
Tags
Unknown