gutenprint: fixed build

This commit is contained in:
Juergen Daubert 2012-01-17 14:59:42 +01:00
parent b54530f035
commit 514e1c15fc
3 changed files with 27 additions and 2 deletions

View File

@ -1 +1,2 @@
3d5e93734b403dbc5b067856be1cbd65 gutenprint-5.2.7-include_stdio.patch
b19029972bf28f6efd693270daf8f5de gutenprint-5.2.7.tar.bz2

View File

@ -5,12 +5,15 @@
name=gutenprint
version=5.2.7
release=1
source=(http://downloads.sourceforge.net/project/gimp-print/$name-5.2/$version/$name-$version.tar.bz2)
release=2
source=(http://downloads.sourceforge.net/project/gimp-print/$name-5.2/$version/$name-$version.tar.bz2
$name-$version-include_stdio.patch)
build () {
cd $name-$version
patch -p1 -i $SRC/$name-$version-include_stdio.patch
./configure --prefix=/usr \
--mandir=/usr/man \
--disable-nls \

View File

@ -0,0 +1,21 @@
diff -up gutenprint-5.2.7/src/cups/commandtocanon.c.build gutenprint-5.2.7/src/cups/commandtocanon.c
--- gutenprint-5.2.7/src/cups/commandtocanon.c.build 2011-06-07 13:32:37.372042304 +0100
+++ gutenprint-5.2.7/src/cups/commandtocanon.c 2011-06-07 13:32:41.270970750 +0100
@@ -13,6 +13,7 @@
#include <cups/cups.h>
#include <ctype.h>
+#include <stdio.h>
#include <stdlib.h>
diff -up gutenprint-5.2.7/src/cups/commandtoepson.c.build gutenprint-5.2.7/src/cups/commandtoepson.c
--- gutenprint-5.2.7/src/cups/commandtoepson.c.build 2007-12-24 17:19:20.000000000 +0000
+++ gutenprint-5.2.7/src/cups/commandtoepson.c 2011-06-07 13:32:35.656073794 +0100
@@ -30,6 +30,7 @@
#include <cups/cups.h>
#include <ctype.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>