From owner-svn-ports-all@FreeBSD.ORG Mon Sep 30 20:08:18 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BF387ADD; Mon, 30 Sep 2013 20:08:18 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 90B5D2157; Mon, 30 Sep 2013 20:08:18 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8UK8IGn000688; Mon, 30 Sep 2013 20:08:18 GMT (envelope-from marino@svn.freebsd.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8UK8I2C000687; Mon, 30 Sep 2013 20:08:18 GMT (envelope-from marino@svn.freebsd.org) Message-Id: <201309302008.r8UK8I2C000687@svn.freebsd.org> From: John Marino Date: Mon, 30 Sep 2013 20:08:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r328859 - head/devel/liblas/files X-SVN-Group: ports-head 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.14 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: Mon, 30 Sep 2013 20:08:18 -0000 Author: marino Date: Mon Sep 30 20:08:18 2013 New Revision: 328859 URL: http://svnweb.freebsd.org/changeset/ports/328859 Log: devel/liblas: fix [-fpermissive] cannot call constructor errors The port doesn't build with gcc4.7+ without this patch. Partial log: las_c_api.cpp: In function 'LASErrorEnum LASHeader_SetProjectId(LASHeaderH, const char*)': las_c_api.cpp:748:38: error: cannot call constructor 'liblas::guid::guid' directly [-fpermissive] las_c_api.cpp:748:38: error: for a function-style cast, remove the redundant '::guid' [-fpermissive] las_c_api.cpp: In function 'LASGuidHS* LASGuid_CreateFromString(const char*)': las_c_api.cpp:1545:39: error: cannot call constructor 'liblas::guid::guid' directly [-fpermissive] las_c_api.cpp:1545:39: error: for a function-style cast, remove the redundant '::guid' [-fpermissive] Approved by: portmgr (bapt, implicit) Added: head/devel/liblas/files/ head/devel/liblas/files/patch-src_las__c__api.cpp (contents, props changed) Added: head/devel/liblas/files/patch-src_las__c__api.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/liblas/files/patch-src_las__c__api.cpp Mon Sep 30 20:08:18 2013 (r328859) @@ -0,0 +1,20 @@ +--- src/las_c_api.cpp.orig 2009-10-02 17:01:59.000000000 +0000 ++++ src/las_c_api.cpp +@@ -745,7 +745,7 @@ LAS_DLL LASErrorEnum LASHeader_SetProjec + + try { + liblas::guid id; +- id = liblas::guid::guid(value); ++ id = liblas::guid(value); + ((LASHeader*) hHeader)->SetProjectId(id); + } catch (std::exception const& e) + { +@@ -1542,7 +1542,7 @@ LAS_DLL LASGuidH LASGuid_CreateFromStrin + VALIDATE_LAS_POINTER1(string, "LASGuid_CreateFromString", NULL); + liblas::guid id; + try { +- id = liblas::guid::guid(string); ++ id = liblas::guid(string); + return (LASGuidH) new liblas::guid(id); + } + catch (std::exception const& e) {