Hello community, here is the log from the commit of package xmoto for openSUSE:Factory checked in at 2017-06-12 15:35:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xmoto (Old) and /work/SRC/openSUSE:Factory/.xmoto.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xmoto" Mon Jun 12 15:35:00 2017 rev:2 rq:502909 version:0.5.11 Changes: -------- --- /work/SRC/openSUSE:Factory/xmoto/xmoto.changes 2016-06-13 21:56:04.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.xmoto.new/xmoto.changes 2017-06-12 15:35:38.949133547 +0200 @@ -1,0 +2,6 @@ +Sun Jun 11 15:31:57 UTC 2017 - wba...@tmo.at + +- Add xmoto-0.5.11-pointer-comparison.patch to fix build with GCC7, + patch taken from Fedora (boo#1041253) + +------------------------------------------------------------------- New: ---- xmoto-0.5.11-pointer-comparison.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xmoto.spec ++++++ --- /var/tmp/diff_new_pack.BU5Ke6/_old 2017-06-12 15:35:41.844725144 +0200 +++ /var/tmp/diff_new_pack.BU5Ke6/_new 2017-06-12 15:35:41.844725144 +0200 @@ -27,6 +27,8 @@ Source1: %{name}.appdata.xml # PATCH-FIX-UPSTREAM xmoto-0.5.5-basedir.patch a...@mizerski.pl -- Fix implicit declaration of function 'mkdir' Patch0: %{name}-0.5.5-basedir.patch +# PATCH-FIX-OPENSUSE xmoto-0.5.11-pointer-comparison.patch boo#1041253 wba...@tmo.at -- Fix build with GCC7 +Patch1: %{name}-0.5.11-pointer-comparison.patch # PATCH-FIX-OPENSUSE xmoto-nobuild_date.patch dims...@opensuse.org -- Do not add build time and date: it's useless information Patch100: %{name}-nobuild_date.patch @@ -69,6 +71,7 @@ %prep %setup -q %patch0 -p1 +%patch1 -p0 %patch100 -p1 # Let's always use system's ode: rm -rf src/ode ++++++ xmoto-0.5.11-pointer-comparison.patch ++++++ --- src/WWW.cpp.orig 2011-05-06 14:53:22.000000000 -0500 +++ src/WWW.cpp 2017-02-22 08:43:46.797335810 -0600 @@ -206,7 +206,7 @@ std::string v_www_agent = WWW_AGENT; /* open the file */ - if( (v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) == false) { + if ( (v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) == NULL) { throw Exception("error : unable to open output file " + v_local_file_tmp); } @@ -320,7 +320,7 @@ LogInfo(std::string("Uploading replay " + p_replayFilename).c_str()); /* open the file */ - if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { + if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("UR")); } @@ -478,7 +478,7 @@ LogInfo("Sending vote"); /* open the file */ - if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { + if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("SV")); } @@ -562,7 +562,7 @@ LogInfo("Sending report"); /* open the file */ - if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { + if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("SR")); } @@ -677,7 +677,7 @@ LogInfo(std::string("Uploading dbsync " + p_dbSyncFilename + " to " + p_url_to_transfert).c_str()); /* open the file */ - if( (v_destinationFile = fopen(p_answerFile.c_str(), "wb")) == false) { + if( (v_destinationFile = fopen(p_answerFile.c_str(), "wb")) == NULL) { throw Exception("error : unable to open output file " + p_answerFile); }