diff options
Diffstat (limited to 'games-board/eboard/files')
4 files changed, 71 insertions, 0 deletions
diff --git a/games-board/eboard/files/eboard-1.1.1-as-needed.patch b/games-board/eboard/files/eboard-1.1.1-as-needed.patch new file mode 100644 index 000000000000..199dd0e70a2d --- /dev/null +++ b/games-board/eboard/files/eboard-1.1.1-as-needed.patch @@ -0,0 +1,22 @@ +--- a/configure 2009-02-03 14:46:21.000000000 +0100 ++++ b/configure 2009-02-03 14:48:13.000000000 +0100 +@@ -638,7 +638,7 @@ + + print CONFIGMAKE "CXX = $cxx\n"; + print CONFIGMAKE "CXXFLAGS = @cxxflags\n"; +-print CONFIGMAKE "LDFLAGS = @ldflags\n"; ++print CONFIGMAKE "LDLIBS = @ldflags\n"; + + print CONFIGMAKE "prefix = \${DESTDIR}$prefix\n"; + print CONFIGMAKE "bindir = \${DESTDIR}$prefix/bin\n"; +--- a/elifekam 2009-02-03 14:48:43.000000000 +0100 ++++ b/elifekam 2009-02-03 14:48:58.000000000 +0100 +@@ -24,7 +24,7 @@ + all: eboard nls-dicts + + eboard: $(OBJS) +- $(CXX) $(LDFLAGS) -o eboard $(OBJS) ++ $(CXX) $(LDFLAGS) -o eboard $(OBJS) $(LDLIBS) + + .cc.o: $< $(HEADERS) $(XPMS) + $(CXX) $(CXXFLAGS) -c $< -o $@ diff --git a/games-board/eboard/files/eboard-1.1.1-gcc44.patch b/games-board/eboard/files/eboard-1.1.1-gcc44.patch new file mode 100644 index 000000000000..60e7d81fcdb2 --- /dev/null +++ b/games-board/eboard/files/eboard-1.1.1-gcc44.patch @@ -0,0 +1,11 @@ +--- a/ntext.cc ++++ b/ntext.cc +@@ -244,7 +244,7 @@ + return; + } + +- p = strchr(text, '\n'); ++ p = strchr((char *)text, '\n'); + if (p!=NULL) { + *p = 0; + i = strlen(text); diff --git a/games-board/eboard/files/eboard-1.1.1-libpng15.patch b/games-board/eboard/files/eboard-1.1.1-libpng15.patch new file mode 100644 index 000000000000..cd0ccf8b4f20 --- /dev/null +++ b/games-board/eboard/files/eboard-1.1.1-libpng15.patch @@ -0,0 +1,16 @@ +--- a/cimg.cc ++++ b/cimg.cc +@@ -94,11 +95,11 @@ + ct == PNG_COLOR_TYPE_GRAY_ALPHA) + png_set_gray_to_rgb(pngp); + +- alloc(pngp->width,pngp->height); ++ alloc(width,height); + if (!ok) { fclose(f); return; } + ok = 0; + +- for(i=0;i<pngp->height;i++) { ++ for(i=0;i<height;i++) { + png_read_row(pngp, (png_bytep) (&data[i*rowlen]), NULL); + } + diff --git a/games-board/eboard/files/eboard-1.1.1-ovflfix.patch b/games-board/eboard/files/eboard-1.1.1-ovflfix.patch new file mode 100644 index 000000000000..b09c4dba880f --- /dev/null +++ b/games-board/eboard/files/eboard-1.1.1-ovflfix.patch @@ -0,0 +1,22 @@ +--- a/proto_xboard.cc 2010-11-03 16:42:15.000000000 +0100 ++++ b/proto_xboard.cc 2010-11-03 16:43:14.000000000 +0100 +@@ -1084,7 +1084,7 @@ + snprintf(EngineCommandLine,512,"crafty bookpath=%s logpath=%s tbpath=%s", + BookPath,LogPath,LogPath); + if (!global.env.Home.empty()) +- snprintf(EngineRunDir,512,"%s/.eboard/craftylog",global.env.Home.c_str()); ++ snprintf(EngineRunDir, sizeof(EngineRunDir), "%s/.eboard/craftylog", global.env.Home.c_str()); + else + strcpy(EngineRunDir,"/tmp"); + +--- a/util.cc 2010-11-03 16:42:24.000000000 +0100 ++++ b/util.cc 2010-11-03 16:43:42.000000000 +0100 +@@ -783,7 +783,7 @@ + int i,n; + char cmd[1024]; + +- n = snprintf(tmpfile,1024,"/tmp/eb%d-%s",(int) getpid(), origfile); ++ n = snprintf(tmpfile, sizeof(tmpfile), "/tmp/eb%d-%s", (int) getpid(), origfile); + + if (n >= 1024) { + failure = 1; |