git: 0156537c1e7b - main - archivers/urbackup-client: Fix for clang/libc 19

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 13 Jun 2025 15:42:02 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0156537c1e7bf21ac3f9ed17c5d5154725729b22

commit 0156537c1e7bf21ac3f9ed17c5d5154725729b22
Author:     ek <ek@purplehat.org>
AuthorDate: 2025-06-11 23:53:07 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-06-13 15:41:34 +0000

    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
---
 archivers/urbackup-client/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/archivers/urbackup-client/Makefile b/archivers/urbackup-client/Makefile
index 3f6591510303..0999935140de 100644
--- a/archivers/urbackup-client/Makefile
+++ b/archivers/urbackup-client/Makefile
@@ -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 \