package inkscape tags 522477 + patch thanks I'm attaching a patch which makes inkscape build on my system; just drop it into debian/patches and add it to debian/patches/00list. -- Daniel Schepler
#! /bin/sh /usr/share/dpatch/dpatch-run ## 11_early-png-header.dpatch by Daniel Schepler <dschep...@gmail.com> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad inkscape-0.46~/src/dialogs/export.cpp inkscape-0.46/src/dialogs/export.cpp --- inkscape-0.46~/src/dialogs/export.cpp 2009-04-21 22:26:34.000000000 +0000 +++ inkscape-0.46/src/dialogs/export.cpp 2009-04-21 22:26:44.000000000 +0000 @@ -20,6 +20,7 @@ # include "config.h" #endif +#include <png.h> #include <gtk/gtk.h> #include <gtkmm/box.h> #include <gtkmm/buttonbox.h> @@ -60,7 +61,6 @@ #include "io/sys.h" #include "helper/png-write.h" -#include <png.h> #define SP_EXPORT_MIN_SIZE 1.0 diff -urNad inkscape-0.46~/src/main.cpp inkscape-0.46/src/main.cpp --- inkscape-0.46~/src/main.cpp 2009-04-21 22:18:48.000000000 +0000 +++ inkscape-0.46/src/main.cpp 2009-04-21 22:27:00.000000000 +0000 @@ -28,6 +28,8 @@ #endif #include "path-prefix.h" +#include <png.h> + #include <gtk/gtkmessagedialog.h> #ifdef HAVE_IEEEFP_H @@ -111,7 +113,6 @@ #include "main-cmdlineact.h" -#include <png.h> #include <errno.h> enum { diff -urNad inkscape-0.46~/src/sp-image.cpp inkscape-0.46/src/sp-image.cpp --- inkscape-0.46~/src/sp-image.cpp 2009-04-21 22:26:34.000000000 +0000 +++ inkscape-0.46/src/sp-image.cpp 2009-04-21 22:26:44.000000000 +0000 @@ -17,6 +17,7 @@ # include "config.h" #endif +#include <png.h> #include <cstring> #include <string> #include <libnr/nr-matrix-fns.h> @@ -41,7 +42,6 @@ #include "libnr/nr-matrix-fns.h" #include "io/sys.h" -#include <png.h> #if ENABLE_LCMS #include "color-profile-fns.h" #include "color-profile.h"