--- kawari8-8.2.8.orig/debian/kawari8.manpages
+++ kawari8-8.2.8/debian/kawari8.manpages
@@ -0,0 +1,2 @@
+kosui.6
+kawari_encode.6
--- kawari8-8.2.8.orig/debian/kawari8.docs
+++ kawari8-8.2.8/debian/kawari8.docs
@@ -0,0 +1,2 @@
+build-tree/kawari-*/document
+build-tree/kawari-*/readme.1st
--- kawari8-8.2.8.orig/debian/kawari_encode.sgml
+++ kawari8-8.2.8/debian/kawari_encode.sgml
@@ -0,0 +1,148 @@
+ manpage.1'. You may view
+ the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+ less'. A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+ docbook-to-man $< > $@
+
+
+ The docbook-to-man binary is found in the docbook-to-man package.
+ Please remember that if you create the nroff version in one of the
+ debian/rules file targets (such as build), you will need to include
+ docbook-to-man in your Build-Depends control field.
+
+ -->
+
+
+ Ying-Chun">
+ Liu">
+
+ Sep 12, 2006">
+
+ 6">
+ grandpaul@gmail.com">
+
+ KAWARI8">
+
+
+ Debian">
+ GNU">
+ GPL">
+]>
+
+
+
+
+ &dhemail;
+
+
+ &dhfirstname;
+ &dhsurname;
+
+
+ 2006
+ &dhusername;
+
+ &dhdate;
+
+
+ &dhucpackage;
+
+ &dhsection;
+
+
+ kawari_encode, kawari_encode2, kawari_decode2
+
+ &dhpackage; 8.0 encoder/decoder
+
+
+
+ kawari_encode
+
+ file
+
+
+ kawari_encode2
+
+ file
+
+
+ kawari_decode2
+
+ file
+
+
+
+ DESCRIPTION
+
+ This manual page documents briefly the
+ &dhpackage; command.
+
+
+ This manual page was written for the &debian; distribution
+ because the original program does not have a manual page.
+ Instead, it has documentation written in HTML format. For detailed
+ descriptions, see doc-base.
+
+
+ &dhpackage;_encode encodes kawari scripts to
+ an encoded file. So the users for the scripts cannot easily read the
+ content. It can be used to protect the content of Kawari scripts.
+ It takes several text files as inputs and converts them to
+ .kaw files
+ separately.
+
+
+ &dhpackage;_encode2 is an advanced
+ &dhpackage;_encode. It is able to assign
+ a symmetric key like some encrypting systems. The key affects
+ the encoding system. Users need the key to decode them.
+
+
+ &dhpackage;_decode2 is a decoder of the
+ .kaw files. It takes several
+ .kaw files and convert them back to
+ .txt files. If the kaw files is
+ encoded by
+ &dhpackage;_encode2, the key must be provided
+ correctly for decoding.
+
+
+
+
+ AUTHOR
+
+ This manual page was written by &dhusername; <&dhemail;> for
+ the &debian; system (but may be used by others).
+ This manual page is in public domain and is freely reproduced,
+ distributed,
+ transmitted, used, modified, built upon, or otherwise
+ exploited by anyone for any purpose, commercial or non-commercial,
+ and
+ in any way, including by methods that have not yet been invented or
+ conceived.
+
+
+
+
+
+
--- kawari8-8.2.8.orig/debian/kawari8.install
+++ kawari8-8.2.8/debian/kawari8.install
@@ -0,0 +1,5 @@
+build-tree/kawari-*/build/mach/linux/kosui /usr/games
+build-tree/kawari-*/build/mach/linux/kawari_encode /usr/games
+build-tree/kawari-*/build/mach/linux/kawari_encode2 /usr/games
+build-tree/kawari-*/build/mach/linux/kawari_decode2 /usr/games
+build-tree/kawari-*/build/mach/linux/libshiori.so /usr/lib/games/kawari8
--- kawari8-8.2.8.orig/debian/compat
+++ kawari8-8.2.8/debian/compat
@@ -0,0 +1 @@
+9
--- kawari8-8.2.8.orig/debian/copyright
+++ kawari8-8.2.8/debian/copyright
@@ -0,0 +1,95 @@
+Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=173
+Upstream-Name: kawari8
+Upstream-Contact: KAWARI Development Team
+ Meister(original works) (NAKAUE, T)
+ Nie (MATSUMURA Namihiko)
+ Nise-Meister
+ Sato (S.Sato)
+ Shino (T.SHINOHARA)
+ Suikyo (Kouji.U (Sky))
+Source: http://kawari.sourceforge.net/
+
+Files: *
+Copyright: 2001-2008, KAWARI Development Team
+License:
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer
+ as the first lines of this file unmodified.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
+Files: kawari-*/build/src/misc/mt19937ar.[cpp|h]
+Copyright: 1997-2002, Makoto Matsumoto and Takuji Nishimura
+License:
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ 3. The names of its contributors may not be used to endorse or promote
+ products derived from this software without specific prior written
+ permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: debian/*
+Copyright: 2003, CN Wang
+ 2006, Ying-Chun Liu (PaulLiu)
+License:
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer
+ as the first lines of this file unmodified.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
--- kawari8-8.2.8.orig/debian/control
+++ kawari8-8.2.8/debian/control
@@ -0,0 +1,25 @@
+Source: kawari8
+Section: games
+Priority: optional
+Maintainer: Ying-Chun Liu (PaulLiu)
+Build-Depends: cdbs (>= 0.4.48), debhelper (>= 9), python-dev, docbook-to-man, unzip
+Standards-Version: 3.9.3
+Homepage: http://kawari.sourceforge.net/
+
+Package: kawari8
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+XB-Python-Version: current
+Suggests: ninix-aya
+Description: Pseudo AI Shiori module used to create ghosts for Ukagaka
+ Kawari is a conversation generating script language. It is usually used to
+ develop ghosts for Ukagaka platform.
+ .
+ Ukagaka, also known as Nanika, is a platform on which provides mascot
+ characters for the user's desktop. These mascot characters can say something
+ which is programmatically generated. Conversations can be generated by
+ programs which follows the Shiori standard. And the conversation-generating
+ script we called it "ghost" which means the spirit of the mascot character.
+ .
+ This package also install the kawari8 plug-in for ninix-aya in order to
+ perform ghosts based on kawari8.
--- kawari8-8.2.8.orig/debian/kawari8.links
+++ kawari8-8.2.8/debian/kawari8.links
@@ -0,0 +1,3 @@
+usr/share/man/man6/kawari_encode.6.gz usr/share/man/man6/kawari_encode2.6.gz
+usr/share/man/man6/kawari_encode.6.gz usr/share/man/man6/kawari_decode2.6.gz
+usr/lib/games/kawari8/libshiori.so usr/lib/games/ninix-aya/_kawari8.so
--- kawari8-8.2.8.orig/debian/watch
+++ kawari8-8.2.8/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/kawari/ kawari-(.)(.)(.)\.zip
--- kawari8-8.2.8.orig/debian/kosui.sgml
+++ kawari8-8.2.8/debian/kosui.sgml
@@ -0,0 +1,156 @@
+ manpage.1'. You may view
+ the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+ less'. A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+ docbook-to-man $< > $@
+
+
+ The docbook-to-man binary is found in the docbook-to-man package.
+ Please remember that if you create the nroff version in one of the
+ debian/rules file targets (such as build), you will need to include
+ docbook-to-man in your Build-Depends control field.
+
+ -->
+
+
+ Ying-Chun">
+ Liu">
+
+ Sep 12, 2006">
+
+ 6">
+ grandpaul@gmail.com">
+
+ KAWARI8">
+
+
+ Debian">
+ GNU">
+ GPL">
+]>
+
+
+
+
+ &dhemail;
+
+
+ &dhfirstname;
+ &dhsurname;
+
+
+ 2006
+ &dhusername;
+
+ &dhdate;
+
+
+ &dhucpackage;
+
+ &dhsection;
+
+
+ &dhpackage;
+
+ Kawari 8.0 interpreter
+
+
+
+ &dhpackage;
+
+
+
+
+
+ rcfile
+
+
+
+ DESCRIPTION
+
+ This manual page documents briefly the
+ &dhpackage; command.
+
+
+ This manual page was written for the &debian; distribution
+ because the original program does not have a manual page.
+ Instead, it has documentation written in HTML format. For detailed
+ descriptions, see doc-base.
+
+
+ &dhpackage; is a Kawari interpreter. It can
+ be used for debugging Kawari scripts.
+
+
+
+ OPTIONS
+
+ A summary of
+ options is included below. For a complete description, see the
+ doc-base files.
+
+
+
+
+
+
+
+ Notify the event to the ghost in debug mode
+
+
+
+
+
+
+ Do not load kawarirc.kis
+
+
+
+
+
+ SEE ALSO
+
+ kawari_encode (6), kawari_encode2 (6), kawari_decode (6)
+
+ The programs are documented fully by Kawari Manual
+ available via the
+ doc-book system.
+
+
+ AUTHOR
+
+ This manual page was written by &dhusername; <&dhemail;> for
+ the &debian; system (but may be used by others).
+ This manual page is in public domain and is freely reproduced,
+ distributed,
+ transmitted, used, modified, built upon, or otherwise
+ exploited by anyone for any purpose, commercial or non-commercial,
+ and
+ in any way, including by methods that have not yet been invented or
+ conceived.
+
+
+
+
+
+
--- kawari8-8.2.8.orig/debian/clean
+++ kawari8-8.2.8/debian/clean
@@ -0,0 +1,3 @@
+*.zip.cdbs-config_list
+kosui.6
+kawari_encode.6
--- kawari8-8.2.8.orig/debian/README.source
+++ kawari8-8.2.8/debian/README.source
@@ -0,0 +1,43 @@
+kawari8 for Debian
+------------------------
+
+= extract upstream zip =
+
+The sources are downloaded from http://kawari.sourceforge.net/
+The upstream source package is in zip format.
+The zip file is packaged into the tarball directly.
+In order to extract the source, please run 'debian/rules pre-build'
+
+
+= cdbs simple-patchsys introduction =
+
+This package uses cdbs-simple-patchsys to manage all modifications to the
+upstream source. Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+To get the fully patched source after unpacking the source package, cd to
+the root level of the source package and run:
+
+ debian/rules patch
+
+To unapply all the patches, run:
+
+ debian/rules unpatch
+
+To add a new set of changes, or to edit an existing patch,
+first run debian/rules unpatch, and then run:
+
+ cdbs-edit-patch
+
+where is a descriptive name for the patch, used as the filename in
+debian/patches. Then, cdbs-edit-patch will first create a temporary working
+source tree and apply all patches up to the new patch in lexicographic order.
+And you can modify every files in the temporary source tree.
+After editing the files, run:
+
+ exit 0
+
+to save the results as a patch.
+To abort the process, exit with a nonzero exit value:
+
+ exit 1
--- kawari8-8.2.8.orig/debian/changelog
+++ kawari8-8.2.8/debian/changelog
@@ -0,0 +1,114 @@
+kawari8 (8.2.8-8) unstable; urgency=low
+
+ * Don't use stlport4.6. (Closes: #710000)
+ * Update 009_kawari8-64bit-fix.patch to fix 64-bit crash (Closes: #702238)
+ * Bump debhelper version to 9
+ * Bump Standards-Version to 3.9.3
+
+ -- Ying-Chun Liu (PaulLiu) Wed, 29 May 2013 15:29:19 +0800
+
+kawari8 (8.2.8-7) unstable; urgency=low
+
+ * Fix segfaults on 64bit arch (Closes: #693893)
+ - Add patch 009_kawari8-64bit-fix.patch
+ - Thanks to Shyouzou Sugitani
+
+ -- Ying-Chun Liu (PaulLiu) Sat, 24 Nov 2012 10:50:41 +0800
+
+kawari8 (8.2.8-6.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix "ftbfs with GCC-4.7": add patch 008_fix_gcc4.7_FTBFS.patch (this->
+ qualifier).
+ Closes: #667219
+
+ -- gregor herrmann Sun, 06 May 2012 16:28:01 +0200
+
+kawari8 (8.2.8-6) unstable; urgency=low
+
+ * debian/patches/007_fix_gcc4.5_FTBFS.patch: Fix FTBFS with gcc-4.5
+ (Closes: #615675)
+
+ -- Ying-Chun Liu (PaulLiu) Wed, 16 Mar 2011 03:09:23 +0800
+
+kawari8 (8.2.8-5) unstable; urgency=low
+
+ * debian/patches/006_fix_crash_on_dlclose.patch:
+ - Fix segfault on dlclose() in load_library(). (Closes: #602611)
+ - Thanks to Shyouzou Sugitani
+ * Bump Standards-Version to 3.9.1 - Nothing need to be changed.
+
+ -- Ying-Chun Liu (PaulLiu) Tue, 09 Nov 2010 01:33:18 +0800
+
+kawari8 (8.2.8-4) unstable; urgency=low
+
+ * Only use STLport4.6 on i386 architecture.
+ * debian/patches/005_add_missing_includes.patch:
+ - Add missing includes to fix FTBFS
+
+ -- Ying-Chun Liu (PaulLiu) Wed, 10 Feb 2010 21:30:07 +0800
+
+kawari8 (8.2.8-3) unstable; urgency=low
+
+ * debian/control:
+ - Since stlport5.2 and stlport5.1 is going to be removed in Debian, we
+ change Build-Depends back to stlport4.6
+ - Change Maintainer field to my Debian account
+ - Bump Standards-Version to 3.8.4: Nothing needs to be changed
+ - Bump Build-Depends on debhelper 5 to 7
+ * Move README.Debian-source to README.source. Add more information.
+ * debian/compat: change compat from 5 to 7
+ * debian/copyright: Use machine readable format
+
+ -- Ying-Chun Liu (PaulLiu) Wed, 10 Feb 2010 07:05:59 +0800
+
+kawari8 (8.2.8-2) unstable; urgency=low
+
+ * Build depends on stlport5.2. (Closes: #521751)
+ * Bump Standards-Version to 3.8.1 - Nothing need to be changed.
+
+ -- Ying-Chun Liu (PaulLiu) Fri, 01 May 2009 13:59:07 +0800
+
+kawari8 (8.2.8-1) unstable; urgency=low
+
+ * New upstream release
+ * Refine debian/copyright
+ * Set doc-book sections to Games/Toys
+ * Use python-config to build against current python version
+
+ -- Ying-Chun Liu (PaulLiu) Sun, 20 Apr 2008 23:35:17 +0800
+
+kawari8 (8.2.7-1) unstable; urgency=low
+
+ * New upstream release
+ + Remove 002_kawari_log.cpp.patch which has been merged into the upstream
+ + Refresh 001_gcc.mak.patch for new upstream version
+ * Fix kawari_encode.sgml for lintian warning: manpage-has-bad-whatis-entry
+ * Build-depending on stlport5.1 >= 5.1.5 to fix FTBFS on arm,mips(el)
+ * Bump standard versions to 3.7.3
+ + Use Homepage field instead of pseudo-field in long description
+ * Add optional get-orig-source rule in debian/rules
+ * Fix manpage-has-errors-from-man in kawari_encode.sgml
+ * Add UPSTREAM_VERSION and ZIP_VERSION variable for ease maintenance.
+ * Use wildcards in .install and .docs file. Thanks to Thomas Girard.
+
+ -- Ying-Chun Liu (PaulLiu) Sat, 23 Feb 2008 22:55:18 +0800
+
+kawari8 (8.2.4-3) unstable; urgency=low
+
+ * Link against libstlport5.1 (Closes: 448252)
+
+ -- Ying-Chun Liu (PaulLiu) Sun, 28 Oct 2007 16:37:02 +0800
+
+kawari8 (8.2.4-2) unstable; urgency=low
+
+ * Improve package description (Closes: 421155)
+ * Handling DEB_BUILD_OPTIONS=nostrip (Closes: 437247)
+
+ -- Ying-Chun Liu (PaulLiu) Thu, 16 Aug 2007 00:45:10 +0800
+
+kawari8 (8.2.4-1) unstable; urgency=low
+
+ * Initial Release (Closes: #411612)
+
+ -- Ying-Chun Liu (PaulLiu) Sun, 17 Sep 2006 21:03:52 +0800
--- kawari8-8.2.8.orig/debian/kawari8.doc-base
+++ kawari8-8.2.8/debian/kawari8.doc-base
@@ -0,0 +1,10 @@
+Document: kawari8
+Title: Kawari 8 Manual
+Author: KAWARI Development Team http://kawari.sourceforge.net/
+Abstract: This manual is written in Japanese. It describes what kawari is
+ and how it can be used to make a ghost.
+Section: Games/Toys
+
+Format: HTML
+Index: /usr/share/doc/kawari8/html/index.html
+Files: /usr/share/doc/kawari8/html/*.html
--- kawari8-8.2.8.orig/debian/rules
+++ kawari8-8.2.8/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+# This file is public domain.
+
+UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*\)-.*/\1/p')
+ZIP_VERSION := $(shell echo $(UPSTREAM_VERSION) | sed -e 's/\.//g')
+DEB_TAR_SRCDIR := kawari-$(ZIP_VERSION)/build/src
+DEB_AUTO_CLEANUP_RCS := yes
+
+include /usr/share/cdbs/1/rules/tarball.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/makefile.mk
+
+DEB_MAKE_MAKEFILE := gcc.mak
+DEB_MAKE_CLEAN_TARGET :=
+
+build/kawari8::
+ docbook-to-man debian/kosui.sgml > kosui.6
+ docbook-to-man debian/kawari_encode.sgml > kawari_encode.6
+
+binary-install/kawari8::
+ mv debian/kawari8/usr/share/doc/kawari8/document \
+ debian/kawari8/usr/share/doc/kawari8/html
+
+cleanbuilddir/kawari8::
+ $(RM) debian/stamp-patch-*.patch
+
+get-orig-source::
+ mkdir $(CURDIR)/kawari8-$(UPSTREAM_VERSION).orig
+ cd $(CURDIR)/kawari8-$(UPSTREAM_VERSION).orig && wget -c \
+ http://jaist.dl.sourceforge.net/sourceforge/kawari/kawari-$(ZIP_VERSION).zip
+ tar -czvf kawari8_$(UPSTREAM_VERSION).orig.tar.gz kawari8-$(UPSTREAM_VERSION).orig
+ rm -rf $(CURDIR)/kawari8-$(UPSTREAM_VERSION).orig
--- kawari8-8.2.8.orig/debian/kawari8.dirs
+++ kawari8-8.2.8/debian/kawari8.dirs
@@ -0,0 +1,4 @@
+usr/games
+usr/lib/games/kawari8
+usr/share/man/man6
+usr/lib/games/ninix-aya
--- kawari8-8.2.8.orig/debian/patches/008_fix_gcc4.7_FTBFS.patch
+++ kawari8-8.2.8/debian/patches/008_fix_gcc4.7_FTBFS.patch
@@ -0,0 +1,20 @@
+--- src/misc/mmap.h
++++ src/misc/mmap.h
+@@ -28,7 +28,7 @@
+ // 2001/12/16 suikyo@yk.rim.or.jp : imortal entry bug
+ // if(it==end()) it=insert(pair(key,DataType()));
+ // if(it==upper_bound(key)) it=insert(pair(key,DataType()));
+- if(it==std::multimap::upper_bound(key)) it=insert(typename TMMap::value_type(key,DataType()));
++ if(it==std::multimap::upper_bound(key)) it=this->insert(typename TMMap::value_type(key,DataType()));
+ return((*it).second);
+ }
+ /*
+@@ -43,7 +43,7 @@
+ void Add(const KeyType& key,const DataType& data)
+ {
+ // insert(pair(key,data));
+- insert(typename TMMap::value_type(key,data));
++ this->insert(typename TMMap::value_type(key,data));
+ }
+
+ };
--- kawari8-8.2.8.orig/debian/patches/006_fix_crash_on_dlclose.patch
+++ kawari8-8.2.8/debian/patches/006_fix_crash_on_dlclose.patch
@@ -0,0 +1,12 @@
+--- src/saori/saori_native.cpp 2010-11-09 00:15:10.837407630 +0800
++++ src/saori/saori_native.cpp 2010-11-09 00:15:28.813738444 +0800
+@@ -129,8 +129,8 @@
+ if (sym_load != NULL && sym_unload != NULL && sym_request != NULL) {
+ do_fallback = false;
+ }
++ ::dlclose(handle);
+ }
+- ::dlclose(handle);
+ }
+
+ if (do_fallback) {
--- kawari8-8.2.8.orig/debian/patches/007_fix_gcc4.5_FTBFS.patch
+++ kawari8-8.2.8/debian/patches/007_fix_gcc4.5_FTBFS.patch
@@ -0,0 +1,24 @@
+--- src/misc/mmap.h 2005-06-22 07:51:44.000000000 +0800
++++ src/misc/mmap.h 2011-03-16 03:00:46.732698292 +0800
+@@ -11,6 +11,7 @@
+ //---------------------------------------------------------------------------
+ #include
+ #include