Package: gpaint Version: 0.3.3-6 Severity: important Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu raring ubuntu-patch
Dear Maintainer, In Ubuntu 13.04, the attached patch was applied to achieve the following: * Fixed FTBFS: - added missing preprocessor directives and math lib to link; - added forward declarations, fixing implicit declaration warnings that would have caused FTBFS on amd64 buildds. Thanks for considering the patch. -- System Information: Debian Release: wheezy/sid APT prefers precise-updates APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise'), (100, 'precise-backports') Architecture: amd64 (x86_64) Kernel: Linux 3.5.0-27-generic (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru gpaint-0.3.3/debian/patches/27_fix_missing_hdrs_libs.diff gpaint-0.3.3/debian/patches/27_fix_missing_hdrs_libs.diff --- gpaint-0.3.3/debian/patches/27_fix_missing_hdrs_libs.diff 1969-12-31 19:00:00.000000000 -0500 +++ gpaint-0.3.3/debian/patches/27_fix_missing_hdrs_libs.diff 2013-04-21 10:16:18.000000000 -0400 @@ -0,0 +1,71 @@ +Index: gpaint-0.3.3/src/image.c +=================================================================== +--- gpaint-0.3.3.orig/src/image.c 2013-04-21 10:13:06.029569664 -0400 ++++ gpaint-0.3.3/src/image.c 2013-04-21 10:13:23.209284134 -0400 +@@ -28,6 +28,8 @@ + #include "image.h" + #include "debug.h" + #include <math.h> ++#include <string.h> ++#include <libintl.h> + #include <gdk/gdk.h> + #include <gdk/gdkx.h> /* for gdk_root_parent */ + #include <gdk-pixbuf/gdk-pixbuf.h> +Index: gpaint-0.3.3/src/text.c +=================================================================== +--- gpaint-0.3.3.orig/src/text.c 2013-04-21 10:13:06.009569962 -0400 ++++ gpaint-0.3.3/src/text.c 2013-04-21 10:13:23.209284134 -0400 +@@ -26,6 +26,8 @@ + # include <config.h> + #endif + ++#include <ctype.h> ++#include <stdlib.h> + #include <string.h> + + #ifdef HAVE_STRING_H +@@ -76,6 +78,7 @@ + static void text_draw_string(gpaint_text *text); + static gint text_handle_timeout(gpaint_text *text); + static void text_draw_current_string(gpaint_tool *tool); ++extern void convert_color(const GdkColor *color, unsigned char *r, unsigned char *g, unsigned char *b); + + gpaint_tool *text_create(const char *name) + { +Index: gpaint-0.3.3/src/main.c +=================================================================== +--- gpaint-0.3.3.orig/src/main.c 2013-04-21 10:13:06.017569892 -0400 ++++ gpaint-0.3.3/src/main.c 2013-04-21 10:13:23.209284134 -0400 +@@ -36,6 +36,7 @@ + + static GList *window_list = 0; + static void create_window(void); ++extern void text_set_fontpicker(gpaint_tool *tool, GtkFontButton *fontpicker); + + + +Index: gpaint-0.3.3/src/Makefile.am +=================================================================== +--- gpaint-0.3.3.orig/src/Makefile.am 2013-04-21 10:15:52.766801609 -0400 ++++ gpaint-0.3.3/src/Makefile.am 2013-04-21 10:16:09.014530578 -0400 +@@ -67,6 +67,6 @@ + + + gpaint_2_CFLAGS = -I$(srcdir) +-gpaint_2_LDADD = $(GUI_LIBS) $(PRINT_LIBS) ++gpaint_2_LDADD = $(GUI_LIBS) $(PRINT_LIBS) -lm + gpaint_2_LDFLAGS = -Wl,--export-dynamic + +Index: gpaint-0.3.3/src/Makefile.in +=================================================================== +--- gpaint-0.3.3.orig/src/Makefile.in 2013-04-21 10:15:59.014697621 -0400 ++++ gpaint-0.3.3/src/Makefile.in 2013-04-21 10:16:16.050413141 -0400 +@@ -168,7 +168,7 @@ + + + gpaint_2_CFLAGS = -I$(srcdir) +-gpaint_2_LDADD = $(GUI_LIBS) $(PRINT_LIBS) ++gpaint_2_LDADD = $(GUI_LIBS) $(PRINT_LIBS) -lm + gpaint_2_LDFLAGS = -Wl,--export-dynamic + mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + CONFIG_CLEAN_FILES = diff -Nru gpaint-0.3.3/debian/patches/series gpaint-0.3.3/debian/patches/series --- gpaint-0.3.3/debian/patches/series 2009-12-29 19:06:14.000000000 -0500 +++ gpaint-0.3.3/debian/patches/series 2013-04-21 10:15:13.000000000 -0400 @@ -10,3 +10,4 @@ 24_fix_crash_on_failed_write.diff 25_fix_color_selection.diff 26_fix_toolbar.diff +27_fix_missing_hdrs_libs.diff