hplip: fix build with cups>=2.2

This commit is contained in:
Alessio Sergi 2016-09-23 01:08:16 +02:00
parent ad3313ce14
commit 1399bb089d
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,22 @@
Fix build with cups>=2.2
--- prnt/hpcups/CommonDefinitions.h.orig
+++ prnt/hpcups/CommonDefinitions.h
@@ -40,6 +40,7 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <cups/cups.h>
+#include <cups/ppd.h>
#include <cups/raster.h>
#include <stdarg.h>
#include <stdio.h>
--- prnt/hpijs/hpcupsfax.cpp.orig
+++ prnt/hpijs/hpcupsfax.cpp
@@ -43,6 +43,7 @@
#include <arpa/inet.h>
#include <math.h>
#include <cups/cups.h>
+#include <cups/ppd.h>
#include <cups/raster.h>
#include <string>
#ifdef FALSE

View File

@ -1,7 +1,7 @@
# Template file for 'hplip' # Template file for 'hplip'
pkgname=hplip pkgname=hplip
version=3.16.8 version=3.16.8
revision=1 revision=2
#XXX: pyqt pkgs for python gui #XXX: pyqt pkgs for python gui
hostmakedepends="pkg-config automake libtool python" hostmakedepends="pkg-config automake libtool python"
makedepends="libressl-devel python-devel libxml2-python cups-devel sane-devel makedepends="libressl-devel python-devel libxml2-python cups-devel sane-devel