git: e2014502a202 - main - devel/py-p4python: Fix build with c++17
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 03 Jul 2023 19:58:36 UTC
The branch main has been updated by leres: URL: https://cgit.FreeBSD.org/ports/commit/?id=e2014502a202a84b83d95368ee4acab83a8c25c3 commit e2014502a202a84b83d95368ee4acab83a8c25c3 Author: Craig Leres <leres@FreeBSD.org> AuthorDate: 2023-07-03 19:58:12 +0000 Commit: Craig Leres <leres@FreeBSD.org> CommitDate: 2023-07-03 19:58:12 +0000 devel/py-p4python: Fix build with c++17 PR: 243149 Approved by: antonfb@hesiod.org (maintainer) --- devel/py-p4python/files/patch-P4API.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/devel/py-p4python/files/patch-P4API.cpp b/devel/py-p4python/files/patch-P4API.cpp new file mode 100644 index 000000000000..87fccebddb99 --- /dev/null +++ b/devel/py-p4python/files/patch-P4API.cpp @@ -0,0 +1,20 @@ +--- P4API.cpp.orig 2020-07-15 12:24:50 UTC ++++ P4API.cpp +@@ -337,7 +337,7 @@ static PyObject * P4API_dvcs_init(P4Adapter * self, Py + return NULL; + + +- auto_ptr<ServerHelperApi> personalServer( create_server(user, client, directory, &ui) ); ++ unique_ptr<ServerHelperApi> personalServer( create_server(user, client, directory, &ui) ); + + if( personalServer.get() == NULL) + return NULL; +@@ -399,7 +399,7 @@ static PyObject * P4API_dvcs_clone(P4Adapter * self, P + &progress)) + return NULL; + +- auto_ptr<ServerHelperApi> personalServer( create_server(user, client, directory, &ui) ); ++ unique_ptr<ServerHelperApi> personalServer( create_server(user, client, directory, &ui) ); + + if( personalServer.get() == NULL) + return NULL;