pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/bastet Fix format string use. Unbreak build agai...
details: https://anonhg.NetBSD.org/pkgsrc/rev/67ac4df3f092
branches: trunk
changeset: 368992:67ac4df3f092
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Sep 25 22:32:16 2017 +0000
description:
Fix format string use. Unbreak build against current Boost.
diffstat:
games/bastet/Makefile | 4 +-
games/bastet/distinfo | 4 +-
games/bastet/patches/patch-BastetBlockChooser.hpp | 24 ++++++++++
games/bastet/patches/patch-Ui.cpp | 51 +++++++++++++++++++++++
4 files changed, 80 insertions(+), 3 deletions(-)
diffs (111 lines):
diff -r b41374edd031 -r 67ac4df3f092 games/bastet/Makefile
--- a/games/bastet/Makefile Mon Sep 25 22:31:25 2017 +0000
+++ b/games/bastet/Makefile Mon Sep 25 22:32:16 2017 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2017/08/24 20:03:13 adam Exp $
+# $NetBSD: Makefile,v 1.13 2017/09/25 22:32:16 joerg Exp $
DISTNAME= bastet-0.43.1
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GITHUB:=fph/}
diff -r b41374edd031 -r 67ac4df3f092 games/bastet/distinfo
--- a/games/bastet/distinfo Mon Sep 25 22:31:25 2017 +0000
+++ b/games/bastet/distinfo Mon Sep 25 22:32:16 2017 +0000
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.7 2016/12/22 11:36:35 joerg Exp $
+$NetBSD: distinfo,v 1.8 2017/09/25 22:32:16 joerg Exp $
SHA1 (bastet-0.43.1.tar.gz) = 003e342df526211a9a811c2235a02b2d8288e020
RMD160 (bastet-0.43.1.tar.gz) = dde16fd74747bbd9dcc3a9762c0e681b7c9318ce
SHA512 (bastet-0.43.1.tar.gz) = b2b67cd5bcc015629bd679b2bce696bd9e944cd233c78a9d49f91d340cd57f36f17181ffee5637c5883d5d28d4a1e3378697c5015dfd1cdac55e4a893c025e6f
Size (bastet-0.43.1.tar.gz) = 82802 bytes
+SHA1 (patch-BastetBlockChooser.hpp) = 95aa010f8862facc6062f9be968e0975524aeed7
SHA1 (patch-Makefile) = e372e9c19166dbfb4b432e720a0c56990792297e
+SHA1 (patch-Ui.cpp) = 8f8add5b848faf96f97723e0839fdf457b20eb9a
SHA1 (patch-Well.hpp) = d4f84a24f39aae1a84d62ad3e33fb9466dc2bbbe
diff -r b41374edd031 -r 67ac4df3f092 games/bastet/patches/patch-BastetBlockChooser.hpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/bastet/patches/patch-BastetBlockChooser.hpp Mon Sep 25 22:32:16 2017 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-BastetBlockChooser.hpp,v 1.1 2017/09/25 22:32:16 joerg Exp $
+
+tr1 has been removed in boost.
+
+--- BastetBlockChooser.hpp.orig 2017-09-25 11:55:27.036704403 +0000
++++ BastetBlockChooser.hpp
+@@ -23,7 +23,7 @@
+
+ #include "Well.hpp"
+
+-#include <boost/tr1/tr1/unordered_set>
++#include <boost/unordered_set.hpp>
+ #include <set>
+ #include <boost/functional/hash.hpp>
+
+@@ -75,7 +75,7 @@ namespace Bastet{
+ public:
+ Searcher(BlockType b, const Well *well, Vertex v, WellVisitor *visitor);
+ private:
+- std::tr1::unordered_set<Vertex> _visited;
++ boost::unordered_set<Vertex> _visited;
+ //std::set<Vertex> _visited; ^^ the above is more efficient, we need to do many inserts
+ BlockType _block;
+ const Well *_well;
diff -r b41374edd031 -r 67ac4df3f092 games/bastet/patches/patch-Ui.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/bastet/patches/patch-Ui.cpp Mon Sep 25 22:32:16 2017 +0000
@@ -0,0 +1,51 @@
+$NetBSD: patch-Ui.cpp,v 1.1 2017/09/25 22:32:16 joerg Exp $
+
+Use format strings.
+
+--- Ui.cpp.orig 2017-09-25 11:56:25.934814498 +0000
++++ Ui.cpp
+@@ -183,7 +183,7 @@ namespace Bastet{
+
+ BorderedWindow w(d.y,d.x);
+ wattrset((WINDOW *)w,COLOR_PAIR(20));
+- mvwprintw(w,0,0,message.c_str());
++ mvwprintw(w,0,0,"%s", message.c_str());
+ w.RedrawBorder();
+ wrefresh(w);
+ PrepareUiGetch();
+@@ -200,7 +200,7 @@ namespace Bastet{
+ d.y+=3;
+ BorderedWindow w(d.y,d.x);
+ wattrset((WINDOW *)w,COLOR_PAIR(20));
+- mvwprintw(w,0,0,message.c_str());
++ mvwprintw(w,0,0,"%s",message.c_str());
+ w.RedrawBorder();
+ wrefresh(w);
+ PrepareUiGetch();
+@@ -221,7 +221,7 @@ namespace Bastet{
+
+ BorderedWindow w(d.y,d.x);
+ wattrset((WINDOW *)w,COLOR_PAIR(20));
+- mvwprintw(w,0,0,message.c_str());
++ mvwprintw(w,0,0,"%s", message.c_str());
+ w.RedrawBorder();
+ wrefresh(w);
+ PrepareUiGetch();
+@@ -239,7 +239,7 @@ namespace Bastet{
+ BorderedWindow w(d.y,d.x);
+ wattrset((WINDOW *)w,COLOR_PAIR(20));
+ for(size_t i=0;i<choices.size();++i){
+- mvwprintw(w,i,4,choices[i].c_str());
++ mvwprintw(w,i,4,"%s", choices[i].c_str());
+ }
+ w.RedrawBorder();
+ wrefresh(w);
+@@ -290,7 +290,7 @@ namespace Bastet{
+ Dot d=BoundingRect(msg );
+ BorderedWindow w(d.y,d.x);
+ wattrset((WINDOW *)w,COLOR_PAIR(20));
+- mvwprintw(w,0,0,msg.c_str());
++ mvwprintw(w,0,0,"%s", msg.c_str());
+ w.RedrawBorder();
+ ch=getch();
+ switch(ch){
Home |
Main Index |
Thread Index |
Old Index