Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jul 2023 07:12:45 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9a5b72855f40 - main - lang/gnu-apl: try to fix the port's build on recent -CURRENT
Message-ID:  <202307080712.3687CjbY039743@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9a5b72855f4055ea0731fd5d1979a32cc67bf0f6

commit 9a5b72855f4055ea0731fd5d1979a32cc67bf0f6
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2023-07-08 07:11:46 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2023-07-08 07:11:46 +0000

    lang/gnu-apl: try to fix the port's build on recent -CURRENT
    
    Use modern smart pointer class `std::unique_ptr' instead of
    the deprecated in C++11 and removed in C++17 `std::auto_ptr'.
    
    Reported by:    pkg-fallout
---
 lang/gnu-apl/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lang/gnu-apl/Makefile b/lang/gnu-apl/Makefile
index 4b2691406369..c3502956a76b 100644
--- a/lang/gnu-apl/Makefile
+++ b/lang/gnu-apl/Makefile
@@ -49,6 +49,9 @@ SQLITE_CONFIGURE_WITH=	sqlite3=${LOCALBASE}
 post-patch:
 	@${REINPLACE_CMD} -e '25s,^,#include <sys/socket.h>,' \
 		${WRKSRC}/src/Common.hh
+	@${REINPLACE_CMD} -e 's,auto_ptr,unique_ptr,' \
+		${WRKSRC}/src/emacs_mode/network.cc \
+		${WRKSRC}/src/sql/apl-sqlite.cc
 	@${REINPLACE_CMD} -e 's,bind(,::&,' \
 		${WRKSRC}/src/emacs_mode/TcpListener.cc \
 		${WRKSRC}/src/emacs_mode/UnixSocketListener.cc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307080712.3687CjbY039743>