Package: gbase Version: 0.5-2.1 Tags: patch, fixed I have upgraded gbase to use Gtk 2.* libraries.
Cheers, Jakob Hilmer
diff -Naur gbase-0.5-2.1.orig/debian/control gbase-0.5-2.1/debian/control --- gbase-0.5-2.1.orig/debian/control 2009-02-16 21:28:55.000000000 +0100 +++ gbase-0.5-2.1/debian/control 2009-02-16 21:30:59.000000000 +0100 @@ -2,7 +2,7 @@ Section: math Priority: optional Maintainer: Josip Rodin <joy-packa...@debian.org> -Build-Depends: debhelper (>= 2), libgtk1.2-dev, libglib1.2-dev +Build-Depends: debhelper (>= 2), libgtk2.0-dev, libglib2.0-dev Standards-Version: 3.6.0 Package: gbase diff -Naur gbase-0.5-2.1.orig/debian/rules gbase-0.5-2.1/debian/rules --- gbase-0.5-2.1.orig/debian/rules 2009-02-16 21:28:55.000000000 +0100 +++ gbase-0.5-2.1/debian/rules 2009-02-16 21:36:10.000000000 +0100 @@ -3,7 +3,7 @@ #export DH_VERBOSE=1 export DH_COMPAT=2 -CFLAGS := -g -Wall $(shell gtk-config --cflags) +CFLAGS := -g -Wall $(shell pkg-config gtk+-2.0 --cflags) ifneq "$(findstring noopt,$(DEB_BUILD_OPTIONS))" "" CFLAGS += -O0 else diff -Naur gbase-0.5-2.1.orig/gbase.c gbase-0.5-2.1/gbase.c --- gbase-0.5-2.1.orig/gbase.c 1999-11-10 21:24:41.000000000 +0100 +++ gbase-0.5-2.1/gbase.c 2009-02-16 21:30:23.000000000 +0100 @@ -261,7 +261,6 @@ void generate_string(int base) { - static char *fmt[] = {"%lu", "%lX", "%lo"}; int pos; int i; @@ -337,6 +336,7 @@ gint quit_callback(GtkWidget *widget, gpointer *data) { gtk_exit(0); + return 0; } diff -Naur gbase-0.5-2.1.orig/Makefile gbase-0.5-2.1/Makefile --- gbase-0.5-2.1.orig/Makefile 1999-10-27 23:23:51.000000000 +0200 +++ gbase-0.5-2.1/Makefile 2009-02-16 21:36:01.000000000 +0100 @@ -1,6 +1,6 @@ CC = gcc -CCFLAGS = `gtk-config --cflags` -LDFLAGS = `gtk-config --libs` +CCFLAGS = `pkg-config gtk+-2.0 --cflags` +LDFLAGS = `pkg-config gtk+-2.0 --libs` gbase: gbase.o $(CC) gbase.o $(LDFLAGS) -o gbase @@ -12,4 +12,5 @@ %.o: $(CC) $(CCFLAGS) -c $*.c -gbase.o: gbase.c \ No newline at end of file +gbase.o: gbase.c +