From owner-svn-ports-all@freebsd.org Sun Jan 21 02:22:18 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A933FED6397; Sun, 21 Jan 2018 02:22:18 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6BDD0763BD; Sun, 21 Jan 2018 02:22:18 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id ADC5925182; Sun, 21 Jan 2018 02:22:17 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0L2MHu3047984; Sun, 21 Jan 2018 02:22:17 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0L2MH1Y047982; Sun, 21 Jan 2018 02:22:17 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201801210222.w0L2MH1Y047982@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sun, 21 Jan 2018 02:22:17 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r459566 - in head/math/saga: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/math/saga: . files X-SVN-Commit-Revision: 459566 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2018 02:22:18 -0000 Author: jbeich Date: Sun Jan 21 02:22:17 2018 New Revision: 459566 URL: https://svnweb.freebsd.org/changeset/ports/459566 Log: math/saga: unbreak build with wxWidgets 3.0.3 wksp_tool.cpp: In member function 'virtual wxString CWKSP_Tool::Get_Description()': wksp_tool.cpp:159:61: error: no matching function for call to 'CSG_File::Open(const wxScopedWCharBuffer, ESG_File_Flags_Open)' if( Stream.Open(FileName.GetFullPath().wc_str(), SG_FILE_R) && Stream.Read(Description, Stream.Length()) ) ^ In file included from ../saga_api/geo_tools.h:77:0, from ../saga_api/mat_tools.h:77, from ../saga_api/dataobject.h:84, from ../saga_api/table.h:77, from ../saga_api/grid.h:77, from ../saga_api/parameters.h:77, from ../saga_api/tool.h:76, from ../saga_api/tool_library.h:77, from ../saga_api/saga_api.h:118, from res_commands.h:78, from wksp_tool.cpp:67: ../saga_api/api_core.h:955:13: note: candidate: bool CSG_File::Open(const CSG_String&, int, bool, int) bool Open (const CSG_String &File_Name, int Mode = SG_FILE_R, bool bBinary = true, int Encoding = SG_FILE_ENCODING_CHAR); ^~~~ ../saga_api/api_core.h:955:13: note: no known conversion for argument 1 from 'const wxScopedWCharBuffer {aka const wxScopedCharTypeBuffer}' to 'const CSG_String&' wksp_tool.cpp:166:61: error: no matching function for call to 'CSG_File::Open(const wxScopedWCharBuffer, ESG_File_Flags_Open)' if( Stream.Open(FileName.GetFullPath().wc_str(), SG_FILE_R) && Stream.Read(Description, Stream.Length()) ) ^ In file included from ../saga_api/geo_tools.h:77:0, from ../saga_api/mat_tools.h:77, from ../saga_api/dataobject.h:84, from ../saga_api/table.h:77, from ../saga_api/grid.h:77, from ../saga_api/parameters.h:77, from ../saga_api/tool.h:76, from ../saga_api/tool_library.h:77, from ../saga_api/saga_api.h:118, from res_commands.h:78, from wksp_tool.cpp:67: ../saga_api/api_core.h:955:13: note: candidate: bool CSG_File::Open(const CSG_String&, int, bool, int) bool Open (const CSG_String &File_Name, int Mode = SG_FILE_R, bool bBinary = true, int Encoding = SG_FILE_ENCODING_CHAR); ^~~~ ../saga_api/api_core.h:955:13: note: no known conversion for argument 1 from 'const wxScopedWCharBuffer {aka const wxScopedCharTypeBuffer}' to 'const CSG_String&' PR: 223758 Submitted by: rozhuk.im@gmail.com Obtained from: upstream Approved by: Rainer Hurling (maintainer) Added: head/math/saga/files/patch-git_6e14443b30ce (contents, props changed) Modified: head/math/saga/Makefile (contents, props changed) Modified: head/math/saga/Makefile ============================================================================== --- head/math/saga/Makefile Sun Jan 21 02:20:31 2018 (r459565) +++ head/math/saga/Makefile Sun Jan 21 02:22:17 2018 (r459566) @@ -3,6 +3,7 @@ PORTNAME= saga PORTVERSION= 6.1.0 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= SF/saga-gis/SAGA%20-%20${PORTVERSION:C/\.[[:digit:]]\.[[:digit:]]*$//}/SAGA%20-%20${PORTVERSION} Added: head/math/saga/files/patch-git_6e14443b30ce ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/saga/files/patch-git_6e14443b30ce Sun Jan 21 02:22:17 2018 (r459566) @@ -0,0 +1,66 @@ +commit 6e14443b30ce2c8e284617840bc49e249c63afc1 +Author: oconrad +Date: Fri Dec 8 10:16:47 2017 +0100 + + saga_gui, loading tool description from file: wxgtk issue reported in [saga-gis-developer] SAGA GIS on FreeBSD: fails to build with wxgtk30 - 3.0.3.1 +--- + saga-gis/src/saga_core/saga_gui/wksp_tool.cpp | 25 ++++++++----------------- + saga-gis/src/saga_core/saga_gui/wksp_tool.h | 2 -- + 2 files changed, 8 insertions(+), 19 deletions(-) + +--- src/saga_core/saga_gui/wksp_tool.cpp.orig 2017-09-01 15:57:36 UTC ++++ src/saga_core/saga_gui/wksp_tool.cpp +@@ -135,34 +135,25 @@ wxString CWKSP_Tool::Get_Name(void) + } + + //--------------------------------------------------------- +-wxString CWKSP_Tool::Get_File_Name(void) +-{ +- return( m_pTool->Get_File_Name().c_str() ); +-} +- +-//--------------------------------------------------------- + wxString CWKSP_Tool::Get_Description(void) + { + //----------------------------------------------------- +- if( !Get_File_Name().IsEmpty() ) ++ if( !m_pTool->Get_File_Name().is_Empty() ) + { ++ CSG_String Lib_Name = SG_File_Get_Name(m_pTool->Get_File_Name(), false); ++ CSG_String File_Path = SG_File_Make_Path(SG_File_Get_Path(m_pTool->Get_File_Name()), Lib_Name, ""); ++ ++ File_Path = SG_File_Make_Path(File_Path, CSG_String::Format("%s_%02d", Lib_Name.c_str(), Get_Index())); ++ + CSG_String Description; + CSG_File Stream; + +- wxFileName FileName(Get_File_Name()); +- FileName.AppendDir (FileName.GetName()); +- FileName.SetName (wxString::Format("%s_%02d", FileName.GetName().c_str(), Get_Index())); +- +- FileName.SetExt ("html"); +- +- if( Stream.Open(FileName.GetFullPath().wc_str(), SG_FILE_R) && Stream.Read(Description, Stream.Length()) ) ++ if( SG_File_Set_Extension(File_Path, "html") && Stream.Open(File_Path, SG_FILE_R) && Stream.Read(Description, Stream.Length()) ) + { + return( Description.c_str() ); + } + +- FileName.SetExt ("htm"); +- +- if( Stream.Open(FileName.GetFullPath().wc_str(), SG_FILE_R) && Stream.Read(Description, Stream.Length()) ) ++ if( SG_File_Set_Extension(File_Path, "htm" ) && Stream.Open(File_Path, SG_FILE_R) && Stream.Read(Description, Stream.Length()) ) + { + return( Description.c_str() ); + } +--- src/saga_core/saga_gui/wksp_tool.h.orig 2017-05-24 13:15:53 UTC ++++ src/saga_core/saga_gui/wksp_tool.h +@@ -103,8 +103,6 @@ class CWKSP_Tool : public CWKSP_Base_Item (public) + void Set_Menu_ID (int Menu_ID); + int Get_Menu_ID (void) { return( m_Menu_ID ); } + +- wxString Get_File_Name (void); +- + bool is_Interactive (void); + bool is_Executing (void); +