gnu-smalltalk (3.2.4-2) debian-dir only changes

Summary

 debian/README.source                                     |   10 
 debian/changelog                                         |  745 +++++++++++++++
 debian/compat                                            |    1 
 debian/control                                           |  203 ++++
 debian/copyright                                         |  200 ++++
 debian/dh_fixstars                                       |  124 ++
 debian/dh_makestarlibs                                   |  117 ++
 debian/dh_stardeps                                       |  146 ++
 debian/gnu-smalltalk-browser.dirs                        |    1 
 debian/gnu-smalltalk-browser.install                     |    2 
 debian/gnu-smalltalk-browser.links                       |    1 
 debian/gnu-smalltalk-browser.menu                        |    6 
 debian/gnu-smalltalk-common.install                      |   43 
 debian/gnu-smalltalk-doc.info                            |    1 
 debian/gnu-smalltalk-el.dirs                             |    1 
 debian/gnu-smalltalk-el.emacsen-install                  |   39 
 debian/gnu-smalltalk-el.emacsen-remove                   |   10 
 debian/gnu-smalltalk.NEWS                                |   19 
 debian/gnu-smalltalk.docs                                |    4 
 debian/gnu-smalltalk.install                             |   33 
 debian/gnu-smalltalk.links                               |    1 
 debian/gnu-smalltalk.menu                                |    2 
 debian/gsticon.xpm                                       |  570 +++++++++++
 debian/libexpat-gst.install                              |    2 
 debian/libgdbm-gst.install                               |    2 
 debian/libgl-gst.install                                 |    4 
 debian/libgst-dev.install                                |    6 
 debian/libgst7.install                                   |    1 
 debian/libgtk2-gst.install                               |    3 
 debian/libncurses-gst.install                            |    1 
 debian/libpostgresql-gst.install                         |    1 
 debian/libsdl-gst.install                                |    4 
 debian/libsdl-image-gst.install                          |    1 
 debian/libsdl-mixer-gst.install                          |    1 
 debian/libsdl-sound-gst.install                          |    1 
 debian/libsdl-ttf-gst.install                            |    1 
 debian/libsqlite3-gst.install                            |    2 
 debian/patches/01_rename_to_gnu_smalltalk.diff           |   33 
 debian/patches/02_fix_overflow_detection_on_non_x86.diff |  210 ++++
 debian/patches/04_fix_image_shebang.diff                 |   12 
 debian/patches/05_emacsen.diff                           |   18 
 debian/patches/06_sdl_debian.diff                        |   56 +
 debian/patches/series                                    |    5 
 debian/rules                                             |  158 +++
 debian/watch                                             |    3 
 debian/zlib-gst.install                                  |    2 
 46 files changed, 2806 insertions(+)

    
download this patch

Patch contents

--- gnu-smalltalk-3.2.4.orig/debian/libsdl-gst.install
+++ gnu-smalltalk-3.2.4/debian/libsdl-gst.install
@@ -0,0 +1,4 @@
+usr/share/gnu-smalltalk/LibSDL.star
+usr/share/gnu-smalltalk/LibSDL_GL.star
+usr/share/gnu-smalltalk/CairoSDL.star
+usr/lib/gnu-smalltalk/sdl*.so
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk-el.dirs
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk-el.dirs
@@ -0,0 +1 @@
+usr/share/emacs/site-lisp/gnu-smalltalk-el
--- gnu-smalltalk-3.2.4.orig/debian/dh_makestarlibs
+++ gnu-smalltalk-3.2.4/debian/dh_makestarlibs
@@ -0,0 +1,117 @@
+#!/usr/bin/perl -w
+
+=head1 NAME
+
+dh_makestarlibs - creates starlibs files for GNU Smalltalk archives
+
+=cut
+
+use strict;
+use Debian::Debhelper::Dh_Lib;
+
+=head1 SYNOPSIS
+
+B<dh_makestarlibs> [S<I<debhelper options>>]
+
+=head1 DESCRIPTION
+
+dh_makestarlibs is a debhelper script that is responsible for generating
+starlibs files that will be used to compute GNU SmallTalk ARchives
+(.star files) dependencies.
+
+=cut
+
+init();
+
+foreach my $package (@{$dh{DOPACKAGES}}) {
+    next if is_udeb($package);
+
+    my $tmp = tmpdir($package);
+    my %seen;
+
+    doit("rm", "-f", "$tmp/DEBIAN/starlibs");
+
+    if (-e "debian/$package.starlibs") {
+	complex_doit("cat debian/$package.starlibs > $tmp/DEBIAN/starlibs");
+    } else {
+	open(FIND, "find $tmp -type f -name '*.star' |");
+
+	while (<FIND>) {
+	    chomp;
+	    my $starchive = $_;
+	    $starchive =~ s,.*/([^/]+)\.star$,$1,;
+
+	    if (!-d "$tmp/DEBIAN") {
+		doit("install", "-d", "$tmp/DEBIAN");
+	    }
+
+	    my $deps = depends($package);
+	    my $line = "$starchive $deps";
+
+	    if (!$seen{$line}) {
+		$seen{$line} = 1;
+		complex_doit("echo '$line' >> $tmp/DEBIAN/starlibs");
+	    }
+	}
+
+	close FIND;
+
+	# Support packages.xml
+	if (open(META, "$tmp/usr/share/gnu-smalltalk/packages.xml")) {
+	    my @lines = <META>;
+	    my $content = join("", @lines);
+
+	    if (my @pkgs = $content =~ m,<package>\s*<name>(\w+)</name>,gi) {
+		foreach my $p (@pkgs) {
+		    verbose_print("adding virtual package $p");
+		    my $deps = depends($package);
+		    complex_doit("echo '$p $deps' >> $tmp/DEBIAN/starlibs");
+		}
+	    }
+	}
+
+	if (-e "$tmp/DEBIAN/starlibs") {
+	    doit("chmod", 644,   "$tmp/DEBIAN/starlibs");
+	    doit("chown", "0:0", "$tmp/DEBIAN/starlibs");
+	}
+    }
+}
+
+sub depends {
+    my $package = shift;
+    my $deps = $package;
+
+    # Call isnative because it sets $dh{VERSION}
+    # as a side effect.
+    isnative($package);
+    my $version = $dh{VERSION};
+
+    # Old compatibility levels include the
+    # debian revision, while new do not.
+    if (!compat(3)) {
+	# Remove debian version, if any.
+	$version =~ s/-[^-]+$//;
+    }
+
+    if ($dh{V_FLAG_SET}) {
+	if ($dh{V_FLAG} ne '') {
+	    $deps = $dh{V_FLAG};
+	} else {
+	    $deps = "$package (>= $version)";
+	}
+    }
+
+    return $deps;
+}
+
+=head1 SEE ALSO
+
+L<debhelper(7)>
+
+=head1 AUTHOR
+
+Thomas Girard <thomas.g.girard@free.fr>, heavily based on code from
+Mirco Bauer <meebey@meebey.net> and Eduard Bloch <blade@debian.org>
+for dh_makeclilibs.
+
+=cut
--- gnu-smalltalk-3.2.4.orig/debian/libpostgresql-gst.install
+++ gnu-smalltalk-3.2.4/debian/libpostgresql-gst.install
@@ -0,0 +1 @@
+usr/share/gnu-smalltalk/DBD-PostgreSQL.star
--- gnu-smalltalk-3.2.4.orig/debian/libexpat-gst.install
+++ gnu-smalltalk-3.2.4/debian/libexpat-gst.install
@@ -0,0 +1,2 @@
+usr/share/gnu-smalltalk/XML-Expat.star
+usr/lib/gnu-smalltalk/expat*.so
--- gnu-smalltalk-3.2.4.orig/debian/copyright
+++ gnu-smalltalk-3.2.4/debian/copyright
@@ -0,0 +1,200 @@
+This package was debianized by:
+     Alex Shinn <foof@debian.org> on Thu, 27 May 1999 20:51:38 -0500.
+It is now maintained by:
+   Debian GNU Smalltalk maintainers <pkg-gnu-smalltalk-devel@lists.alioth.debian.org>
+
+It was downloaded from <ftp://ftp.gnu.org/gnu/smalltalk>.
+
+Upstream Author:
+	Paolo Bonzini <bonzini@gnu.org>
+
+Copyright Holders:
+	2002-2003 Paolo Bonzini <bonzini@gnu.org>
+	1988-2006 Free Software Foundation, Inc.
+	1993 Sun Microsystems, Inc.
+	2001 Stephen L. Moshier <moshier@na-net.ornl.gov>
+	1993-2003 Bruno Haible <haible@clisp.cons.org>
+	2002 Josh Miller
+	2000-2003 Alan Knight
+	2003 The GLib team
+	1999 Andrea Arcangeli <andrea@suse.de>
+	1999-2000 Didier BESSET
+	1998-2003 Gary V. Vaughan
+	1989-1994 GROUPE BULL
+	1999-2002 Ralf S. Engelschall <rse@engelschall.com>
+	1994 X Consortium
+	1998-2000 The Refactory, Inc.
+	1995 Kazuki Yasumatsu
+	1992 University of Manchester
+	1996 John Maloney and Mario Wolczko
+	1995-1998 AOKI Atsushi
+	1996-1999 Peter William Lount
+	1996-2004 Red Hat, Inc.
+	2004 Simon Posnjak
+	2005 Axis Communications AB
+	1998 Cygnus Solutions
+	2004 Anthony Green
+	2004 Renesas Technology
+	1998 Geoffrey Keating
+	2000 John Hornkvist
+	2003 Jakub Jelinek <jakub@redhat.com>
+	2000 Software AG
+	2002-2005 2006 Kaz Kojima
+	2002 Bo Thorsen <bo@suse.de>
+	2002 Ranjit Mathew
+	2002 Roger Sayle
+	2001 John Beniton
+	2006 Matthew Flatt
+	1999-2002 Ian Piumarta
+	2000-2002 Cincom, Inc.
+	2000-2001 Travis Griggs and Ken Treis
+	2000 Leslie A. Tyrrell
+	1988-1989 Hans-J. Boehm, Alan J. Demers
+	1991-1995 Xerox Corporation
+	1996-1999 Silicon Graphics
+	1999 Hewlett-Packard Company
+	1995 Richard E. Hawkins
+	1996-1997 Joseph M. Hinkle
+	2008-2009 Ramon Leon <ramon.leon@allresnet.com>
+
+License (GNU Smalltalk class library and GNU lightning,
+	 ftruncate.c, putenv.c, sincosl.c, trigl.c):
+
+	This library is free software; you can redistribute it and/or
+	modify it under the terms of the GNU Lesser General Public
+	License as published by the Free Software Foundation; either
+	version 2.1 of the License, or (at your option) any later version.
+
+	This library is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+	Lesser General Public License for more details.
+
+	You should have received a copy of the GNU Lesser General Public
+	License along with this library; if not, write to the Free Software
+	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU Lesser General Public License
+can be found in /usr/share/common-licenses/LGPL file.
+
+License (GNU Smalltalk vm, libgst, i18n/i18n.c):
+
+	This program is free software; you can redistribute it and/or modify
+	it under the terms of the GNU General Public License as published by
+	the Free Software Foundation; either version 2 of the License, or
+	(at your option) any later version.
+
+	This program is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+	GNU General Public License for more details.
+
+	You should have received a copy of the GNU General Public License
+	along with this program; if not, write to the Free Software
+	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+	Linking GNU Smalltalk statically or dynamically with other modules is
+	making a combined work based on GNU Smalltalk.  Thus, the terms and
+	conditions of the GNU General Public License cover the whole
+	combination.
+
+	In addition, as a special exception, the Free Software Foundation
+	give you permission to combine GNU Smalltalk with free software
+	programs or libraries that are released under the GNU LGPL and with
+	independent programs running under the GNU Smalltalk virtual machine.
+
+	You may copy and distribute such a system following the terms of the
+	GNU GPL for GNU Smalltalk and the licenses of the other code
+	concerned, provided that you include the source code of that other
+	code when and as the GNU GPL requires distribution of source code.
+
+	Note that people who make modified versions of GNU Smalltalk are not
+	obligated to grant this special exception for their modified
+	versions; it is their choice whether to do so.  The GNU General
+	Public License gives permission to release a modified version without
+	this exception; this exception also makes it possible to release a
+	modified version which carries forward this exception.
+
+License (GNU Smalltalk compiler, browser, scripts, sigsegv):
+
+	This program is free software; you can redistribute it and/or modify
+	it under the terms of the GNU General Public License as published by
+	the Free Software Foundation; either version 2 of the License, or
+	(at your option) any later version.
+
+	This program is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+	GNU General Public License for more details.
+
+	You should have received a copy of the GNU General Public License
+	along with this program; if not, write to the Free Software
+	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+License (snprintfv):
+
+	This library is free software; you can redistribute it and/or modify
+	it under the terms of the GNU General Public License as published by
+	the Free Software Foundation; either version 2 of the License, or
+	(at your option) any later version.
+
+	This library is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+	GNU General Public License for more details.
+
+	You should have received a copy of the GNU General Public License
+	along with this program; if not, write to the Free Software
+	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+	As a special exception to the GNU General Public License, if you
+	distribute this library as part of a program that also links with and
+	uses the libopts library from AutoGen, you may include it under
+	the same distribution terms used by the libopts library.
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in /usr/share/common-licenses/GPL file.
+
+License (libffi, VisualGST, SandstoneDb):
+
+	Permission is hereby granted, free of charge, to any person obtaining
+	a copy of this software and associated documentation files (the
+	``Software''), to deal in the Software without restriction, including
+	without limitation the rights to use, copy, modify, merge, publish,
+	distribute, sublicense, and/or sell copies of the Software, and to
+	permit persons to whom the Software is furnished to do so, subject to
+	the following conditions:
+
+	The above copyright notice and this permission notice shall be included
+	in all copies or substantial portions of the Software.
+
+	THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
+	EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+	MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+	IN NO EVENT SHALL CYGNUS SOLUTIONS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+	OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+	ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+	OTHER DEALINGS IN THE SOFTWARE.
+
+License (acosl.c, asinl.c, cosl.c, sinl.c, tanl.c):
+
+	Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+
+	Developed at SunPro, a Sun Microsystems, Inc. business.
+	Permission to use, copy, modify, and distribute this
+	software is freely granted, provided that this notice
+	is preserved.
+
+License (documentation):
+
+	This document is released under the terms of the GNU Free
+	Documentation License as published by the Free Software Foundation;
+	either version 1.1, or (at your option) any later version.
+
+	You should have received a copy of the GNU Free Documentation
+	License along with GNU Smalltalk; see the file `COPYING.DOC'.  If not,
+	write to the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+	Boston, MA 02110-1301, USA.
+
+	There are no Cover Texts and no Invariant Sections; this text, along
+	with its equivalent in the printed manual, constitutes the Title Page.
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk.docs
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk.docs
@@ -0,0 +1,4 @@
+NEWS
+README
+TODO
+THANKS
--- gnu-smalltalk-3.2.4.orig/debian/zlib-gst.install
+++ gnu-smalltalk-3.2.4/debian/zlib-gst.install
@@ -0,0 +1,2 @@
+usr/share/gnu-smalltalk/ZLib.star
+usr/lib/gnu-smalltalk/zlib*.so
--- gnu-smalltalk-3.2.4.orig/debian/libgtk2-gst.install
+++ gnu-smalltalk-3.2.4/debian/libgtk2-gst.install
@@ -0,0 +1,3 @@
+usr/lib/gnu-smalltalk/gst-gtk*.so
+usr/share/gnu-smalltalk/GTK.star usr/lib/gnu-smalltalk
+usr/share/gnu-smalltalk/Cairo.star
--- gnu-smalltalk-3.2.4.orig/debian/control
+++ gnu-smalltalk-3.2.4/debian/control
@@ -0,0 +1,203 @@
+Source: gnu-smalltalk
+Section: interpreters
+Priority: extra
+Maintainer: Debian GNU Smalltalk maintainers <pkg-gnu-smalltalk-devel@lists.alioth.debian.org>
+Uploaders: Thomas Girard <thomas.g.girard@free.fr>, Alexander Lazarević <laza@blobworks.com>
+Build-Depends: debhelper (>= 7), autotools-dev, libreadline-dev, libncurses-dev, libsdl1.2-dev, libsdl-image1.2-dev, libsdl-mixer1.2-dev, libsdl-sound1.2-dev, libsdl-ttf2.0-dev, libexpat1-dev, freeglut3-dev, libgmp-dev, quilt (>= 0.40), dpkg-dev (>= 1.13.19), libgdbm-dev, libgtk2.0-dev, libpq-dev, libsigsegv-dev (>= 2.9-2), libffi-dev (>= 3.0.5-2), zip, libsqlite3-dev, unzip, pkg-config, libltdl-dev, chrpath, gawk, libgnutls-dev, automake, autoconf, libtool, texinfo
+Standards-Version: 3.9.2
+Homepage: http://smalltalk.gnu.org
+Vcs-Git: git://anonscm.debian.org/collab-maint/pkg-gnu-smalltalk.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/pkg-gnu-smalltalk.git;a=summary
+
+Package: gnu-smalltalk
+Architecture: any
+Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}, zip, unzip
+Recommends: gnu-smalltalk-common (= ${source:Version})
+Suggests: gnu-smalltalk-doc
+Description: GNU Smalltalk interpreter and image
+ GNU Smalltalk is an implementation that closely follows the
+ Smalltalk-80 language as described in the book `Smalltalk-80: the
+ Language and its Implementation' by Adele Goldberg and David Robson.
+ .
+ This package contains the GNU Smalltalk interpreter and the base image.
+
+Package: libgst7
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: GNU Smalltalk virtual machine shared library
+ This package contains GNU Smalltalk virtual machine shared library.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libgst-dev
+Architecture: any
+Section: libdevel
+Depends: libgst7 (= ${binary:Version}), ${misc:Depends}
+Description: GNU Smalltalk virtual machine development files
+ This package contains static library and headers files for the GNU
+ Smalltalk virtual machine.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: gnu-smalltalk-doc
+Architecture: all
+Section: doc
+Depends: info | info-browser, ${misc:Depends}, dpkg (>= 1.15.4) | install-info
+Conflicts: gnu-smalltalk (<< 1.6.1-2)
+Description: GNU Smalltalk info documentation
+ This package contains the documentation in info format for GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: gnu-smalltalk-common
+Architecture: all
+Depends: ${misc:Depends}
+Conflicts: gnu-smalltalk (<< 2.3.3-1)
+Description: GNU Smalltalk class library sources and extras
+ This package contains GNU Smalltalk class library sources, examples, and
+ extras SmallTalk ARchives (.star files).
+ .
+ Some of the Smalltalk archives included:
+  * SUnit
+  * Glorp
+  * Magritte
+  * XML
+  * XSL
+  * XPath
+  * WebServer
+  * Swazoo
+  * Seaside
+  * ROE
+  * SandstoneDb
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: gnu-smalltalk-el
+Architecture: all
+Section: lisp
+Depends: emacs | emacsen, ${misc:Depends}
+Conflicts: gnu-smalltalk (<< 2.3.3-1)
+Description: GNU Smalltalk Emacs front-end
+ This package contains an Emacs major mode for editing Smalltalk code.
+ .
+ This mode features syntax highlighting, auto indentation and interaction
+ with GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libpostgresql-gst
+Architecture: all
+Depends: gnu-smalltalk (>= 2.95h), ${gst:Depends}, ${misc:Depends}
+Description: PostgreSQL bindings for GNU Smalltalk
+ This package contains the GNU Smalltalk DataBase Interface (DBI) connector
+ for PostgreSQL.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libsqlite3-gst
+Architecture: any
+Depends: gnu-smalltalk (= ${binary:Version}), ${shlibs:Depends}, ${gst:Depends}, ${misc:Depends}
+Description: SQLite bindings for GNU Smalltalk
+ This package contains the GNU Smalltalk DataBase Interface (DBI) connector
+ for SQLite.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libncurses-gst
+Architecture: all
+Depends: gnu-smalltalk (>= 2.95h), ${gst:Depends}, ${misc:Depends}
+Description: Ncurses bindings for GNU Smalltalk
+ This package contains the Ncurses bindings for GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libgdbm-gst
+Architecture: any
+Depends: gnu-smalltalk (= ${binary:Version}), ${shlibs:Depends}, ${gst:Depends}, ${misc:Depends}
+Description: GDBM bindings for GNU Smalltalk
+ This package contains the GDBM bindings for GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libgtk2-gst
+Architecture: any
+Depends: gnu-smalltalk (= ${binary:Version}), ${shlibs:Depends}, ${gst:Depends}, ${misc:Depends}
+Description: GTK+ bindings and environment for GNU Smalltalk
+ This package contains the GTK+ bindings for GNU Smalltalk.
+ .
+ For more information on the browser see the gnu-smalltalk-browser package.
+
+Package: gnu-smalltalk-browser
+Architecture: any
+Depends: gnu-smalltalk (= ${binary:Version}), ${shlibs:Depends}, ${gst:Depends}, libgtk2-gst (= ${binary:Version}), ${misc:Depends}
+Replaces: gnu-smalltalk (<< 2.95h)
+Description: GNU Smalltalk browser
+ This package contains VisualGST, an Integrated Development Environment for
+ GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: zlib-gst
+Architecture: any
+Depends: gnu-smalltalk (= ${binary:Version}), ${shlibs:Depends}, ${gst:Depends}, ${misc:Depends}
+Description: Zlib bindings for GNU Smalltalk
+ This package contains the Zlib bindings for GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libexpat-gst
+Architecture: any
+Depends: gnu-smalltalk (= ${binary:Version}), ${shlibs:Depends}, ${gst:Depends}, ${misc:Depends}
+Description: Expat bindings for GNU Smalltalk
+ This package contains the Expat bindings for GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libsdl-gst
+Architecture: any
+Depends: gnu-smalltalk (= ${binary:Version}), ${shlibs:Depends}, ${gst:Depends}, ${misc:Depends}
+Description: SDL bindings for GNU Smalltalk
+ This package contains the SDL bindings for GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libsdl-image-gst
+Architecture: all
+Depends: gnu-smalltalk (>= 3.2.4), ${gst:Depends}, ${misc:Depends}
+Description: SDL_image bindings for GNU Smalltalk
+ This package contains the SDL_image bindings for GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libsdl-mixer-gst
+Architecture: all
+Depends: gnu-smalltalk (>= 3.2.4), ${gst:Depends}, ${misc:Depends}
+Description: SDL_mixer bindings for GNU Smalltalk
+ This package contains the SDL_mixer bindings for GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libsdl-sound-gst
+Architecture: all
+Depends: gnu-smalltalk (>= 3.2.4), ${gst:Depends}, ${misc:Depends}
+Description: SDL_sound bindings for GNU Smalltalk
+ This package contains the SDL_sound bindings for GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libsdl-ttf-gst
+Architecture: all
+Depends: gnu-smalltalk (>= 3.2.4), ${gst:Depends}, ${misc:Depends}
+Description: SDL_ttf bindings for GNU Smalltalk
+ This package contains the SDL_ttf bindings for GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
+
+Package: libgl-gst
+Architecture: any
+Depends: gnu-smalltalk (= ${binary:Version}), ${shlibs:Depends}, ${gst:Depends}, ${misc:Depends}
+Description: OpenGL bindings for GNU Smalltalk
+ This package contains the OpenGL bindings for GNU Smalltalk.
+ .
+ For more information on GNU Smalltalk see the gnu-smalltalk package.
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk-common.install
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk-common.install
@@ -0,0 +1,43 @@
+usr/share/gnu-smalltalk/Announcements.star
+usr/share/gnu-smalltalk/ClassPublisher.star
+usr/share/gnu-smalltalk/Compiler.star
+usr/share/gnu-smalltalk/Complex.star
+usr/share/gnu-smalltalk/Continuations.star
+usr/share/gnu-smalltalk/CParser.star
+usr/share/gnu-smalltalk/DBD-MySQL.star
+usr/share/gnu-smalltalk/DBI.star
+usr/share/gnu-smalltalk/DebugTools.star
+usr/share/gnu-smalltalk/DhbNumericalMethods.star
+usr/share/gnu-smalltalk/Digest.star
+usr/share/gnu-smalltalk/Glorp.star
+usr/share/gnu-smalltalk/GNUPlot.star
+usr/share/gnu-smalltalk/I18N.star
+usr/share/gnu-smalltalk/Iconv.star
+usr/share/gnu-smalltalk/Java.star
+usr/share/gnu-smalltalk/Magritte*.star
+usr/share/gnu-smalltalk/NetClients.star
+usr/share/gnu-smalltalk/Parser.star
+usr/share/gnu-smalltalk/ProfileTools.star
+usr/share/gnu-smalltalk/ROE.star
+usr/share/gnu-smalltalk/SUnit.star
+usr/share/gnu-smalltalk/SandstoneDb.star
+usr/share/gnu-smalltalk/Seaside*.star
+usr/share/gnu-smalltalk/Sport.star
+usr/share/gnu-smalltalk/Swazoo.star
+usr/share/gnu-smalltalk/Sockets.star
+usr/share/gnu-smalltalk/VFSAddOns.star
+usr/share/gnu-smalltalk/WebServer.star
+usr/share/gnu-smalltalk/XML-DOM.star
+usr/share/gnu-smalltalk/XML-ParserTests.star
+usr/share/gnu-smalltalk/XML-PullParser.star
+usr/share/gnu-smalltalk/XML-SAXDriver.star
+usr/share/gnu-smalltalk/XML-SAXParser.star
+usr/share/gnu-smalltalk/XML-XMLNodeBuilder.star
+usr/share/gnu-smalltalk/XML-XMLParser.star
+usr/share/gnu-smalltalk/XPath.star
+usr/share/gnu-smalltalk/XSL.star
+usr/share/gnu-smalltalk/packages.xml
+usr/share/gnu-smalltalk/kernel
+usr/share/gnu-smalltalk/scripts
+usr/share/gnu-smalltalk/examples
+usr/share/gnu-smalltalk/unsupported
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk.NEWS
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk.NEWS
@@ -0,0 +1,19 @@
+gnu-smalltalk (2.95h-1) experimental; urgency=low
+
+  gnu-smalltalk package was split again to use GNU Smalltalk new packaging
+  mechanism. Some of these SmallTalk ARchives (.star files) depend on
+  external packages and were therefore moved to their own package. For
+  instance, see the libsqlite3-gst package.
+
+  The GNU Smalltalk browser is no longer automatically installed; it's
+  in the gnu-smalltalk-browser package.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Tue, 25 Dec 2007 19:26:58 +0100
+ 
+gnu-smalltalk (2.3.3-1) experimental; urgency=low
+
+  gnu-smalltalk package was split into gnu-smalltalk, gnu-smalltalk-common
+  and gnu-smalltalk-el. The latter contains Emacs Smalltalk major mode and
+  does not get automatically installed.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Tue,  6 Mar 2007 19:21:17 +0000
--- gnu-smalltalk-3.2.4.orig/debian/libgl-gst.install
+++ gnu-smalltalk-3.2.4/debian/libgl-gst.install
@@ -0,0 +1,4 @@
+usr/share/gnu-smalltalk/OpenGL.star
+usr/share/gnu-smalltalk/GLUT.star
+usr/lib/gnu-smalltalk/gstopengl*.so
+usr/lib/gnu-smalltalk/gstglut*.so
--- gnu-smalltalk-3.2.4.orig/debian/libsqlite3-gst.install
+++ gnu-smalltalk-3.2.4/debian/libsqlite3-gst.install
@@ -0,0 +1,2 @@
+usr/share/gnu-smalltalk/DBD-SQLite.star
+usr/lib/gnu-smalltalk/dbd-sqlite3*.so
--- gnu-smalltalk-3.2.4.orig/debian/libsdl-mixer-gst.install
+++ gnu-smalltalk-3.2.4/debian/libsdl-mixer-gst.install
@@ -0,0 +1 @@
+usr/share/gnu-smalltalk/LibSDL_mixer.star
--- gnu-smalltalk-3.2.4.orig/debian/dh_fixstars
+++ gnu-smalltalk-3.2.4/debian/dh_fixstars
@@ -0,0 +1,124 @@
+#!/usr/bin/perl -w
+
+=head1 NAME
+
+dh_fixstars - fixes GNU Smalltalk archives (.star)
+
+=cut
+
+use strict;
+use File::Find;
+use Debian::Debhelper::Dh_Lib;
+use Dpkg::Arch qw(get_raw_host_arch debarch_to_multiarch);
+
+=head1 SYNOPSIS
+
+B<dh_fixstars> [S<I<debhelper options>>]
+
+=head1 DESCRIPTION
+
+dh_fixstars is a debhelper program that is responsible for fixing
+things when using .star files.
+
+Today, it creates missing symlinks for dlopen()'ed shared libraries
+so that the .star file work without the associated -dev package.
+
+For instance, NCurses.star loads libncurses.so
+
+=cut
+
+init();
+
+my $pwd = `pwd`;
+chomp $pwd;
+
+verbose_print("Loading shlibs...");
+my %shlibdata;
+
+open(SHLIBS, "cat /var/lib/dpkg/info/*.shlibs debian/shlibs.local debian/*/DEBIAN/shlibs 2> /dev/null |");
+
+while (<SHLIBS>) {
+    /(\S+)\s+(\S+)\s+(\w.*)\n?/;
+    $shlibdata{$1} = "$1.so.$2";
+}
+
+close(SHLIBS);
+
+foreach my $package (@{$dh{DOPACKAGES}}) {
+    my $tmp = tmpdir($package);
+
+    find(sub {
+	     return unless -f && !-l && /\.star$/;
+	     add_symlinks($tmp, $_);
+	 }, $tmp
+    );
+}
+
+sub path_to_shlib {
+    my $lib = shift;
+    my $multiarch_dir = debarch_to_multiarch(get_raw_host_arch());
+    my %dirs = (
+        "/lib/$lib"                    => "/lib/$lib",
+        "/usr/lib/$lib"                => "../$lib",
+        "/usr/lib/$multiarch_dir/$lib" => "../$multiarch_dir/$lib",
+        "/lib/$multiarch_dir/$lib"     => "/lib/$multiarch_dir/$lib"
+    );
+
+    # Found path; can be empty.
+    my $path;
+
+    while (my ($k, $v) = each(%dirs)) {
+        if (-e "$k") {
+            $path = "$v";
+            last;
+        }
+    }
+
+    return $path;
+}
+
+sub add_symlinks {
+    my $tmp = shift;
+    my $star_file = shift;
+
+    open(PACKAGEXML, "unzip -p $star_file package.xml |");
+
+    while(<PACKAGEXML>) {
+	chomp;
+
+	# Package that loads a library at runtime, with dlopen()
+	if (/<library>(\S+)<\/library>/) {
+	    my $sym = "$pwd/$tmp/usr/lib/gnu-smalltalk/$1.so";
+	    my $lib = $shlibdata{$1};
+
+	    if ($lib) {
+		my $target = path_to_shlib($lib);
+		if ($target) {
+		    doit("rm", "-f", "$sym");
+		    doit("mkdir", "-p", "$pwd/$tmp/usr/lib/gnu-smalltalk");
+		    doit("ln", "-s", "$target", "$sym");
+		    doit("chown", "--no-dereference", "0:0", "$sym");
+		} else {
+		    error("Can't find \"$lib\" (\"$1\" in \"$star_file\")!");
+		}
+
+	    } else {
+		error("Unknown library \"$1\" in \"$star_file\"!");
+	    }
+	}
+    }
+
+    close(PACKAGEXML);
+}
+
+=head1 SEE ALSO
+
+L<debhelper(7)>
+
+=head1 AUTHOR
+
+Thomas Girard <thomas.g.girard@free.fr>, heavily based on code from
+Mirco Bauer <meebey@meebey.net> and Eduard Bloch <blade@debian.org>
+for dh_clideps.
+
+=cut
--- gnu-smalltalk-3.2.4.orig/debian/gsticon.xpm
+++ gnu-smalltalk-3.2.4/debian/gsticon.xpm
@@ -0,0 +1,570 @@
+/* XPM */
+static char * gsticon_xpm[] = {
+"32 32 535 2",
+"  	c #FFFFFF",
+". 	c #CEDBEC",
+"+ 	c #89A9E1",
+"@ 	c #89ADDC",
+"# 	c #FBFCFF",
+"$ 	c #E4E9FF",
+"% 	c #DBE3FF",
+"& 	c #D8E1FF",
+"* 	c #EDE9EB",
+"= 	c #1E8997",
+"- 	c #68A3AA",
+"; 	c #D6E4FE",
+"> 	c #117F80",
+", 	c #00788A",
+"' 	c #000282",
+") 	c #E1EDFF",
+"! 	c #FEFFFF",
+"~ 	c #EEF0FF",
+"{ 	c #1C78D3",
+"] 	c #1C7BCF",
+"^ 	c #3A66FF",
+"/ 	c #90AAFE",
+"( 	c #F9F5F9",
+"_ 	c #92B1B1",
+": 	c #007D7C",
+"< 	c #015D7F",
+"[ 	c #00817B",
+"} 	c #8388B5",
+"| 	c #C9DBFA",
+"1 	c #4E85F0",
+"2 	c #4F86F0",
+"3 	c #CEDAF9",
+"4 	c #A3BCC2",
+"5 	c #00827E",
+"6 	c #006A6B",
+"7 	c #342633",
+"8 	c #9AA3C4",
+"9 	c #F5F6FF",
+"0 	c #4687E7",
+"a 	c #0F7EC5",
+"b 	c #5B82F1",
+"c 	c #02456C",
+"d 	c #6F90FF",
+"e 	c #67AFB8",
+"f 	c #0F7C9B",
+"g 	c #859AAB",
+"h 	c #00564A",
+"i 	c #000073",
+"j 	c #007484",
+"k 	c #26578F",
+"l 	c #758BCC",
+"m 	c #5E90F8",
+"n 	c #83A7F2",
+"o 	c #81828B",
+"p 	c #529083",
+"q 	c #000875",
+"r 	c #004F4B",
+"s 	c #FCFFFF",
+"t 	c #B0C9FC",
+"u 	c #1D6EB3",
+"v 	c #4C7FFC",
+"w 	c #336DB0",
+"x 	c #013651",
+"y 	c #2E5FC5",
+"z 	c #EEF2FF",
+"A 	c #7D8080",
+"B 	c #333129",
+"C 	c #040584",
+"D 	c #6B7694",
+"E 	c #5B64B4",
+"F 	c #50A8BA",
+"G 	c #00057F",
+"H 	c #008185",
+"I 	c #99A5E8",
+"J 	c #4074A0",
+"K 	c #569A94",
+"L 	c #00547D",
+"M 	c #3C346B",
+"N 	c #253A9B",
+"O 	c #E2F2FF",
+"P 	c #6081FF",
+"Q 	c #0273A9",
+"R 	c #4272F8",
+"S 	c #4476C6",
+"T 	c #003A5A",
+"U 	c #418AC8",
+"V 	c #EFF2FF",
+"W 	c #FEFEFF",
+"X 	c #79D1DA",
+"Y 	c #00353C",
+"Z 	c #7599B5",
+"` 	c #478D87",
+" .	c #436FAC",
+"..	c #939EC3",
+"+.	c #2D2B2E",
+"@.	c #969DBC",
+"#.	c #00707D",
+"$.	c #9EA0CB",
+"%.	c #018084",
+"&.	c #444283",
+"*.	c #00007F",
+"=.	c #7EACBE",
+"-.	c #DCECF2",
+";.	c #ACBDFF",
+">.	c #6388FE",
+",.	c #6287FF",
+"'.	c #3478F1",
+").	c #104C85",
+"!.	c #013752",
+"~.	c #2E71E0",
+"{.	c #ADB3D8",
+"].	c #000225",
+"^.	c #005F87",
+"/.	c #535252",
+"(.	c #030606",
+"_.	c #024242",
+":.	c #037C7C",
+"<.	c #004C85",
+"[.	c #5A938B",
+"}.	c #B9ACAC",
+"|.	c #388784",
+"1.	c #584748",
+"2.	c #07154C",
+"3.	c #C3D6DE",
+"4.	c #2870E9",
+"5.	c #3F7BEF",
+"6.	c #C4D1FC",
+"7.	c #137AC6",
+"8.	c #5178FF",
+"9.	c #5580EA",
+"0.	c #005479",
+"a.	c #14558B",
+"b.	c #3F9ADE",
+"c.	c #EFF1FF",
+"d.	c #071A95",
+"e.	c #000000",
+"f.	c #006C6C",
+"g.	c #F3F5FF",
+"h.	c #034A5F",
+"i.	c #3F8AB2",
+"j.	c #000104",
+"k.	c #04CDCC",
+"l.	c #058685",
+"m.	c #02003A",
+"n.	c #007B7B",
+"o.	c #6BA0CE",
+"p.	c #5B81FF",
+"q.	c #04578F",
+"r.	c #DBE6FF",
+"s.	c #B2BEFF",
+"t.	c #4F76FF",
+"u.	c #0D517D",
+"v.	c #023F58",
+"w.	c #6A91EB",
+"x.	c #DFE9FE",
+"y.	c #BAC1C3",
+"z.	c #B6B6BC",
+"A.	c #F5F7FF",
+"B.	c #447ED9",
+"C.	c #1280BD",
+"D.	c #678ED5",
+"E.	c #4754C8",
+"F.	c #5D514C",
+"G.	c #5A5251",
+"H.	c #7F9ADD",
+"I.	c #0667A6",
+"J.	c #2D88D5",
+"K.	c #0B517C",
+"L.	c #2D67AA",
+"M.	c #E0E5FF",
+"N.	c #7DB2E6",
+"O.	c #177EC7",
+"P.	c #6482FF",
+"Q.	c #0D5381",
+"R.	c #0B4768",
+"S.	c #5C89F9",
+"T.	c #F0F2FF",
+"U.	c #257ED6",
+"V.	c #117EB9",
+"W.	c #3883C6",
+"X.	c #01476C",
+"Y.	c #3071E0",
+"Z.	c #FDFDFD",
+"`.	c #6594E9",
+" +	c #276FDD",
+".+	c #5D85E0",
+"++	c #275BC9",
+"@+	c #8EBAF0",
+"#+	c #0E7FBF",
+"$+	c #3E76F3",
+"%+	c #5C83FF",
+"&+	c #14577F",
+"*+	c #005680",
+"=+	c #5C88F7",
+"-+	c #3A6FEA",
+";+	c #016AAC",
+">+	c #4E7BD6",
+",+	c #98AFAB",
+"'+	c #1323F3",
+")+	c #5E5FFE",
+"!+	c #BCBCFF",
+"~+	c #5252FF",
+"{+	c #5679F3",
+"]+	c #1A29F1",
+"^+	c #6C77EA",
+"/+	c #283EF1",
+"(+	c #2A51EB",
+"_+	c #A8BAD8",
+":+	c #4474C7",
+"<+	c #01354D",
+"[+	c #035F96",
+"}+	c #DDEEFD",
+"|+	c #3A6CE5",
+"1+	c #003463",
+"2+	c #01384F",
+"3+	c #0303FF",
+"4+	c #FBF4FE",
+"5+	c #0202FF",
+"6+	c #A0A0FF",
+"7+	c #0202FE",
+"8+	c #DEE2DB",
+"9+	c #0303FE",
+"0+	c #181FF4",
+"a+	c #6B91FF",
+"b+	c #1120F8",
+"c+	c #033E61",
+"d+	c #00496B",
+"e+	c #2F6CDA",
+"f+	c #DAEDF6",
+"g+	c #F8F9FF",
+"h+	c #4F83F5",
+"i+	c #0A6CB0",
+"j+	c #3751FE",
+"k+	c #0000FF",
+"l+	c #707BFD",
+"m+	c #D4D9E3",
+"n+	c #3E3FF2",
+"o+	c #CDCDE3",
+"p+	c #0D16DF",
+"q+	c #13201E",
+"r+	c #1014EE",
+"s+	c #09609D",
+"t+	c #9AADFF",
+"u+	c #FCFCFF",
+"v+	c #DBE2FF",
+"w+	c #8C8EFF",
+"x+	c #74748B",
+"y+	c #8988FF",
+"z+	c #6670FA",
+"A+	c #BDBDC0",
+"B+	c #2E33F4",
+"C+	c #C2C2BF",
+"D+	c #1A23FA",
+"E+	c #3D68DB",
+"F+	c #1524FD",
+"G+	c #B6C9FF",
+"H+	c #595DF5",
+"I+	c #2930FF",
+"J+	c #7878D7",
+"K+	c #8285FF",
+"L+	c #3B3EFF",
+"M+	c #B0B3E8",
+"N+	c #4343E8",
+"O+	c #5358FF",
+"P+	c #4949E6",
+"Q+	c #5056FF",
+"R+	c #FBFAFD",
+"S+	c #EFEFF3",
+"T+	c #FDFFFF",
+"U+	c #FFFFFA",
+"V+	c #FBFBFC",
+"W+	c #FDFDFA",
+"X+	c #FFFFFD",
+"Y+	c #F1F1F5",
+"Z+	c #FEFDFD",
+"`+	c #F3F2F5",
+" @	c #2E2CF6",
+".@	c #2222D6",
+"+@	c #D5D8DC",
+"@@	c #E6EDFF",
+"#@	c #3535ED",
+"$@	c #2249E7",
+"%@	c #3E3EEA",
+"&@	c #8D8FF5",
+"*@	c #2F3CF9",
+"=@	c #4E96CC",
+"-@	c #4072FF",
+";@	c #1C1CDA",
+">@	c #BCC2F8",
+",@	c #2D31D5",
+"'@	c #8AA0FF",
+")@	c #8AA5FF",
+"!@	c #1B62FF",
+"~@	c #E1E8FF",
+"{@	c #3636E4",
+"]@	c #A3B5F4",
+"^@	c #C5D0FE",
+"/@	c #717192",
+"(@	c #ADADCB",
+"_@	c #A8A8C7",
+":@	c #E5F6FF",
+"<@	c #B8B8B8",
+"[@	c #9EAFD8",
+"}@	c #CDCDBB",
+"|@	c #3F51FF",
+"1@	c #4575FF",
+"2@	c #6362FF",
+"3@	c #0102FF",
+"4@	c #3760FE",
+"5@	c #1A1AEC",
+"6@	c #C7D1EF",
+"7@	c #B2B2C4",
+"8@	c #99A2FF",
+"9@	c #0009FF",
+"0@	c #B1B4D0",
+"a@	c #698CFF",
+"b@	c #A8ADCC",
+"c@	c #0000F5",
+"d@	c #ECECD5",
+"e@	c #0707FF",
+"f@	c #667CFF",
+"g@	c #7E7ED5",
+"h@	c #6A6AF6",
+"i@	c #A4B9E5",
+"j@	c #5A5AD4",
+"k@	c #B9C8EE",
+"l@	c #3A4AFF",
+"m@	c #FAFAFF",
+"n@	c #6261FF",
+"o@	c #0606FC",
+"p@	c #8A9CF5",
+"q@	c #B1B1AD",
+"r@	c #8596FE",
+"s@	c #939EFF",
+"t@	c #7E83FF",
+"u@	c #6086FF",
+"v@	c #969AD7",
+"w@	c #AFB0CF",
+"x@	c #5B5AFF",
+"y@	c #7E98F1",
+"z@	c #B8B8C2",
+"A@	c #3D40FF",
+"B@	c #6D6D91",
+"C@	c #5353E8",
+"D@	c #909EFF",
+"E@	c #3C4DFF",
+"F@	c #C6C8FF",
+"G@	c #605FFF",
+"H@	c #2727F1",
+"I@	c #C7C7BD",
+"J@	c #8898FF",
+"K@	c #8888D2",
+"L@	c #8DAAFF",
+"M@	c #1414E8",
+"N@	c #969ADE",
+"O@	c #9191CF",
+"P@	c #FBF4FF",
+"Q@	c #9695D5",
+"R@	c #A9A9B8",
+"S@	c #CFC7F0",
+"T@	c #A2A0D9",
+"U@	c #9494D2",
+"V@	c #AAA7DF",
+"W@	c #9292CE",
+"X@	c #7E8EE9",
+"Y@	c #BCB3FE",
+"Z@	c #D2CAEE",
+"`@	c #B0ADE5",
+" #	c #9696CD",
+".#	c #C2BDF3",
+"+#	c #C2BDF5",
+"@#	c #9797CE",
+"##	c #9595D2",
+"$#	c #688CFF",
+"%#	c #0053FF",
+"&#	c #1763FF",
+"*#	c #7191FF",
+"=#	c #99B9FF",
+"-#	c #C9DAFF",
+";#	c #E6EBFF",
+">#	c #2799FF",
+",#	c #CDD4FF",
+"'#	c #256BFF",
+")#	c #3C7CFF",
+"!#	c #1D68FF",
+"~#	c #E2ECFF",
+"{#	c #5E92FF",
+"]#	c #DFE6FF",
+"^#	c #C8D0FF",
+"/#	c #316BFF",
+"(#	c #1160FF",
+"_#	c #D6E1FF",
+":#	c #C5D7FF",
+"<#	c #EAEFFF",
+"[#	c #CFDCFF",
+"}#	c #DAE4FF",
+"|#	c #F7F9FF",
+"1#	c #C5D8FF",
+"2#	c #EFF3FF",
+"3#	c #F1F7FC",
+"4#	c #D1DCFF",
+"5#	c #D6EEFF",
+"6#	c #E0E8FF",
+"7#	c #D8E3FF",
+"8#	c #538BFF",
+"9#	c #E5EBFF",
+"0#	c #D4E0FF",
+"a#	c #6988FF",
+"b#	c #C6D5FF",
+"c#	c #5D85FF",
+"d#	c #1461FF",
+"e#	c #3F7DFF",
+"f#	c #C3D5FC",
+"g#	c #A4BFFF",
+"h#	c #3778FF",
+"i#	c #DEE7FF",
+"j#	c #87A7FF",
+"k#	c #216AFF",
+"l#	c #69CAFF",
+"m#	c #D6E2FF",
+"n#	c #D9E2FF",
+"o#	c #CFEAFF",
+"p#	c #D4DEFF",
+"q#	c #E2E8FF",
+"r#	c #D2E1FF",
+"s#	c #4671FF",
+"t#	c #0F5BFF",
+"u#	c #317DFF",
+"v#	c #EFEFFF",
+"w#	c #C1D5FF",
+"x#	c #CBDCFF",
+"y#	c #396CFF",
+"z#	c #C6D5F8",
+"A#	c #E6EEFF",
+"B#	c #2467FF",
+"C#	c #53B9FF",
+"D#	c #CACCFF",
+"E#	c #E4EBFF",
+"F#	c #276BFF",
+"G#	c #5C92FF",
+"H#	c #2C70FF",
+"I#	c #83A2FC",
+"J#	c #89A8FC",
+"K#	c #B3C6FF",
+"L#	c #D3E2FF",
+"M#	c #DAE3FF",
+"N#	c #4873FF",
+"O#	c #E9EEFF",
+"P#	c #0E5BFF",
+"Q#	c #307DFF",
+"R#	c #F4F4FF",
+"S#	c #4583FF",
+"T#	c #C7D9FF",
+"U#	c #688EFF",
+"V#	c #F6F9FF",
+"W#	c #92AEFF",
+"X#	c #E3E4FF",
+"Y#	c #92B3F8",
+"Z#	c #E5ECFF",
+"`#	c #6282FF",
+" $	c #40AEFF",
+".$	c #286FFF",
+"+$	c #7393FF",
+"@$	c #3777FF",
+"#$	c #97ADFF",
+"$$	c #EBEBFF",
+"%$	c #A2CCFF",
+"&$	c #CADBFF",
+"*$	c #3677FF",
+"=$	c #6587FF",
+"-$	c #F9F8FF",
+";$	c #A9C7FF",
+">$	c #4574FF",
+",$	c #DEE6FF",
+"'$	c #3979FF",
+")$	c #3A78FF",
+"!$	c #7498FF",
+"~$	c #85A0FF",
+"{$	c #2166FF",
+"]$	c #A3BFFF",
+"^$	c #A3CCFF",
+"/$	c #266DFF",
+"($	c #D3DBFF",
+"_$	c #175EFF",
+":$	c #3C71FF",
+"<$	c #4675FF",
+"[$	c #3978FF",
+"}$	c #E8ECFF",
+"|$	c #427EFF",
+"1$	c #3F6EFF",
+"2$	c #EAEEFF",
+"3$	c #2168FF",
+"4$	c #D9E5FF",
+"5$	c #5987FF",
+"6$	c #AEBFFF",
+"7$	c #2778FF",
+"8$	c #5D93FF",
+"9$	c #638AFF",
+"0$	c #276EFF",
+"a$	c #B1D5FF",
+"b$	c #99BAFF",
+"c$	c #CEDDFF",
+"d$	c #A5C3FF",
+"e$	c #3A70FF",
+"f$	c #1D74FF",
+"g$	c #F3F3FF",
+"h$	c #236BFF",
+"i$	c #EAF1FF",
+"j$	c #3576FF",
+"k$	c #3D71FF",
+"l$	c #4180FF",
+"m$	c #A6C2FF",
+"n$	c #A3C1FF",
+"o$	c #D9E3FF",
+"p$	c #3167FF",
+"q$	c #AAD1FF",
+"r$	c #99C7FF",
+"s$	c #D7E4FF",
+"t$	c #C6D8FF",
+"u$	c #D1DFFF",
+"v$	c #D9EFFF",
+"w$	c #CFEBFF",
+"x$	c #D7E2FF",
+"y$	c #D8E5FF",
+"z$	c #CADAFF",
+"A$	c #FDFCFF",
+"B$	c #C4DBFF",
+"C$	c #C8DEFF",
+"D$	c #D0EBFF",
+"E$	c #DFE5FF",
+"F$	c #CCE0FF",
+"G$	c #D3F1FF",
+"H$	c #C7D8FF",
+"I$	c #F9FBFF",
+"J$	c #C2D6FF",
+"                                . + @ #           $ % &         ",
+"            * = -             ; > , ' )       ! ~ { ] ^ /       ",
+"        ( _ : < [ } | 1 2 3 4 5 6 7 8         9 0 a b c d       ",
+"  !   e f g h i j k l m n o p q r s         t u v w x y z       ",
+"    A B C D E F G H I J K L M N O !       P Q R S T U V W       ",
+"  X Y Z `  ...+.@.#.$.%.&.*.=.-.W     ;.>.,.'.).!.~.            ",
+"{.].^./.(._.:.<.[.}.|.1.2.3.4.5.    6.7.8.9.0.a.b.c.W           ",
+"  d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.  s.7.t.u.v.w.x.                ",
+"  y.z.A.B.C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R.S.                    ",
+"  W T.U.V.W.X.Y.Z.Z.`. +.+++@+#+$+%+&+*+=+                      ",
+"    -+;+>+,+'+)+!+~+{+]+^+/+(+_+:+<+[+}+                        ",
+"    |+1+2+3+4+5+6+7+8+9+0+a+b+c+d+e+f+g+                        ",
+"    h+i+j+k+W   l+m+n+o+p+q+r+s+t+  W                           ",
+"    u+v+w+x+y+k+z+A+B+C+D+E+F+G+                                ",
+"          H+I+J+K+L+M+N+O+P+Q+                                  ",
+"R+S+T+            U+V+W+X+  X+W   Y+Z+`+                        ",
+" @.@+@          @@#@$@%@&@*@=@  -@;@>@,@'@)@!@~@                ",
+"{@]@^@/@(@_@:@<@[@}@|@1@2@3@4@5@6@7@8@9@0@  a@                  ",
+"b@c@d@e@f@g@h@i@j@k@l@m@n@o@p@q@r@_@s@k+t@  u@                  ",
+"v@w@x@e@y@z@A@B@C@D@E@F@G@H@I@k+J@K@L@M@N@  u@                  ",
+"O@O@P@Q@R@S@T@U@V@W@X@W@Y@Z@`@ #.#W@+#@###  $#                  ",
+"                %#@@  &#  *#*#  =#-#;#>#,#  '#                  ",
+"              W   )#!#~#  {#{#  ]#]#  ^#/#(#                    ",
+"                                                                ",
+"    _#:#<#                  [#}#|#1#  2#3#      4#5#6#7#        ",
+"  8#9#0#a#                  b#c#  d#  e#f#      g#h#i#j#        ",
+"  k#;#  l#m#n#o#o#p#  q#r#  n#s#;#t#  u#v#  w#m@x#y#A.L@  z#    ",
+"  A#B#C#D#E#F#G#G#H#I#J#K#L#M#N#O#P#  Q#R#S#T#U#}#y#V#W#X#Y#    ",
+"    Z#`# $  .$+$+$@$#$$$%$&$M#N#O#P#  *$=$-$;$>$,$'$;#)$!$      ",
+"  ~$    {$  .$+$+$.$<#]$^$&$M#N#;#t#  /$($_$:$<$,$[$}$|$1$2$    ",
+"  3$4$5$6$9#7$8$9$0$a$^$b$c$d$e$  f$g$h$i$j$k$l$m$n$o$p$q$r$    ",
+"  s$1#t$  u$v$w$x$y$&$&$z$A$B$C$|#D$E$y$r#y$F$G$z$H$I$t$W J$    "};
--- gnu-smalltalk-3.2.4.orig/debian/libgdbm-gst.install
+++ gnu-smalltalk-3.2.4/debian/libgdbm-gst.install
@@ -0,0 +1,2 @@
+usr/share/gnu-smalltalk/GDBM.star
+usr/lib/gnu-smalltalk/gdbm*.so
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk-el.emacsen-remove
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk-el.emacsen-remove
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/gnu-smalltalk-el
+
+FLAVOR=$1
+PACKAGE=gnu-smalltalk-el
+
+if [ ${FLAVOR} != emacs ]; then
+    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk.links
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk.links
@@ -0,0 +1 @@
+usr/share/man/man1/gst-load.1.gz usr/share/man/man1/gst-reload.1.gz
--- gnu-smalltalk-3.2.4.orig/debian/changelog
+++ gnu-smalltalk-3.2.4/debian/changelog
@@ -0,0 +1,745 @@
+gnu-smalltalk (3.2.4-2) unstable; urgency=low
+
+  * debian/dh_fixstars: search for shared libraries in /lib and in multiarch
+    directories. Thanks to Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
+    for the bug report and the initial patch.
+  * Add build-depency on libncurses-dev. Closes: #646140.
+  * New packages:
+    o libexpat-gst: bindings to Expat XML parser
+    o libsdl-gst: bindings to SDL
+    o libsdl-image-gst: bindings to SDL_image
+    o libsdl-mixer-gst: bindings to SDL_mixer
+    o libsdl-sound-gst: bindings to SDL_sound
+    o libsdl-ttf-gst: bindings to SDL_ttf
+    o libgl-gst: bindings to OpenGL
+  * debian/rules: Don't fail if /proc/cpuinfo does not exist.
+  * debian/control: change to new Alioth URLs.
+  * debian/patches/05_emacsen.diff: use (debian-pkg-add-load-path-item).
+    Closes: #593651.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sun, 18 Dec 2011 23:30:34 +0100
+
+gnu-smalltalk (3.2.4-1) unstable; urgency=low
+
+  * New upstream release:
+    o patches/06_113bits_floats.diff: removed, no longer needed
+    o patches/07_raise_timeout.diff: removed, merged upstream
+    o patches/02_fix_overflow_detection_on_non_x86.diff: new patch
+      stolen from upstream, to fix DhbNumericalMethods test failure
+      on non x86 platforms.
+  * Install missing gnutls-wrapper binary into /usr/lib/gnu-smalltalk. As a
+    consequence, we now ship VFS helper scripts into /usr/lib/gnu-smalltalk.
+  * Build-depend on libgmp-dev instead of libgmp10-dev.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Mon, 28 Mar 2011 19:48:24 +0200
+
+gnu-smalltalk (3.2.3-3) unstable; urgency=low
+
+  * Woops! Really ignore testsuite failure.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Mon, 14 Mar 2011 20:47:30 +0100
+
+gnu-smalltalk (3.2.3-2) unstable; urgency=low
+
+  * upload to unstable.
+  * debian/control: build depend on libsigsegv-dev >= 2.9-2.
+  * debian/control: build depend on libgmp10-dev instead of libgmp3-dev.
+  * debian/patches/06_long_double_64.diff: dropped. It's not fixing anything.
+  * debian/patches/07_raise_timeout.diff: raise test timeout to 10 minutes.
+    Fixes SandstoneDb test on slow arches.
+  * debian/rules: print /proc/cpuinfo and /proc/meminfo
+    at the beginning of build.
+  * debian/patches/06_113bits_floats.diff: fix 113 bits float, taken from
+    upstream.
+  * debian/patches/99_autotools.diff: dropped; regenerate configure at build
+    time...
+  * debian/control: ... hence build-depend on autoconf, automake, libtool and
+    texinfo.
+  * debian/control: add Vcs-Git and Vcs-Browser information.
+  * debian/control: allow test failure for now.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sat, 12 Mar 2011 11:01:45 +0100
+
+gnu-smalltalk (3.2.3-1) experimental; urgency=low
+
+  * New upstream release; includes:
+    o removal of a bashism in vfs/urar. Closes: #581104.
+    o fix for pkglibdir variable in pkg-config template; hence remove
+      patch 06_pkglibdir.diff.
+    o add timeouts to tests so that the test suite can go further.
+    o new package Announcements.
+  * patches/03_rename_to_gnu_smalltalk.diff,
+    patches/90_rename_to_gnu_smalltalk_part2.diff: adapted to the release.
+  * patches/99_autotools.diff: regenerated.
+  * patches/06_long_double_64.diff: new patch to fix floating point on s390.
+  * Bump Standards-Version: to 3.9.1.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sun, 26 Dec 2010 19:05:58 +0100
+
+gnu-smalltalk (3.2-1) unstable; urgency=low
+
+  * New upstream release; includes:
+    o a new IDE, VisualGST. Previous IDE, BLOX, is disabled in Debian.
+    o a new tool, gst-profile.
+  * It's now possible to use system's libltdl. Closes: #566777.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sun, 02 May 2010 16:09:48 +0200
+
+gnu-smalltalk (3.1-6) unstable; urgency=low
+
+  * Fix compilation on Debian GNU/kFreeBSD. Thanks, Paolo!
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Wed, 21 Apr 2010 20:03:55 +0200
+
+gnu-smalltalk (3.1-5) unstable; urgency=low
+
+  * Integrate another fix from Paolo to fix compilation on amd64. Thanks to
+    Paolo for his help.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Tue, 20 Apr 2010 20:41:02 +0200
+
+gnu-smalltalk (3.1-4) unstable; urgency=low
+
+  * Apply upstream patch to really fix FTBFS. Thank, Paolo!
+    Closes: #577908.
+  * Bump Standards-Version: to 3.8.4.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sat, 17 Apr 2010 19:43:07 +0200
+
+gnu-smalltalk (3.1-3) unstable; urgency=low
+
+  * Move gnu-smalltalk-el to Section: lisp.
+  * Replace dh_clean -k with dh_prep.
+  * Add debian/patches/13_LP410263.diff to address LP#1410263.
+  * Backport commits:
+      482e75acb44fcf652f29f21bb541e4b00ad5ba52
+      3d09834cf13e5b21b99e53c18bdac6806de9f4ab
+      856dc0874f1c642afc36c0d0f3e5b4a15a0d318b
+    to fix FTBFS. Thanks to Paolo Bonzini for his help.
+    Closes: #571428.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sat, 13 Mar 2010 10:13:52 +0100
+
+gnu-smalltalk (3.1-2) unstable; urgency=low
+
+  * The "Merry Christmas" release.
+  * Upload to unstable.
+  * Switch Standards-Version: to 3.8.3.
+  * Switch debhelper dependency to 7.
+  * Fix bashism in VFS scripts. Thanks to Raphael Geissert for the report
+    and to Paolo Bonzini for the patch. Closes: #530090.
+  * Do not depend on libreadline5-dev anymore. Closes: #553768.
+  * Apply CVE-2009-3736 patch. Closes: #559809.
+  * Add missing ${misc:Depends} where needed.
+  * Use LIBTOOLIZE=/bin/true to prevent libtoolize from running when
+    autoreconf is invoked.
+  * Regenerate testsuite for bash 4.
+  * Add dependency on dpkg (>= 1.15.4) | install-info to gnu-smalltalk-doc.
+  * Add README.source.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Fri, 25 Dec 2009 15:14:31 +0100
+
+gnu-smalltalk (3.1-1) experimental; urgency=low
+
+  * New upstream release.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sat, 08 Nov 2008 15:51:44 +0100
+
+gnu-smalltalk (3.1~rc3-3) experimental; urgency=low
+
+  * Enhance debian/rules autotools target to make sure we can patch
+    config.h.in. Thanks to Petr Salinger for investigating this.
+    Closes: #497033.
+  * New patches, taken from upstream repository:
+    o 11_prevent_GC_collection.diff to (hopefully) fix alpha FTBFS
+    o 06_fix_SpTimestamp.diff to fix FTBFS on mipsel
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Tue, 16 Sep 2008 22:11:30 +0200
+
+gnu-smalltalk (3.1~rc3-2) experimental; urgency=low
+
+  * Cherry-pick upstream commits:
+    o 588f19886dfbd86a1f5ceb1a2f60a7b0e5ee1e37 disable generational GC on
+      GNU/k*BSD
+    o 5ac57768665324defed1c11b835a14496398afd2 work around the presence of
+      a sa_len field on BSD systems. Closes: #497033
+  * Print testsuite logs when it fails.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sat, 06 Sep 2008 10:51:03 +0200
+
+gnu-smalltalk (3.1~rc3-1) experimental; urgency=low
+
+  * New upstream release candidate.
+  * Merge changes from 3.0.2-3 on.
+  * New SmallTalk ARchive: CParser.star.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Mon, 18 Aug 2008 22:22:52 +0200
+
+gnu-smalltalk (3.1~rc1-4) experimental; urgency=low
+
+  * Build-Depends on libffi4-dev (>= 3.0.4) to prevent the virtual package
+    provided by libffi4-dev from being chosen on arches where libffi-dev
+    has not yet been built.
+  * Disable generational gc on alpha to fix FTBFS. Closes: #472482.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Tue, 25 Mar 2008 08:49:24 +0000
+
+gnu-smalltalk (3.1~rc1-3) experimental; urgency=low
+
+  * Build with libffi-dev instead of libffi4-dev.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sun, 23 Mar 2008 17:02:54 +0000
+
+gnu-smalltalk (3.1~rc1-2) experimental; urgency=low
+
+  * Add missing Seaside PORTING file to unbreak loading of virtual package
+    "Seaside".
+  * Mention ROE in gnu-smalltalk-common description.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Fri, 21 Mar 2008 19:00:35 +0000
+
+gnu-smalltalk (3.1~rc1-1) experimental; urgency=low
+
+  * New upstream release candidate. It includes:
+    o Swazoo HTTP server
+    o Seaside web application framework
+  * Adapt to this new release the following patches:
+    o 03_rename_to_gnu_smalltalk.diff
+    o 06_gst_system_libs.diff
+    o 09_rename_to_gnu_smalltalk_part2.diff
+    o 99_autotools.diff
+  * New patch, 10_fix_sqlite3_crash.diff, taken from upstream, to fix
+    SQLite3 bindings crash.
+  * Teach dh_stardeps to ignore <prereq> in <test>.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Thu, 20 Mar 2008 23:02:06 +0000
+
+gnu-smalltalk (3.0.3-2) unstable; urgency=medium
+
+  * Backport changeset c48a4e2 to fix bashism. Thanks to Raphael Geissert for
+    reporting this and to Paolo Bonzini for the fix. Closes: #489602.
+  * Bump Standards-Version: to 3.8.0.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sat, 12 Jul 2008 11:31:39 +0200
+
+gnu-smalltalk (3.0.3-1) unstable; urgency=low
+
+  * New upstream release.
+  * Drop no longer needed patches:
+    o 06_gst_system_libs.diff
+    o 10_fix_sqlite3_crash.diff
+    o 11_disable_generational_gc_on_alpha.diff
+  * Update the following patches:
+    o 03_rename_to_gnu_smalltalk.diff
+    o 90_rename_to_gnu_smalltalk_part2.diff
+    o 99_autotools.diff
+  * VFS helper scripts moved to /usr/share/gnu-smalltalk/vfs.
+  * Enable Emacs gst-mode autoloading with M-x gst again.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Wed, 14 May 2008 22:40:35 +0000
+
+gnu-smalltalk (3.0.2-4) unstable; urgency=low
+
+  * Move patch rename_to_gnu_smalltalk_part2.diff from position 09 to 90
+    to make sure it's applied before patch 99. We need to patch
+    tests/package.m4 *after* patching configure.ac. This should fix the
+    FTBFS seen on powerpc.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Tue, 25 Mar 2008 18:15:54 +0000
+
+gnu-smalltalk (3.0.2-3) unstable; urgency=low
+
+  * Change patch 06_gst_system_libs.diff so that it does not fail if there's
+    no pkg-config file for libffi. The same hunk was used for 3.1~rc1-3.
+  * Build-Depends on libffi4-dev (>= 3.0.4) to prevent the virtual package
+    provided by libffi4-dev from being chosen on arches where libffi-dev
+    has not yet been built.
+  * Disable generational gc on alpha to fix FTBFS.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Mon, 24 Mar 2008 19:56:02 +0000
+
+gnu-smalltalk (3.0.2-2) unstable; urgency=low
+
+  * Rebuild with libffi-dev instead of libffi4-dev. Add pkg-config build
+    dependency and adapt patch 06_gst_system_libs.diff to use it to find
+    ffi include path. Closes: #472149.
+  * Cherry pick changes applied in 3.1~rc1-1:
+    o New patch, 10_fix_sqlite3_crash.diff, taken from upstream, to fix
+      SQLite3 bindings crash.
+    o Teach dh_stardeps to ignore <prereq> in <test>.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sun, 23 Mar 2008 13:47:33 +0000
+
+gnu-smalltalk (3.0.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * New patch, 06_gst_system_libs.diff, to use system libffi and libsigsegv.
+    Taken from the upstream repo, it replaces the previous version. As a
+    consequence GNU Smalltalk is now dynamically linked against libffi4.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sat, 08 Mar 2008 20:38:32 +0000
+
+gnu-smalltalk (3.0.1-1) unstable; urgency=low
+
+  * New upstream release. Closes: #463586.
+  * Drop patch 10_ignore_alpha_float_failure.diff: it is integrated in 3.0.1.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Fri, 01 Feb 2008 22:57:26 +0000
+
+gnu-smalltalk (3.0-4) unstable; urgency=low
+
+  * Really fix alpha FTBFS.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sat, 19 Jan 2008 20:31:08 +0000
+
+gnu-smalltalk (3.0-3) unstable; urgency=low
+
+  * New patch, 10_ignore_alpha_float_failure.diff, to ignore failure of the
+    float unit test on alpha because of a math-emu module kernel bug. See
+    http://bugzilla.kernel.org/show_bug.cgi?id=9751 for more information on
+    this. Thanks to Paolo Bonzini for providing the patch.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sat, 19 Jan 2008 15:46:38 +0000
+
+gnu-smalltalk (3.0-2) unstable; urgency=low
+
+  * New patch, 08_blox_dont_save_image_on_start.diff, to prevent saving the
+    image after loading Browser starfile. Closes: #460461.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sun, 13 Jan 2008 16:15:40 +0000
+
+gnu-smalltalk (3.0-1) unstable; urgency=low
+
+  * New upstream release, uploaded to unstable.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Tue, 08 Jan 2008 00:18:30 +0000
+
+gnu-smalltalk (2.95h-3) experimental; urgency=low
+
+  * New patch, 09_rename_to_gnu_smalltalk_part2.diff, to really fix FTBFS.
+  * Fix Perl bugs in dh_stardeps revealed by build daemons. Change some
+    warning() calls into error() to avoid producing broken dependencies.
+  * Invoke dh_makestarlibs without `-a' in binary-arch: target. Some
+    Arch:any packages depend on an Arch:all package, so we have to make
+    sure the corresponding starlibs files are available.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sat, 05 Jan 2008 23:11:37 +0000
+
+gnu-smalltalk (2.95h-2) experimental; urgency=low
+
+  * Install packages.xml, and teach our debhelpers to use it.
+  * Add missing uzip VFS handler.
+  * New patch, 08_fix_postgresql.diff, to add a missing period in the
+    PostgreSQL DBI connector.
+  * Touch files that are modified by 07_blox_can_use_tk_or_gtk.diff to fix
+    FTBFS on many arches.
+  * Tighten build dependency on libsigsegv-dev.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Wed, 02 Jan 2008 19:55:41 +0100
+
+gnu-smalltalk (2.95h-1) experimental; urgency=low
+
+  [ Thomas Girard ]
+  * New patch: 06_use_system_libs to use our libffi4 and libsigsegv.
+  * Drop patch 02_bts398571.diff, it's no longer needed.
+  * Add Homepage: field.
+  * Bump Standards-Version: to 3.7.3.
+  * Build depend on system libsigsegv-dev and libffi4-dev.
+  * Add build-dependencies: libgdbm-dev, libgtk2.0-dev, libpq-dev,
+    libsqlite3-dev and zip.
+  * Don't ignore test suite results anymore.
+  * Rework descriptions.
+  * New libgst7 package, containing the VM shared library.
+  * New packages for .star packages with external library dependencies:
+    o libgdbm-gst
+    o libgtk2-gst
+    o libsqlite3-gst
+    o libncurses-gst
+    o libpostgresql-gst
+    o libtk-gst
+    o zlib-gst
+  * New package, gnu-smalltalk-browser, depending on Tk or Gtk user
+    interface.
+  * Compute .star dependencies with dh_makestarlibs and dh_stardeps. This
+    information is stored in .starlibs files.
+
+  [ Alexander Lazarević ]
+  * New upstream release.
+  * Enable Gtk bindings.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Tue, 25 Dec 2007 19:26:58 +0100
+
+gnu-smalltalk (2.3.6-2) unstable; urgency=low
+
+  * Fix smalltalk-mode association with .st files. Thanks to Trent W. Buck
+    for reporting this and providing a patch. Closes: #446171.
+  * Ignore the test suite results for now.
+  * New patches, taken from Fedora extras repository:
+    o 06_fix_vfs.diff to lazy initialize the VFS registry.
+    o 07_same_arch_all_info.diff, to make sure generated info files are not
+      arch dependent.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sun, 28 Oct 2007 10:59:29 +0000
+
+gnu-smalltalk (2.3.6-1) unstable; urgency=low
+
+  * New upstream release.
+  * Remove tighten build-dependency on dpkg-dev; it's no longer needed now.
+  * Add libgdbm-dev and libz-dev build-dependencies so that the GNU Smalltalk
+    bindings get generated.
+  * Correct gst-blox.1 symlink.
+  * Update menu entries to use Applications section instead of Apps.
+  * Do not ignore make clean error.
+  * Make gnu-smalltalk-el depend on emacs instead of emacs21.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sun, 30 Sep 2007 17:21:57 +0000
+
+gnu-smalltalk (2.3.5-1) unstable; urgency=low
+
+  * New upstream release.
+  * Update patches 03_rename_to_gnu_smalltalk.diff and
+    99_autotools.diff.
+  * Fix the packages.xml that was not correctly modified to remove the need
+    for .la files.
+  * Drop patch 06_fix_geometry_test.diff, it's no longer needed.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sun, 03 Jun 2007 16:55:13 +0000
+
+gnu-smalltalk (2.3.4-2) unstable; urgency=low
+
+  * Woops! We also need to rename `smalltalk' to `gnu-smalltalk' in
+    `tests/package.m4' before this file gets regenerated. Update patch
+    03_rename_to_gnu_smalltalk.diff and touch the testsuite to fix the
+    FTBFS. Closes: #426510.
+  * New patch, 06_fix_geometry_test.diff, taken from upstream, to fix
+    failure in the geometry.st test.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Tue, 29 May 2007 12:31:05 +0000
+
+gnu-smalltalk (2.3.4-1) unstable; urgency=low
+
+  * New upstream release.
+  * Revert the -mieee change on alpha; it did not fix the FTBFS.
+  * Drop no longer needed patches:
+    o 06_fix_socket_nextHunk.diff,
+    o 07_fix_DESTDIR_in_image.diff,
+    o 08_fix_binomial_infinite_loop.diff,
+    o 09_fix_interval_calls.diff,
+    o 10_add_missing_ffi_files.diff,
+    o 11_add_missing_exclamation.diff,
+    o 12_ia64_ftbfs.diff,
+    o 13_s390_ftbfs.diff
+    and remove no longer needed touch calls.
+  * Repair the autotools: target and regenerate patch 99_autotools.diff.
+  * Update patches 02_bts398571.diff and 03_rename_to_gnu_smalltalk.diff to
+    this release.
+  * Add SUnit framework to gnu-smalltalk-common package.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Mon, 28 May 2007 16:25:53 +0000
+
+gnu-smalltalk (2.3.3-6) unstable; urgency=low
+
+  * Build with -mieee on alpha to fix FTBFS. Thanks to Paolo Bonzini for
+    suggesting this.
+  * Don't export DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE from debian/rules.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Fri, 20 Apr 2007 08:29:59 +0000
+
+gnu-smalltalk (2.3.3-5) unstable; urgency=low
+
+  * Do not unpatch if it's not needed. Should fix FTBFS on machines that use
+    sudo.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Wed, 18 Apr 2007 19:45:43 +0000
+
+gnu-smalltalk (2.3.3-4) unstable; urgency=low
+
+  * New patch from upstream, 13_s390_ftbfs.diff, to fix FTBFS on s390.
+    Thanks to Paolo Bonzini for being so fast in fixing this.
+    Closes: #419582. 
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Mon, 16 Apr 2007 20:52:20 +0000
+
+gnu-smalltalk (2.3.3-3) unstable; urgency=low
+
+  * New patches taken from upstream:
+    o 08_fix_binomial_infinite_loop.diff: fixes infinite loop on #binomial:
+      when argument is 0.
+    o 09_fix_interval_calls.diff: fixes calls to #interval.
+    o 11_add_missing_exclamation.diff: adds a missing ! in Float.st
+  * New patches to fix FTBFS on ia64:
+    o 10_add_missing_ffi_files.diff: adds missing ffi files for ia64 and pa
+      archs. Closes: #415637.
+    o 12_ia64_ftbfs.diff: upstream patch to fix additionnal issues on ia64.
+  * Use debian/compat instead of DH_COMPAT.
+  * Upload to unstable.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Fri, 13 Apr 2007 16:42:32 +0000
+
+gnu-smalltalk (2.3.3-2) experimental; urgency=low
+
+  * debian/patches/06_fix_socket_nextHunk.diff: upstream patch to fix bug
+    in socket #nextHunk.
+  * debian/patches/07_fix_DESTDIR_in_image.diff: upstream patch to fix paths
+    in image file.
+  * debian/rules: prevent regeneration of info files because of patch 06.
+    Thanks to Daniel Baumann for reporting.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Sun, 11 Mar 2007 18:28:02 +0000
+
+gnu-smalltalk (2.3.3-1) experimental; urgency=low
+
+  * New maintainer team. Closes: #375649.
+  * New upstream release. Closes: #301573.
+  * Apply patch from Petr Salinger to fix FTBFS on GNU/kFreeBSD.
+    Closes: #398571.
+  * Bump debhelper compat to 5.
+  * Bump Standards-Version: to 3.7.2.
+  * gnu-smalltalk-common: new arch-indep package. Closes: #233365.
+  * gnu-smalltalk-el: fixes emacs issues. Closes: #307238, #297113.
+  * Removed from package: *.h, *.a unsupported/ and examples/ subdirs.
+  * Add missing info files. Closes: #306045.
+  * Switch to tk8.4. Closes: #356043.
+  * Fix conflict version for gnu-smalltalk-doc.
+  * Remove bison and devscripts from build dependencies.
+  * Drop unneeded maintainer scripts.
+  * Compilation and test pass on amd64 and sparc. Thanks to nowhere_man
+    and Toadstool for testing. Closes: #255416.
+
+ -- Thomas Girard <thomas.g.girard@free.fr>  Tue,  6 Mar 2007 19:54:31 +0000
+
+gnu-smalltalk (2.1.8-2.1) unstable; urgency=low
+
+  * Build with libreadline5-dev.  Closes: #326355
+
+ -- LaMont Jones <lamont@debian.org>  Tue, 11 Apr 2006 16:47:20 -0600
+
+gnu-smalltalk (2.1.8-2) unstable; urgency=low
+
+  * Applied possible fix from upstream for FTBFS bug
+
+ -- Brett Cundal <bcundal@cundal.net>  Mon, 26 Jul 2004 08:35:20 -0700
+
+gnu-smalltalk (2.1.8-1) unstable; urgency=low
+
+  * New upstream release
+  * Fixed malformed entries in gnu-smalltalk.menu
+
+ -- Brett Cundal <bcundal@cundal.net>  Wed, 14 Jul 2004 08:24:32 -0700
+
+gnu-smalltalk (2.1.7-2) unstable; urgency=low
+
+  * Replaced test for long double offset which was failing on 64 bit
+    archs
+  * Added smalltalk-mode.el and gst-mode.el to package
+
+ -- Brett Cundal <bcundal@cundal.net>  Fri,  4 Jun 2004 15:16:17 -0700
+
+gnu-smalltalk (2.1.7-1) unstable; urgency=low
+
+  * New upstream release
+  * Updated debian/watch for new uscan format
+  * Disabled compilation of GTK bindings
+  * Removed (s) from copyright
+  * Made symlink for gst-blox manpage
+  * Made vfs plugins and gst.im executable
+  * Added lintian override for gst.im not passing shell syntax check
+
+ -- Brett Cundal <bcundal@cundal.net>  Tue, 24 Feb 2004 16:14:45 -0800
+
+gnu-smalltalk (2.1.5-1) unstable; urgency=low
+
+  * New upstream release
+  * Update to debian standards version 3.6.1.0
+  
+ -- Brett Cundal <bcundal@cundal.net>  Mon, 27 Oct 2003 12:11:28 -0800
+
+gnu-smalltalk (2.1.4-2) unstable; urgency=low
+
+  * Update to debian standards version 3.6.0
+
+ -- Brett Cundal <bcundal@cundal.net>  Tue, 29 Jul 2003 10:10:54 -0700
+
+gnu-smalltalk (2.1.4-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Brett Cundal <bcundal@cundal.net>  Wed, 16 Jul 2003 08:17:44 -0700
+
+gnu-smalltalk (2.1.2-2) unstable; urgency=low
+
+  * Updated debian standards version
+  * Removed /usr/include/sigsegv.h (Closes: #197681)
+
+ -- Brett Cundal <bcundal@cundal.net>  Wed, 18 Jun 2003 08:50:56 -0700
+
+gnu-smalltalk (2.1.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Silenced gc messages for gst-blox
+
+ -- Brett Cundal <bcundal@cundal.net>  Sat, 10 May 2003 13:41:50 -0700
+
+gnu-smalltalk (2.1.1-2) unstable; urgency=low
+
+  * Removed redundant binary stripping
+
+ -- Brett Cundal <bcundal@cundal.net>  Tue, 29 Apr 2003 08:39:21 -0700
+
+gnu-smalltalk (2.1.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Brett Cundal <bcundal@cundal.net>  Fri, 25 Apr 2003 16:26:41 -0700
+
+gnu-smalltalk (2.1-1) unstable; urgency=low
+
+  * New upstream release
+  * Updated standards version
+    - Fix default compilation options
+    - Support DEB_BUILD_OPTIONS
+    - Remove (unused) dh_undocumented call
+
+ -- Brett Cundal <bcundal@cundal.net>  Fri, 11 Apr 2003 09:07:00 -0700
+
+gnu-smalltalk (2.0.11-0.2) unstable; urgency=low
+
+  * Revert relocation of examples in NMU
+  * Merge other changes from NMU
+
+ -- Brett Cundal <bcundal@cundal.net>  Wed, 10 Apr 2002 21:33:02 -0700
+
+gnu-smalltalk (2.0.11-0.1) unstable; urgency=low
+
+  * NMU for Brett Cundal.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Wed, 12 Feb 2003 22:30:56 -0800
+
+gnu-smalltalk (2.0.8-0pre1) unstable; urgency=low
+
+  * New maintainer
+  * Repackaged new upstream version mostly from scratch
+
+ -- Brett Cundal <bcundal@cundal.net>  Wed, 10 Apr 2002 21:33:02 -0700
+  
+gnu-smalltalk (2.0.6-2) unstable; urgency=low
+
+  * Correct build error with Tk versioning.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sun, 29 Sep 2002 22:01:09 -0700
+
+gnu-smalltalk (2.0.6-1) unstable; urgency=low
+
+  * New upstream.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Sat, 28 Sep 2002 23:19:52 -0700
+
+gnu-smalltalk (2.0.3-1) unstable; urgency=low
+
+  * New upstream.
+
+ -- Brent A. Fulgham <bfulgham@debian.org>  Fri, 13 Sep 2002 23:04:57 -0700
+
+gnu-smalltalk (1.95.13a-2) unstable; urgency=low
+
+  * Debian QA upload.
+  * Fix override disparity:
+    gnu-smalltalk: priority is overridden from optional to extra.
+    gnu-smalltalk-doc: section is overridden from interpreters to doc.
+    gnu-smalltalk-doc: priority is overridden from optional to extra.
+
+ -- Peter Palfrader <weasel@debian.org>  Sat, 20 Jul 2002 07:49:56 +0200
+
+gnu-smalltalk (1.95.13a-1) unstable; urgency=low
+
+  * Orphaning the package for Debian QA as Alex seems to be AWOL/MIA.
+    - setting maintainer to QA.
+  * Fixed build depends syntax (Closes: #153635)
+
+ -- Peter Palfrader <weasel@debian.org>  Sat, 20 Jul 2002 06:51:56 +0200
+
+gnu-smalltalk (1.95.13a-0) unstable; urgency=low
+
+  * NMU
+  * New upstream version (Closes: #133662, #137342, #81855)
+  * Add appropriate build-depends (Closes: #143474)
+  * Fix examples symlink (Closes: #145810)
+  * Make sure blox-tk gets built (which was the point of this exercise)
+
+ -- Anders Hammarquist <iko@debian.org>  Sun,  5 May 2002 21:45:36 +0200
+
+gnu-smalltalk (1.95.8-2) unstable; urgency=low
+
+  * NMU
+  * debian/rules:
+  - hack to make config.{sub,guess} executable (Closes: #128347)
+  - remove the info dir from the gnu-smalltalk package
+
+ -- Gustavo Noronha Silva <kov@debian.org>  Wed,  9 Jan 2002 00:43:19 -0200
+
+gnu-smalltalk (1.95.8-1) unstable; urgency=low
+
+  * NMU
+  * New upstream version (Closes: #97594)
+  * debian/rules:
+  - changed a few things, added the configure target, moved the
+    $(MAKE) install thing to the install target
+  - changed references to docs to doc
+  - link usr/share/smalltalk/examples to usr/share/doc/smalltalk/examples
+    (Closes: #83286)
+  - added -i and -a switches to force building the right thing...
+    (Closes: #87204)
+  - removed dh_testversion
+  - changed manpages and info instalation directories
+  * debian/gnu-smalltalk-doc.info:
+  - changed docs -> doc
+  * debian/*:
+  - removed remaining *.ex files
+  * this package should be compiled correctly on m68k now, the
+    offending function was removed (Closes: #67539)
+  * i18n/Makefile.am:
+  - quick and dirty (argh!) hack to let the package build, for the
+    maintainer who'll take care of this: fix this, please =)
+  * no longer depends on libltdl0 (Closes: #98111)
+  * debian/control:
+  - added build depends on debhelper >> 1.1.17
+  * debian/docs:
+  - removed INSTALL
+
+ -- Gustavo Noronha Silva <kov@debian.org>  Sun,  6 Jan 2002 13:28:00 -0200
+
+gnu-smalltalk (1.8.1-1) unstable; urgency=low
+
+  * Upgrading to 1.8.1 after long hiatus.  Re-package from scratch.
+  * Added tcp module.
+  * Added gst-blox script to launch from WM menus (Bug#45180).
+
+ -- Alex Shinn <foof@debian.org>  Sun,  9 Jul 2000 17:52:40 -0500
+
+gnu-smalltalk (1.6.1-2) unstable; urgency=low
+
+  * Split apart the documentation into gnu-smalltalk-doc
+  * Removed the reference to dprintf for glibc 2.0 compatibility (Bug#40611)
+  * Added X11 (Blox) support until modules are ready
+  * Added menu and dhelp entries
+
+ -- Alexander Shinn <foof@debian.org>  Sat, 24 Jul 1999 20:09:01 -0500
+
+gnu-smalltalk (1.6.1-1) unstable; urgency=low
+
+  * Upgraded to 1.6.1
+
+ -- Alexander Shinn <foof@debian.org>  Mon, 28 Jun 1999 22:23:50 -0500
+
+gnu-smalltalk (1.5.3-2) unstable; urgency=low
+
+  * Fixed installation of info files.
+  * Fixed search path for st files.
+
+ -- Alexander Shinn <foof@debian.org>  Mon, 28 Jun 1999 22:23:05 -0500
+
+gnu-smalltalk (1.5.3-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Alexander Shinn <foof@debian.org>  Thu, 27 May 1999 20:51:38 -0500
--- gnu-smalltalk-3.2.4.orig/debian/libsdl-image-gst.install
+++ gnu-smalltalk-3.2.4/debian/libsdl-image-gst.install
@@ -0,0 +1 @@
+usr/share/gnu-smalltalk/LibSDL_image.star
--- gnu-smalltalk-3.2.4.orig/debian/libsdl-sound-gst.install
+++ gnu-smalltalk-3.2.4/debian/libsdl-sound-gst.install
@@ -0,0 +1 @@
+usr/share/gnu-smalltalk/LibSDL_sound.star
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk-browser.menu
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk-browser.menu
@@ -0,0 +1,6 @@
+?package(gnu-smalltalk-browser):\
+  needs="X11"\
+  section="Applications/Programming"\
+  title="GNU Smalltalk Browser"\
+  command="/usr/bin/gst-browser"\
+  icon="/usr/share/pixmaps/gsticon.xpm"
--- gnu-smalltalk-3.2.4.orig/debian/libsdl-ttf-gst.install
+++ gnu-smalltalk-3.2.4/debian/libsdl-ttf-gst.install
@@ -0,0 +1 @@
+usr/share/gnu-smalltalk/LibSDL_ttf.star
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk-el.emacsen-install
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk-el.emacsen-install
@@ -0,0 +1,39 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/gnu-smalltalk-el
+
+# Written by Jim Van Zandt <jrv@vanzandt.mv.com>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
+
+FLAVOR=$1
+PACKAGE=gnu-smalltalk-el
+
+if [ ${FLAVOR} = emacs ]; then exit 0; fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+FLAVORTEST=`echo $FLAVOR | cut -c-6`
+if [ ${FLAVORTEST} = xemacs ] ; then
+    SITEFLAG="-no-site-file"
+else
+    SITEFLAG="--no-site-file"
+fi
+FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+
+install -m 755 -d ${ELCDIR}
+cd ${ELDIR}
+FILES=`echo *.el`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path))
+(setq byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el
+
+exit 0
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk-doc.info
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk-doc.info
@@ -0,0 +1 @@
+debian/tmp/usr/share/info/gst*.info*
--- gnu-smalltalk-3.2.4.orig/debian/dh_stardeps
+++ gnu-smalltalk-3.2.4/debian/dh_stardeps
@@ -0,0 +1,146 @@
+#!/usr/bin/perl -w
+
+=head1 NAME
+
+dh_stardeps - calculates GNU Smalltalk archives (.star) dependencies
+
+=cut
+
+use strict;
+use File::Find;
+use Debian::Debhelper::Dh_Lib;
+
+=head1 SYNOPSIS
+
+B<dh_stardeps> [S<I<debhelper options>>]
+
+=head1 DESCRIPTION
+
+dh_stardeps is a debhelper program that is responsible for generating the
+${gst:Depends} substitutions and adding them to substvars files.
+
+The program wil look at .star files in your package, and will use the
+dependency information generated by dh_makestarlibs to compute the
+${gst:Depends} variable.
+
+=cut
+
+init();
+
+verbose_print("Loading starlibs...");
+my %starlibdata;
+
+open(STARLIBS, "cat /var/lib/dpkg/info/*.starlibs debian/*/DEBIAN/starlibs 2> /dev/null |");
+
+while (<STARLIBS>) {
+    /(\S+)\s+(\w.*)\n?/;
+    $starlibdata{$1} = $2;
+}
+
+close(STARLIBS);
+
+verbose_print("Loading shlibs...");
+my %shlibdata;
+
+open(SHLIBS, "cat /var/lib/dpkg/info/*.shlibs debian/shlibs.local debian/*/DEBIAN/shlibs 2> /dev/null |");
+
+while (<SHLIBS>) {
+    /(\S+)\s+(\S+)\s+(\w.*)\n?/;
+    $shlibdata{$1} = $3;
+}
+
+close(SHLIBS);
+
+foreach my $package (@{$dh{DOPACKAGES}}) {
+    my $tmp = tmpdir($package);
+    my @depends = ();
+
+    # for idempotency
+    delsubstvar($package, "gst:Depends");
+
+    find(sub {
+	     return unless -f && !-l && /\.star$/;
+	     my $file = $_;
+	     push(@depends, resolve_starlib_ref($package, $file));
+	 }, $tmp
+    );
+
+    @depends = unique(@depends);
+
+    addsubstvar($package, "gst:Depends", join(", ", @depends));
+}
+
+sub resolve_starlib_ref {
+    my $package = shift;
+    my $star_file = shift;
+    my @deps = ();
+    my $in_test = 0;
+
+    open(PACKAGEXML, "unzip -p $star_file package.xml |");
+
+    while(<PACKAGEXML>) {
+	chomp;
+
+	if (/<test>/) {
+	    $in_test = 1;
+	} elsif (/<\/test>/) {
+	    $in_test = 0;
+	}
+
+	# Handle prereq packages -- but not for tests
+	elsif (/<prereq>(\S+)<\/prereq>/ and not $in_test) {
+	    my $dep = $starlibdata{$1};
+
+	    if ($dep) {
+		if ($dep !~ m/^$package(?:\s+.+)?$/) {
+		    push(@deps, $dep);
+		}
+	    } else {
+		error("Unknown dependency \"$1\" in \"$star_file\"!");
+	    }
+
+	# Package with unit tests; depends on SUnit. This dependency might
+	# already be captured, but we'll remove duplicates later.
+	} elsif (/<sunit>/) {
+	    if (exists($starlibdata{"SUnit"})) {
+		# Only if this is not the package containing SUnit already
+		if ($starlibdata{"SUnit"} !~ m/^$package(?:\s+.+)?$/) {
+		    push(@deps, $starlibdata{"SUnit"});
+		}
+	    } else {
+		warning("Unable to store SUnit dependency for \"$star_file\"");
+	    }
+
+	# Package that loads a library at runtime, with dlopen()
+	} elsif (/<library>(\S+)<\/library>/) {
+	    my $lib = $shlibdata{$1};
+
+	    if ($lib) {
+		push(@deps, $lib);
+	    } else {
+		error("Unknown library dependency \"$1\" in \"$star_file\"!");
+	    }
+	}
+    }
+
+    close(PACKAGEXML);
+
+    return @deps;
+}
+
+sub unique {
+    my %seen = ();
+    return grep(!$seen{$_}++, @_);
+}
+
+=head1 SEE ALSO
+
+L<debhelper(7)>
+
+=head1 AUTHOR
+
+Thomas Girard <thomas.g.girard@free.fr>, heavily based on code from
+Mirco Bauer <meebey@meebey.net> and Eduard Bloch <blade@debian.org>
+for dh_clideps.
+
+=cut
--- gnu-smalltalk-3.2.4.orig/debian/README.source
+++ gnu-smalltalk-3.2.4/debian/README.source
@@ -0,0 +1,10 @@
+GNU Smalltalk for Debian
+------------------------
+
+ This packages relies on quilt to patch sources.
+
+ Please read /usr/share/doc/quilt/README.source for information
+ on how to use quilt.
+
+ An noteworthy step in the compilation process: the package is renamed
+ from `smalltalk' to `gnu-smalltalk'.
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk-browser.install
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk-browser.install
@@ -0,0 +1,2 @@
+usr/share/gnu-smalltalk/VisualGST.star
+usr/bin/gst-browser
--- gnu-smalltalk-3.2.4.orig/debian/compat
+++ gnu-smalltalk-3.2.4/debian/compat
@@ -0,0 +1 @@
+7
--- gnu-smalltalk-3.2.4.orig/debian/libgst7.install
+++ gnu-smalltalk-3.2.4/debian/libgst7.install
@@ -0,0 +1 @@
+usr/lib/libgst.so.*
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk-browser.links
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk-browser.links
@@ -0,0 +1 @@
+usr/share/man/man1/gst.1.gz usr/share/man/man1/gst-browser.1.gz
--- gnu-smalltalk-3.2.4.orig/debian/libncurses-gst.install
+++ gnu-smalltalk-3.2.4/debian/libncurses-gst.install
@@ -0,0 +1 @@
+usr/share/gnu-smalltalk/NCurses.star
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk.install
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk.install
@@ -0,0 +1,33 @@
+usr/bin/gst
+usr/bin/gst-convert
+usr/bin/gst-doc
+usr/bin/gst-load
+usr/bin/gst-package
+usr/bin/gst-profile
+usr/bin/gst-reload
+usr/bin/gst-remote
+usr/bin/gst-sunit
+usr/lib/gnu-smalltalk/gnutls-wrapper
+usr/lib/gnu-smalltalk/gst.im
+usr/lib/gnu-smalltalk/vfs/utar
+usr/lib/gnu-smalltalk/vfs/ulha
+usr/lib/gnu-smalltalk/vfs/lslR
+usr/lib/gnu-smalltalk/vfs/deb
+usr/lib/gnu-smalltalk/vfs/urar
+usr/lib/gnu-smalltalk/vfs/mailfs
+usr/lib/gnu-smalltalk/vfs/uzoo
+usr/lib/gnu-smalltalk/vfs/patchfs
+usr/lib/gnu-smalltalk/vfs/uar
+usr/lib/gnu-smalltalk/vfs/ucpio
+usr/lib/gnu-smalltalk/vfs/uzip
+usr/share/man/man1/gst.1
+usr/share/man/man1/gst-convert.1
+usr/share/man/man1/gst-doc.1
+usr/share/man/man1/gst-load.1
+usr/share/man/man1/gst-package.1
+usr/share/man/man1/gst-profile.1
+usr/share/man/man1/gst-sunit.1
+usr/lib/gnu-smalltalk/digest*.so
+usr/lib/gnu-smalltalk/i18n*.so
+usr/lib/gnu-smalltalk/iconv*.so
+usr/lib/gnu-smalltalk/libc.la
--- gnu-smalltalk-3.2.4.orig/debian/rules
+++ gnu-smalltalk-3.2.4/debian/rules
@@ -0,0 +1,158 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+QUILT_STAMPFN = patch-stamp
+include /usr/share/quilt/quilt.make
+
+DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+  confflags += --build $(DEB_HOST_GNU_TYPE)
+else
+  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+endif
+
+myCFLAGS = -Wall -g
+
+# Support for noopt in DEB_BUILD_OPTIONS
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+myCFLAGS += -O0
+else
+myCFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp: patch-stamp
+	dh_testdir
+	autoreconf -vi
+
+	cp -f /usr/share/misc/config.sub build-aux/config.sub
+	cp -f /usr/share/misc/config.guess build-aux/config.guess
+	# Commands to configure the package.
+	./configure $(confflags) \
+                    --prefix=/usr --libexecdir='$${prefix}/lib' \
+                    --with-imagedir=/usr/lib/gnu-smalltalk \
+		    --enable-gtk=yes \
+		    --with-lispstartdir \
+		    --without-emacs \
+		    --with-system-libffi \
+		    --with-system-libsigsegv \
+		    --with-system-libltdl \
+		    --disable-relocatable \
+                    CFLAGS="$(myCFLAGS)"
+	# Get some info about the cpu and memory
+	-cat /proc/cpuinfo /proc/meminfo
+	touch $@
+
+build: build-stamp
+
+build-stamp: configure-stamp
+	dh_testdir
+	$(MAKE)
+	-$(MAKE) -k check
+	find tests/testsuite.dir -name "*.log" | xargs cat /dev/null
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp debian/gnu-smalltalk-el.emacsen-startup
+
+	# Commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) distclean
+
+	-test -f patch-stamp && $(MAKE) -f debian/rules unpatch
+
+	rm -rf config.log libgst/gst.output
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+	# We'll recreate this symlink
+	rm -f debian/tmp/usr/share/man/man1/gst-reload.1
+
+	# We don't install this one
+	rm -f debian/tmp/usr/share/gnu-smalltalk/examples/shell
+
+	# copy the icon
+	cp debian/gsticon.xpm debian/gnu-smalltalk-browser/usr/share/pixmaps/gsticon.xpm
+
+	# remove rpath
+	chrpath -d debian/tmp/usr/bin/gst debian/tmp/usr/bin/gst-browser \
+                   debian/tmp/usr/bin/gst-convert debian/tmp/usr/bin/gst-doc \
+                   debian/tmp/usr/bin/gst-load debian/tmp/usr/bin/gst-package \
+                   debian/tmp/usr/bin/gst-profile debian/tmp/usr/bin/gst-reload \
+                   debian/tmp/usr/bin/gst-remote debian/tmp/usr/bin/gst-sunit
+
+	dh_install --sourcedir=debian/tmp --list-missing
+
+	# copy emacs files
+	sed -e 's#@bindir@#/usr/bin#' < gst-mode.el.in > \
+	    debian/gnu-smalltalk-el/usr/share/emacs/site-lisp/gnu-smalltalk-el/gst-mode.el
+	cp smalltalk-mode.el debian/gnu-smalltalk-el/usr/share/emacs/site-lisp/gnu-smalltalk-el/smalltalk-mode.el
+	cp smalltalk-mode-init.el.in debian/gnu-smalltalk-el.emacsen-startup
+
+	# make the image file executable
+	chmod +x debian/gnu-smalltalk/usr/lib/gnu-smalltalk/gst.im
+
+# To silent out lintian
+build-arch build-indep: build-stamp
+
+# Build architecture-independent files here.
+binary-indep: build-indep install
+	dh_testdir -i
+	dh_testroot -i
+	dh_installdocs -i
+	dh_installmenu -i
+	dh_installemacsen -i
+	dh_installinfo -i
+	dh_installman -i
+	dh_installchangelogs ChangeLog -i
+	dh_perl -i
+	dh_link -i
+	dh_compress -i
+	dh_fixperms -i
+	perl -w debian/dh_makestarlibs -i -V
+	dh_installdeb -i
+	perl -w debian/dh_stardeps -i
+	perl -w debian/dh_fixstars -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: build-arch install
+	dh_testdir -a
+	dh_testroot -a
+	dh_installdocs -a
+	dh_installmenu -a
+	dh_installman -a
+	dh_installchangelogs ChangeLog -a
+	dh_link -a
+	dh_strip -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_makeshlibs -a -Xlib/gnu-smalltalk
+	perl -w debian/dh_makestarlibs -V
+	dh_installdeb -a
+	dh_shlibdeps -a
+	perl -w debian/dh_stardeps -a
+	perl -w debian/dh_fixstars -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-indep binary-arch
+.PHONY: build-arch build-indep build clean binary-indep binary-arch binary install configure patch unpatch
--- gnu-smalltalk-3.2.4.orig/debian/libgst-dev.install
+++ gnu-smalltalk-3.2.4/debian/libgst-dev.install
@@ -0,0 +1,6 @@
+usr/bin/gst-config
+usr/lib/libgst.so
+usr/lib/libgst.a
+usr/lib/pkgconfig/
+usr/include/gst*.h
+usr/share/man/man1/gst-config.1
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk.menu
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk.menu
@@ -0,0 +1,2 @@
+?package(gnu-smalltalk):needs="text" section="Applications/Programming" \
+  title="GNU Smalltalk" command="/usr/bin/gst"
--- gnu-smalltalk-3.2.4.orig/debian/watch
+++ gnu-smalltalk-3.2.4/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+ftp://ftp.gnu.org/gnu/smalltalk/smalltalk-(.*)\.tar\.gz debian  uupdate
--- gnu-smalltalk-3.2.4.orig/debian/gnu-smalltalk-browser.dirs
+++ gnu-smalltalk-3.2.4/debian/gnu-smalltalk-browser.dirs
@@ -0,0 +1 @@
+usr/share/pixmaps
--- gnu-smalltalk-3.2.4.orig/debian/patches/06_sdl_debian.diff
+++ gnu-smalltalk-3.2.4/debian/patches/06_sdl_debian.diff
@@ -0,0 +1,56 @@
+diff --git a/packages/sdl/libsdl/package.xml b/packages/sdl/libsdl/package.xml
+index caa648c..cf33a72 100644
+--- a/packages/sdl/libsdl/package.xml
++++ b/packages/sdl/libsdl/package.xml
+@@ -25,6 +25,6 @@
+   <filein>Display.st</filein>
+   <filein>EventSource.st</filein>
+ 
+-  <library>libSDL</library>
++  <library>libSDL-1.2</library>
+   <module>sdl</module>
+ </package>
+diff --git a/packages/sdl/libsdl_image/package.xml b/packages/sdl/libsdl_image/package.xml
+index efb174d..8fb8c3a 100644
+--- a/packages/sdl/libsdl_image/package.xml
++++ b/packages/sdl/libsdl_image/package.xml
+@@ -4,5 +4,5 @@
+ 
+   <filein>SDL_image.st</filein>
+ 
+-  <library>libSDL_image</library>
++  <library>libSDL_image-1.2</library>
+ </package>
+diff --git a/packages/sdl/libsdl_mixer/package.xml b/packages/sdl/libsdl_mixer/package.xml
+index 49144f0..263b71e 100644
+--- a/packages/sdl/libsdl_mixer/package.xml
++++ b/packages/sdl/libsdl_mixer/package.xml
+@@ -4,5 +4,5 @@
+ 
+   <filein>SDL_mixer.st</filein>
+ 
+-  <library>libSDL_mixer</library>
++  <library>libSDL_mixer-1.2</library>
+ </package>
+diff --git a/packages/sdl/libsdl_ttf/package.xml b/packages/sdl/libsdl_ttf/package.xml
+index 532106c..a170107 100644
+--- a/packages/sdl/libsdl_ttf/package.xml
++++ b/packages/sdl/libsdl_ttf/package.xml
+@@ -4,5 +4,5 @@
+ 
+   <filein>SDL_ttf.st</filein>
+ 
+-  <library>libSDL_ttf</library>
++  <library>libSDL_ttf-2.0</library>
+ </package>
+diff --git a/packages/sdl/libsdl_sound/package.xml b/packages/sdl/libsdl_sound/package.xml
+index fe68a13..eaa081b 100644
+--- a/packages/sdl/libsdl_sound/package.xml
++++ b/packages/sdl/libsdl_sound/package.xml
+@@ -6,5 +6,5 @@
+   <filein>SDL_cdrom.st</filein>
+   <filein>SDL_sound.st</filein>
+ 
+-  <library>libSDL_sound</library>
++  <library>libSDL_sound-1.0</library>
+ </package>
--- gnu-smalltalk-3.2.4.orig/debian/patches/05_emacsen.diff
+++ gnu-smalltalk-3.2.4/debian/patches/05_emacsen.diff
@@ -0,0 +1,18 @@
+diff --git a/smalltalk-mode-init.el.in b/smalltalk-mode-init.el.in
+index 4c7c041..56a9aa1 100644
+--- a/smalltalk-mode-init.el.in
++++ b/smalltalk-mode-init.el.in
+@@ -15,6 +15,11 @@
+ 
+ (push "\\.star\\'" inhibit-first-line-modes-regexps)
+ 
+-(autoload 'smalltalk-mode "@lispdir@/smalltalk-mode.elc" "" t)
+-@WITH_EMACS_COMINT_TRUE@(autoload 'gst "@lispdir@/gst-mode.elc" "" t)
++(autoload 'smalltalk-mode "smalltalk-mode" "" t)
++(autoload 'gst-mode "gst-mode" "" t)
+ 
++(debian-pkg-add-load-path-item 
++	(concat "/usr/share/"
++		(symbol-name debian-emacs-flavor)
++		"/site-lisp/gnu-smalltalk-el")
++	)
--- gnu-smalltalk-3.2.4.orig/debian/patches/01_rename_to_gnu_smalltalk.diff
+++ gnu-smalltalk-3.2.4/debian/patches/01_rename_to_gnu_smalltalk.diff
@@ -0,0 +1,33 @@
+Rename `smalltalk' package to `gnu-smalltalk'.
+--- smalltalk-3.2.orig/Makefile.am
++++ smalltalk-3.2/Makefile.am
+@@ -19,7 +19,7 @@
+ AUTOMAKE_OPTIONS = gnu 1.8
+ ACLOCAL_AMFLAGS = -I build-aux
+ 
+-PACKAGE=smalltalk
++PACKAGE=gnu-smalltalk
+ gstdatadir=$(pkgdatadir)
+ 
+ DIST_SUBDIRS = lib-src snprintfv lightning sigsegv libffi opcode libgst \
+--- smalltalk-3.2.orig/configure.ac
++++ smalltalk-3.2/configure.ac
+@@ -7,7 +7,7 @@
+ 
+ dnl 2.63 needed by testsuite, actually
+ AC_PREREQ(2.63)
+-AC_INIT([GNU Smalltalk], 3.2.4, help-smalltalk@gnu.org, smalltalk,
++AC_INIT([GNU Smalltalk], 3.2.4, help-smalltalk@gnu.org, gnu-smalltalk,
+         [http://smalltalk.gnu.org/])
+ MAINTAINER="bonzini@gnu.org"
+ 
+--- smalltalk-3.2.orig/tests/package.m4
++++ smalltalk-3.2/tests/package.m4
+@@ -1,6 +1,6 @@
+ # Signature of the current package.
+ m4_define([AT_PACKAGE_NAME],      [GNU Smalltalk])
+-m4_define([AT_PACKAGE_TARNAME],   [smalltalk])
++m4_define([AT_PACKAGE_TARNAME],   [gnu-smalltalk])
+ m4_define([AT_PACKAGE_VERSION],   [3.2.4])
+ m4_define([AT_PACKAGE_STRING],    [GNU Smalltalk 3.2.4])
+ m4_define([AT_PACKAGE_BUGREPORT], [help-smalltalk@gnu.org])
--- gnu-smalltalk-3.2.4.orig/debian/patches/series
+++ gnu-smalltalk-3.2.4/debian/patches/series
@@ -0,0 +1,5 @@
+01_rename_to_gnu_smalltalk.diff
+02_fix_overflow_detection_on_non_x86.diff
+04_fix_image_shebang.diff
+05_emacsen.diff
+06_sdl_debian.diff
--- gnu-smalltalk-3.2.4.orig/debian/patches/04_fix_image_shebang.diff
+++ gnu-smalltalk-3.2.4/debian/patches/04_fix_image_shebang.diff
@@ -0,0 +1,12 @@
+Use /usr/bin/gst shebang in gst.im.
+--- smalltalk--debian--2.3.orig/libgst/save.c
++++ smalltalk--debian--2.3/libgst/save.c
+@@ -93,7 +93,7 @@
+ 	global oop variable data
+ 	object data */
+ 
+-#define EXECUTE      "#! /usr/bin/env gst -aI\nexec gst -I \"$0\" -a \"$@\"\n"
++#define EXECUTE      "#! /usr/bin/gst -aI\n"
+ #define SIGNATURE    "GSTIm"
+ 
+ typedef struct save_file_header
--- gnu-smalltalk-3.2.4.orig/debian/patches/02_fix_overflow_detection_on_non_x86.diff
+++ gnu-smalltalk-3.2.4/debian/patches/02_fix_overflow_detection_on_non_x86.diff
@@ -0,0 +1,210 @@
+commit 86d695a7f8e3380b3c2c6045fc8ae5140f902f2f
+Author: Paolo Bonzini <bonzini@gnu.org>
+Date:   Thu Mar 24 10:17:57 2011 +0100
+
+    fix overflow detection on non-x86 platforms
+    
+    2011-03-24  Paolo Bonzini <bonzini@gnu.org>
+    
+    	* tests/intmath.st: Add testcases.
+    	* tests/intmath.ok: Regenerate.
+    
+    libgst:
+    2011-03-24  Paolo Bonzini  <bonzini@gnu.org>
+    
+    	* libgst/interp.inl: Fix brokenness on non-x86 platforms.
+
+ 2011-03-12  Paolo Bonzini  <bonzini@gnu.org>
+ 
+ 	* libgst/callin.c: Remove dead code signaled by clang analyzer.
+diff --git a/libgst/interp.inl b/libgst/interp.inl
+index 4bf5249..cda4405 100644
+--- a/libgst/interp.inl
++++ b/libgst/interp.inl
+@@ -111,71 +111,45 @@ tagged_xor (OOP op1, OOP op2)
+ OOP
+ add_with_check (OOP op1, OOP op2, mst_Boolean *overflow)
+ {
+-#if (defined __i386__ || defined __x86_64__)
+   intptr_t iop1 = (intptr_t) op1;
+-  intptr_t iop2 = ((intptr_t) op2) - 1;
++  intptr_t iop2 = (intptr_t) op2;
+   intptr_t iresult;
++#if (defined __i386__ || defined __x86_64__) && !defined NO_OPTIMIZED_SMALLINTEGERS
+   int of = 0;
++  iop2--;
+   asm ("add" OP_SUFFIX " %3, %2\n"
+        "seto %b1" : "=r" (iresult), "+&q" (of) : "0" (iop1), OP_CONSTRAINT (iop2));
+ 
+   *overflow = of;
+-  return (OOP) iresult;
+ #else
+-  intptr_t iop1 = TO_INT (op1);
+-  intptr_t iop2 = TO_INT (op2);
+-  intptr_t iresult = no_opt (iop1 + iop2);
++  iresult = no_opt (iop1 + (iop2 - 1));
+   *overflow = false;
+-  if (iresult < iop1)
+-    {
+-      if (iop2 < 0)
+-        return FROM_INT (iresult);
+-    }
+-  else
+-    {
+-      if (iop2 >= 0)
+-        return FROM_INT (iresult);
+-    }
+-
+-  if UNCOMMON (INT_OVERFLOW (iresult))
++  if (COMMON ((iop1 ^ iop2) >= 0) && UNCOMMON ((iop1 ^ iresult) < 0))
+     *overflow = true;
+-  return FROM_INT (iresult);
+ #endif
++  return (OOP) iresult;
+ }
+ 
+ OOP
+ sub_with_check (OOP op1, OOP op2, mst_Boolean *overflow)
+ {
+-#if (defined __i386__ || defined __x86_64__)
+   intptr_t iop1 = (intptr_t) op1;
+-  intptr_t iop2 = ((intptr_t) op2) - 1;
++  intptr_t iop2 = (intptr_t) op2;
+   intptr_t iresult;
++#if (defined __i386__ || defined __x86_64__) && !defined NO_OPTIMIZED_SMALLINTEGERS
+   int of = 0;
++  iop2--;
+   asm ("sub" OP_SUFFIX " %3, %2\n"
+        "seto %b1" : "=r" (iresult), "+&q" (of) : "0" (iop1), OP_CONSTRAINT (iop2));
+ 
+   *overflow = of;
+-  return (OOP) iresult;
+ #else
+-  intptr_t iop1 = TO_INT (op1);
+-  intptr_t iop2 = TO_INT (op2);
+-  intptr_t iresult = no_opt (iop1 - iop2);
++  iresult = no_opt (iop1 - (iop2 - 1));
+   *overflow = false;
+-  if (iresult < iop1)
+-    {
+-      if (iop2 >= 0)
+-        return FROM_INT (iresult);
+-    }
+-  else
+-    {
+-      if (iop2 < 0)
+-        return FROM_INT (iresult);
+-    }
+-
+-  if UNCOMMON (INT_OVERFLOW (iresult))
++  if (UNCOMMON ((iop1 ^ iop2) < 0) && UNCOMMON ((iop1 ^ iresult) < 0))
+     *overflow = true;
+-  return FROM_INT (iresult);
+ #endif
++  return (OOP) iresult;
+ }
+ 
+ OOP
+diff --git a/tests/intmath.ok b/tests/intmath.ok
+index 19120ee..4765e8a 100644
+--- a/tests/intmath.ok
++++ b/tests/intmath.ok
+@@ -105,6 +105,60 @@ Execution begins...
+ returned value is true
+ 
+ Execution begins...
++returned value is true
++
++Execution begins...
++returned value is true
++
++Execution begins...
++returned value is true
++
++Execution begins...
++returned value is false
++
++Execution begins...
++returned value is true
++
++Execution begins...
++returned value is false
++
++Execution begins...
++returned value is true
++
++Execution begins...
++returned value is false
++
++Execution begins...
++returned value is false
++
++Execution begins...
++returned value is false
++
++Execution begins...
++returned value is true
++
++Execution begins...
++returned value is true
++
++Execution begins...
++returned value is false
++
++Execution begins...
++returned value is true
++
++Execution begins...
++returned value is true
++
++Execution begins...
++returned value is false
++
++Execution begins...
++returned value is false
++
++Execution begins...
++returned value is true
++
++Execution begins...
+ returned value is false
+ 
+ Execution begins...
+diff --git a/tests/intmath.st b/tests/intmath.st
+index 0d72904..8b772ae 100644
+--- a/tests/intmath.st
++++ b/tests/intmath.st
+@@ -82,6 +82,10 @@ Eval [ (1000000000 raisedToInteger: 4) printString ]
+ Eval [ 100 factorial / 99 factorial ]	"should return 100 of course"
+ Eval [ 100 factorial printString ]
+ 
++Eval [ (SmallInteger largest + SmallInteger largest) > 0 ]
++Eval [ (SmallInteger largest - SmallInteger smallest) > 0 ]
++Eval [ SmallInteger smallest negated > 0 ]
++
+ Eval [ (40000 * 40000) =  (40000 * 40000) ]
+ Eval [ (40000 * 40000) <  (40000 * 40000) ]
+ Eval [ (40000 * 40000) <= (40000 * 40000) ]
+@@ -98,6 +102,22 @@ Eval [ (34567 * 34567) <= (45678 * 45678) ]
+ Eval [ (34567 * 34567) >  (45678 * 45678) ]
+ Eval [ (34567 * 34567) >= (45678 * 45678) ]
+ 
++Eval [ (4000000000 * 4000000000) =  (4000000000 * 4000000000) ]
++Eval [ (4000000000 * 4000000000) <  (4000000000 * 4000000000) ]
++Eval [ (4000000000 * 4000000000) <= (4000000000 * 4000000000) ]
++Eval [ (4000000000 * 4000000000) >  (4000000000 * 4000000000) ]
++Eval [ (4000000000 * 4000000000) >= (4000000000 * 4000000000) ]
++Eval [ (4000000000 * 4000000000) =  (1600000000 * 1600000000) ]
++Eval [ (4000000000 * 4000000000) <  (1600000000 * 1600000000) ]
++Eval [ (4000000000 * 4000000000) <= (1600000000 * 1600000000) ]
++Eval [ (4000000000 * 4000000000) >  (1600000000 * 1600000000) ]
++Eval [ (4000000000 * 4000000000) >= (1600000000 * 1600000000) ]
++Eval [ (3456734567 * 3456734567) =  (4567845678 * 4567845678) ]
++Eval [ (3456734567 * 3456734567) <  (4567845678 * 4567845678) ]
++Eval [ (3456734567 * 3456734567) <= (4567845678 * 4567845678) ]
++Eval [ (3456734567 * 3456734567) >  (4567845678 * 4567845678) ]
++Eval [ (3456734567 * 3456734567) >= (4567845678 * 4567845678) ]
++
+ "parsing in bases other than 10"
+ Eval [ 16rFFFFFFFF = 4294967295 ]
+