Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-simulation/simutrans/files: simutrans-0.112.3-Makefile.patch simutrans-0.112.3-overflow.patch simutrans-0.112.2-overflow.patch simutrans-0.112.2-Makefile.patch
Date: Tue, 28 May 2013 23:20:08
Message-Id: 20130528232005.1E53120081@flycatcher.gentoo.org
1 mr_bones_ 13/05/28 23:20:05
2
3 Added: simutrans-0.112.3-Makefile.patch
4 simutrans-0.112.3-overflow.patch
5 Removed: simutrans-0.112.2-overflow.patch
6 simutrans-0.112.2-Makefile.patch
7 Log:
8 version bump
9
10 (Portage version: 2.1.11.62/cvs/Linux x86_64, unsigned Manifest commit)
11
12 Revision Changes Path
13 1.1 games-simulation/simutrans/files/simutrans-0.112.3-Makefile.patch
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/simutrans/files/simutrans-0.112.3-Makefile.patch?rev=1.1&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/simutrans/files/simutrans-0.112.3-Makefile.patch?rev=1.1&content-type=text/plain
17
18 Index: simutrans-0.112.3-Makefile.patch
19 ===================================================================
20 --- Makefile.orig 2013-05-28 17:58:03.379228527 -0400
21 +++ Makefile 2013-05-28 17:58:24.768491369 -0400
22 @@ -88,8 +88,6 @@
23 endif
24 endif
25 endif
26 -else
27 - CFLAGS += -O
28 endif
29
30 ifdef DEBUG
31 @@ -108,6 +106,7 @@
32 endif
33 else
34 CFLAGS += -DNDEBUG
35 + CXXFLAGS += -DNDEBUG
36 endif
37
38 ifneq ($(PROFILE),)
39 @@ -120,6 +119,7 @@
40
41 ifneq ($(MULTI_THREAD),)
42 CFLAGS += -DMULTI_THREAD=$(MULTI_THREAD)
43 + CXXFLAGS += -DMULTI_THREAD=$(MULTI_THREAD)
44 ifneq ($(MULTI_THREAD),1)
45 ifeq ($(OSTYPE),mingw)
46 #use lpthreadGC2d for debug alternatively
47 @@ -134,10 +134,12 @@
48 REV = $(shell svnversion)
49 ifneq ($(REV),)
50 CFLAGS += -DREVISION="$(REV)"
51 + CXXFLAGS += -DREVISION="$(REV)"
52 endif
53 endif
54
55 CFLAGS += -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align $(FLAGS)
56 +CXXFLAGS += -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align $(FLAGS)
57 CCFLAGS += -Wstrict-prototypes
58
59
60 @@ -456,6 +458,7 @@
61 ifeq ($(BACKEND),sdl)
62 SOURCES += simsys_s.cc
63 CFLAGS += -DUSE_16BIT_DIB
64 + CXXFLAGS += -DUSE_16BIT_DIB
65 ifeq ($(OSTYPE),mac)
66 # Core Audio (Quicktime) base sound system routines
67 SOURCES += sound/core-audio_sound.mm
68 @@ -488,6 +491,7 @@
69 endif
70 endif
71 CFLAGS += $(SDL_CFLAGS)
72 + CXXFLAGS += $(SDL_CFLAGS)
73 LIBS += $(SDL_LDFLAGS)
74 endif
75
76 @@ -497,6 +501,7 @@
77 SOURCES += sound/sdl_mixer_sound.cc
78 SOURCES += music/sdl_midi.cc
79 CFLAGS += -DUSE_16BIT_DIB
80 + CXXFLAGS += -DUSE_16BIT_DIB
81 ifeq ($(SDL_CONFIG),)
82 SDL_CFLAGS := -I$(MINGDIR)/include/SDL -Dmain=SDL_main
83 SDL_LDFLAGS := -lmingw32 -lSDLmain -lSDL
84 @@ -511,6 +516,7 @@
85 endif
86 endif
87 CFLAGS += $(SDL_CFLAGS)
88 + CXXFLAGS += $(SDL_CFLAGS)
89 LIBS += $(SDL_LDFLAGS) -lSDL_mixer
90 endif
91
92 @@ -544,6 +550,7 @@
93 endif
94 endif
95 CFLAGS += $(SDL_CFLAGS)
96 + CXXFLAGS += $(SDL_CFLAGS)
97 LIBS += $(SDL_LDFLAGS) -lglew32
98 ifeq ($(OSTYPE),mingw)
99 LIBS += -lopengl32
100 @@ -559,6 +566,7 @@
101 endif
102
103 CFLAGS += -DCOLOUR_DEPTH=$(COLOUR_DEPTH)
104 +CXXFLAGS += -DCOLOUR_DEPTH=$(COLOUR_DEPTH)
105
106 ifneq ($(findstring $(OSTYPE), cygwin mingw),)
107 SOURCES += simres.rc
108 @@ -566,7 +574,6 @@
109 endif
110
111 CCFLAGS += $(CFLAGS)
112 -CXXFLAGS += $(CFLAGS)
113
114 BUILDDIR ?= build/$(CFG)
115 PROGDIR ?= $(BUILDDIR)
116
117
118
119 1.1 games-simulation/simutrans/files/simutrans-0.112.3-overflow.patch
120
121 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/simutrans/files/simutrans-0.112.3-overflow.patch?rev=1.1&view=markup
122 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-simulation/simutrans/files/simutrans-0.112.3-overflow.patch?rev=1.1&content-type=text/plain
123
124 Index: simutrans-0.112.3-overflow.patch
125 ===================================================================
126 --- besch/reader/obj_reader.cc.orig 2013-01-22 17:22:02.509818038 -0500
127 +++ besch/reader/obj_reader.cc 2013-01-22 17:22:58.650846577 -0500
128 @@ -308,7 +308,7 @@
129 void obj_reader_t::skip_nodes(FILE *fp,uint32 version)
130 {
131 obj_node_info_t node;
132 - char load_dummy[OBJ_NODE_INFO_SIZE], *p;
133 + char load_dummy[OBJ_NODE_INFO_SIZE + 4], *p; // extra 4 for LARGE_RECORD_SIZE
134
135 p = load_dummy;
136 if( version==COMPILER_VERSION_CODE_11 ) {