Hello community, here is the log from the commit of package openttd for openSUSE:Factory checked in at 2016-06-19 11:08:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openttd (Old) and /work/SRC/openSUSE:Factory/.openttd.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openttd" Changes: -------- --- /work/SRC/openSUSE:Factory/openttd/openttd.changes 2016-04-12 19:37:09.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.openttd.new/openttd.changes 2016-06-19 11:08:51.000000000 +0200 @@ -1,0 +2,5 @@ +Thu Jun 16 18:18:17 UTC 2016 - dims...@opensuse.org + +- Update openttd-gcc5.patch: Have gcc6 use the same flags as gcc5. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openttd-gcc5.patch ++++++ --- /var/tmp/diff_new_pack.nrevof/_old 2016-06-19 11:08:52.000000000 +0200 +++ /var/tmp/diff_new_pack.nrevof/_new 2016-06-19 11:08:52.000000000 +0200 @@ -1,17 +1,30 @@ -Index: openttd-1.5.1/config.lib +Index: openttd-1.5.3/config.lib =================================================================== ---- openttd-1.5.1.orig/config.lib -+++ openttd-1.5.1/config.lib +--- openttd-1.5.3.orig/config.lib ++++ openttd-1.5.3/config.lib @@ -1317,7 +1317,11 @@ make_compiler_cflags() { ldflags="$ldflags -rdynamic" else # Enable some things only for certain GCC versions - cc_version=`$1 -dumpversion | cut -c 1,3` + cc_version=`$1 -dumpversion | cut -c 1,3` -+ if [ $cc_version -eq 5 ]; then ++ if [ $cc_version -ge 5 ]; then + # Special case: GCC 5.0 reports only '5' + cc_version=50 + fi if [ $cc_version -lt 33 ]; then log 1 "configure: error: gcc older than 3.3 can't compile OpenTTD because of its poor template support" +Index: openttd-1.5.3/src/safeguards.h +=================================================================== +--- openttd-1.5.3.orig/src/safeguards.h ++++ openttd-1.5.3/src/safeguards.h +@@ -21,6 +21,8 @@ + #ifndef SAFEGUARDS_H + #define SAFEGUARDS_H + ++#include <stdlib.h> ++ + /* Use MallocT instead. */ + #define malloc SAFEGUARD_DO_NOT_USE_THIS_METHOD +