svn commit: r448671 - head/games/valyriatear/files

Dmitry Marakasov amdmi3 at FreeBSD.org
Thu Aug 24 14:13:49 UTC 2017


Author: amdmi3
Date: Thu Aug 24 14:13:48 2017
New Revision: 448671
URL: https://svnweb.freebsd.org/changeset/ports/448671

Log:
  - Fix built with gcc6
  
  PR:		216078
  Reported by:	jbeich

Added:
  head/games/valyriatear/files/patch-src_main.cpp   (contents, props changed)

Added: head/games/valyriatear/files/patch-src_main.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/valyriatear/files/patch-src_main.cpp	Thu Aug 24 14:13:48 2017	(r448671)
@@ -0,0 +1,11 @@
+--- src/main.cpp.orig	2016-04-25 20:52:18 UTC
++++ src/main.cpp
+@@ -459,7 +459,7 @@ int main(int argc, char *argv[])
+         chdir(path.c_str());
+ #elif (defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(SOLARIS)) && !defined(RELEASE_BUILD)
+         // Look for data files in DATADIR only if they are not available in the current directory.
+-        if(std::ifstream("dat/config/settings.lua") == NULL) {
++        if(!std::ifstream("dat/config/settings.lua").good()) {
+             if(chdir(PKG_DATADIR) != 0) {
+                 throw Exception("ERROR: failed to change directory to data location", __FILE__, __LINE__, __FUNCTION__);
+             }


More information about the svn-ports-all mailing list