From owner-svn-ports-all@freebsd.org Sun Apr 2 22:31:08 2017 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 CAB49D2B663; Sun, 2 Apr 2017 22:31:08 +0000 (UTC) (envelope-from bapt@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 mx1.freebsd.org (Postfix) with ESMTPS id 8F058A14; Sun, 2 Apr 2017 22:31:08 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v32MV77t026182; Sun, 2 Apr 2017 22:31:07 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v32MV7OH026181; Sun, 2 Apr 2017 22:31:07 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201704022231.v32MV7OH026181@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Sun, 2 Apr 2017 22:31:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r437586 - head/devel/synfig/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.23 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, 02 Apr 2017 22:31:08 -0000 Author: bapt Date: Sun Apr 2 22:31:07 2017 New Revision: 437586 URL: https://svnweb.freebsd.org/changeset/ports/437586 Log: Fix build with -std=c++11 Modified: head/devel/synfig/files/patch-src__synfig__main.cpp Modified: head/devel/synfig/files/patch-src__synfig__main.cpp ============================================================================== --- head/devel/synfig/files/patch-src__synfig__main.cpp Sun Apr 2 22:30:05 2017 (r437585) +++ head/devel/synfig/files/patch-src__synfig__main.cpp Sun Apr 2 22:31:07 2017 (r437586) @@ -1,6 +1,6 @@ ---- src/synfig/main.cpp.orig 2015-03-28 10:15:01 UTC +--- src/synfig/main.cpp.orig 2017-04-02 22:19:06 UTC +++ src/synfig/main.cpp -@@ -198,7 +198,7 @@ synfig::Main::Main(const synfig::String& +@@ -198,7 +198,7 @@ synfig::Main::Main(const synfig::String& basepath,Prog unsigned int i; #ifdef _DEBUG @@ -9,7 +9,30 @@ std::set_terminate(__gnu_cxx::__verbose_terminate_handler); #endif #endif -@@ -490,7 +490,11 @@ synfig::get_binary_path(const String &fa +@@ -289,17 +289,17 @@ synfig::Main::Main(const synfig::String& basepath,Prog + locations.push_back(getenv("SYNFIG_MODULE_LIST")); + else + { +- locations.push_back("./"MODULE_LIST_FILENAME); ++ locations.push_back("./" MODULE_LIST_FILENAME); + if(getenv("HOME")) + locations.push_back(strprintf("%s/.local/share/synfig/%s", getenv("HOME"), MODULE_LIST_FILENAME)); + #ifdef SYSCONFDIR +- locations.push_back(SYSCONFDIR"/"MODULE_LIST_FILENAME); ++ locations.push_back(SYSCONFDIR "/" MODULE_LIST_FILENAME); + #endif + locations.push_back(prefix+ETL_DIRECTORY_SEPARATOR+"etc"+ETL_DIRECTORY_SEPARATOR+MODULE_LIST_FILENAME); +- locations.push_back("/usr/local/etc/"MODULE_LIST_FILENAME); ++ locations.push_back("/usr/local/etc/" MODULE_LIST_FILENAME); + #ifdef __APPLE__ +- locations.push_back("/Library/Frameworks/synfig.framework/Resources/"MODULE_LIST_FILENAME); +- locations.push_back("/Library/Synfig/"MODULE_LIST_FILENAME); ++ locations.push_back("/Library/Frameworks/synfig.framework/Resources/" MODULE_LIST_FILENAME); ++ locations.push_back("/Library/Synfig/" MODULE_LIST_FILENAME); + if(getenv("HOME")) + locations.push_back(strprintf("%s/Library/Synfig/%s", getenv("HOME"), MODULE_LIST_FILENAME)); + #endif +@@ -490,7 +490,11 @@ synfig::get_binary_path(const String &fallback_path) /* Read from /proc/self/exe (symlink) */ char* path2 = (char*)malloc(buf_size); @@ -21,7 +44,7 @@ while (1) { int i; -@@ -524,9 +528,10 @@ synfig::get_binary_path(const String &fa +@@ -524,9 +528,10 @@ synfig::get_binary_path(const String &fallback_path) /* path is a symlink. Continue loop and resolve this. */ strncpy(path, path2, buf_size - 1); } @@ -33,7 +56,7 @@ if (result == "") { /* readlink() or stat() failed; this can happen when the program is -@@ -568,6 +573,7 @@ synfig::get_binary_path(const String &fa +@@ -568,6 +573,7 @@ synfig::get_binary_path(const String &fallback_path) free(line); fclose(f); }