diff options
author | ek <ek@purplehat.org> | 2025-06-11 23:53:07 +0000 |
---|---|---|
committer | Robert Clausecker <fuz@FreeBSD.org> | 2025-06-13 15:41:34 +0000 |
commit | 0156537c1e7bf21ac3f9ed17c5d5154725729b22 (patch) | |
tree | 4fdd081b1744ce7183f35930b82655964a41396a | |
parent | 415fbf9744d9ae4e75dae35b72a3d9dee4c32ccf (diff) |
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
-rw-r--r-- | archivers/urbackup-client/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
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 \ |