From 257bbd155b26446e59a8ea50f801078e87d11684 Mon Sep 17 00:00:00 2001 From: Dugan Chen Date: Tue, 4 Mar 2014 17:22:17 +0700 Subject: games/vbam: Fix Crash. Signed-off-by: Willy Sudiarto Raharjo --- games/vbam/no_icons.patch | 11 +++++++++++ games/vbam/vbam.SlackBuild | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 games/vbam/no_icons.patch (limited to 'games/vbam') diff --git a/games/vbam/no_icons.patch b/games/vbam/no_icons.patch new file mode 100644 index 0000000000..a1c06d5b56 --- /dev/null +++ b/games/vbam/no_icons.patch @@ -0,0 +1,11 @@ +diff -rupN vbam-r1159.orig/src/gtk/window.cpp vbam-r1159/src/gtk/window.cpp +--- vbam-r1159.orig/src/gtk/window.cpp 2013-02-03 12:59:48.000000000 +0000 ++++ vbam-r1159/src/gtk/window.cpp 2013-09-11 15:21:43.646331404 +0100 +@@ -248,6 +248,7 @@ Window::Window(GtkWindow * _pstWindow, c + m_poRecentChooserMenu->set_show_numbers(); + m_poRecentChooserMenu->set_show_tips(); + m_poRecentChooserMenu->set_local_only(); ++ m_poRecentChooserMenu->set_show_icons(false); + m_poRecentChooserMenu->add_filter(oRecentFilter); + m_poRecentChooserMenu->signal_item_activated().connect( + sigc::mem_fun(*this, &Window::vOnRecentFile)); diff --git a/games/vbam/vbam.SlackBuild b/games/vbam/vbam.SlackBuild index de64d0ea3e..4470287b87 100644 --- a/games/vbam/vbam.SlackBuild +++ b/games/vbam/vbam.SlackBuild @@ -23,7 +23,7 @@ PRGNAM=vbam VERSION=${VERSION:-r1202} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -76,6 +76,10 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# See here for an explanation: +# http://www.linuxquestions.org/questions/slackware-14/vbam-slackbuild-4175476221/page3.html#post5025795 +patch -p1 --verbose < $CWD/no_icons.patch + cmake . \ -DCMAKE_C_FLAGS="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ -- cgit v1.2.3