Package: libsdl-sge / 030809dfsg-11

Metadata

Package Version Patches format
libsdl-sge 030809dfsg-11 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
fix ftbfs 892448.patch | (download)

Makefile.conf | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

---
001_makefile_fixes.diff | (download)

Makefile | 7 4 + 3 - 0 !
Makefile.conf | 4 2 + 2 - 0 !
2 files changed, 6 insertions(+), 5 deletions(-)

---
004_legacy_functions.diff | (download)

sge_tt_text.cpp | 13 13 + 0 - 0 !
sge_tt_text.h | 7 7 + 0 - 0 !
2 files changed, 20 insertions(+)

---
005_freetype_support.diff | (download)

sge_tt_text.cpp | 9 5 + 4 - 0 !
1 file changed, 5 insertions(+), 4 deletions(-)

---
006_freetype2_fixes.diff | (download)

sge_tt_text.cpp | 3 1 + 2 - 0 !
1 file changed, 1 insertion(+), 2 deletions(-)

---
010_examples.diff | (download)

examples/Makefile | 22 4 + 18 - 0 !
1 file changed, 4 insertions(+), 18 deletions(-)

---
015_overflow.diff | (download)

sge_collision.cpp | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

---
100_font.diff | (download)

examples/alpha.cpp | 2 1 + 1 - 0 !
examples/basics.cpp | 2 1 + 1 - 0 !
examples/basics_c.c | 2 1 + 1 - 0 !
examples/blitting.cpp | 2 1 + 1 - 0 !
examples/input.cpp | 2 1 + 1 - 0 !
examples/inputdeluxe.cpp | 2 1 + 1 - 0 !
6 files changed, 6 insertions(+), 6 deletions(-)

---
cross.patch | (download)

Makefile | 10 6 + 4 - 0 !
Makefile.conf | 7 4 + 3 - 0 !
2 files changed, 10 insertions(+), 7 deletions(-)

---
fix build of example apps due to bad virtual method.patch | (download)

sge_shape.h | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 a virtual inline empty method can't be defined, because the implementation won't be used.
Newer gcc/binutils are now picky about this, making the link fail

  223 |         sge_BF_textoutf(screen, font, screen->w/2+6, 20, "%s - %.0f/s.",title,((double)testloops*1000)/(stop-start));\
      |                                                          ^~~~~~~~~~~~~~
speedtest.cpp:472:33: note: in expansion of macro RUN_TEST_RIGHT
  472 |                                 RUN_TEST_RIGHT(screen,"Colored bitmap text",4000,100,false,sge_BF_SetColor(cfont,r[i],g[i],b[i]);sge_BF_textout(screen, cfont, "Hello World!", xr1[i], y1[i]));
      |                                 ^~~~~~~~~~~~~~
g++ -o speedtest speedtest.o `sdl-config --libs` -lSGE		
g++ `sdl-config --cflags` -c sprite.cpp 	
In file included from /usr/include/SDL/sge_textpp.h:33,
                 from /usr/include/SDL/sge.h:25,
                 from sprite.cpp:4:
/usr/include/SDL/sge_shape.h:185:29: warning: inline function virtual void sge_surface::clear(Uint32) used but never defined
  185 |         virtual inline void clear(Uint32 color);
      |                             ^~~~~
g++ -o sprite sprite.o `sdl-config --libs` -lSGE		
/usr/bin/ld: sprite.o: in function `main':
sprite.cpp:(.text+0x484): undefined reference to `sge_surface::clear(unsigned int)'
/usr/bin/ld: sprite.cpp:(.text+0x498): undefined reference to `sge_surface::clear(unsigned int)'
collect2: error: ld returned 1 exit status