archivers/urbackup-client: Fix for clang/libc 19

This is a fix for compiler changes in the latest LLVM versions,
including "auto_ptr" and the "std::char_traits" template removal.
This works for FreeBSD 15-CURRENT as well as previous supported
versions of FreeBSD.

PR:		286213
MFH:		2025Q2
This commit is contained in:
ek
2025-06-12 01:53:07 +02:00
committed by Robert Clausecker
parent 415fbf9744
commit 0156537c1e
+6 -1
View File
@@ -1,5 +1,6 @@
PORTNAME= urbackup-client
DISTVERSION= 2.5.25.0
PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= https://hndl.urbackup.org/Client/${DISTVERSION:R}/
@@ -38,8 +39,12 @@ CXXFLAGS+= -DCRYPTOPP_DISABLE_ASM
.endif
post-patch:
@${SED} -i "" -e "s:%%PREFIX%%:${PREFIX}:g" \
${REINPLACE_CMD} -e "s:%%PREFIX%%:${PREFIX}:g" \
${WRKSRC}/urbackupclient/backup_scripts/postgresqldump
${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} \
-e 's|std::char_traits|std::vector|g' \
-e 's|std::basic_string|std::vector|g' \
-e 's|auto_ptr|unique_ptr|g' {} +
post-stage:
${INSTALL_DATA} ${WRKDIR}/urbackupclient.conf.sample-daemon \