Fixed inkscape compilation on glibc 2.9
svn path=/nixpkgs/branches/stdenv-updates/; revision=15168
This commit is contained in:
parent
e1cfa22536
commit
205d181222
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0flrjqa68vnnn8lrhj86xpa6h2cyzrvjy6873v9id092f86ix1li";
|
||||
};
|
||||
|
||||
patches = [ ./configure-python-libs.patch ./libpng-setjmp.patch ];
|
||||
patches = [ ./configure-python-libs.patch ./libpng-setjmp.patch ./gtk-clist.patch ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
# Python is used at run-time to execute scripts, e.g., those from
|
||||
@ -24,6 +24,14 @@ stdenv.mkDerivation rec {
|
||||
|
||||
configureFlags = "--with-python";
|
||||
|
||||
# Fix compilation on glibc 2.9 by adding missing string header
|
||||
preConfigure = ''
|
||||
echo "#include <string.h>" > tmp.cpp
|
||||
cat tmp.cpp src/dom/io/uristream.cpp > src/dom/io/uristream.cpp.new
|
||||
rm tmp.cpp
|
||||
mv src/dom/io/uristream.cpp.new src/dom/io/uristream.cpp
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I./extension/script"
|
||||
'';
|
||||
|
11
pkgs/applications/graphics/inkscape/gtk-clist.patch
Normal file
11
pkgs/applications/graphics/inkscape/gtk-clist.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- inkscape-0.46/src/widgets/sp-xmlview-attr-list.h 2008/06/07 22:06:52 1.1
|
||||
+++ inkscape-0.46/src/widgets/sp-xmlview-attr-list.h 2008/06/07 22:09:22
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
-#include <gtk/gtkclist.h>
|
||||
+#include <gtk/gtk.h>
|
||||
#include "../xml/repr.h"
|
||||
|
||||
#include <glib.h>
|
Loading…
Reference in New Issue
Block a user