From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-print/cups-filters/, net-print/cups-filters/files/
Date: Wed, 23 Mar 2016 06:29:49 +0000 (UTC) [thread overview]
Message-ID: <1458714460.60b83034240153d49d9e422a5ef8e4dce196be2f.vapier@gentoo> (raw)
commit: 60b83034240153d49d9e422a5ef8e4dce196be2f
Author: Brian Norris <briannorris <AT> chromium <DOT> org>
AuthorDate: Wed Mar 23 06:26:53 2016 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Wed Mar 23 06:27:40 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60b83034
net-print/cups-filters: add upstream fixes for USE=-postscript
When ghostscript is disabled, make sure we still don't require features
from it at configure & runtime.
.../cups-filters/cups-filters-1.8.2-r1.ebuild | 8 ++-
.../files/cups-filters-1.8.2-disable-ijs.patch | 68 ++++++++++++++++++++++
.../files/cups-filters-1.8.2-gstoraster.patch | 66 +++++++++++++++++++++
3 files changed, 141 insertions(+), 1 deletion(-)
diff --git a/net-print/cups-filters/cups-filters-1.8.2-r1.ebuild b/net-print/cups-filters/cups-filters-1.8.2-r1.ebuild
index 00d2626..844bf04 100644
--- a/net-print/cups-filters/cups-filters-1.8.2-r1.ebuild
+++ b/net-print/cups-filters/cups-filters-1.8.2-r1.ebuild
@@ -6,7 +6,7 @@ EAPI=5
GENTOO_DEPEND_ON_PERL=no
-inherit eutils perl-module systemd
+inherit eutils perl-module autotools systemd
if [[ "${PV}" == "9999" ]] ; then
inherit bzr
@@ -47,6 +47,12 @@ DEPEND="${RDEPEND}
dev-util/gdbus-codegen
"
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-disable-ijs.patch #574992
+ epatch "${FILESDIR}"/${P}-gstoraster.patch
+ eautoreconf
+}
+
src_configure() {
econf \
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
diff --git a/net-print/cups-filters/files/cups-filters-1.8.2-disable-ijs.patch b/net-print/cups-filters/files/cups-filters-1.8.2-disable-ijs.patch
new file mode 100644
index 0000000..7167c9c
--- /dev/null
+++ b/net-print/cups-filters/files/cups-filters-1.8.2-disable-ijs.patch
@@ -0,0 +1,68 @@
+ijs is part of the ghostscript package, so it needs to be dropped when we drop
+ghostscript (i.e., USE="-postscript"). Patch accepted here:
+
+https://bugs.linuxfoundation.org/show_bug.cgi?id=1345
+
+--- Makefile.am
++++ Makefile.am
+@@ -490,7 +490,6 @@
+ bannertopdf \
+ commandtoescpx \
+ commandtopclx \
+- pdftoijs \
+ sys5ippprinter \
+ pdftops \
+ pdftoraster \
+@@ -499,6 +498,10 @@
+ texttopdf \
+ urftopdf \
+ rastertopdf
++if ENABLE_IJS
++pkgfilter_PROGRAMS += \
++ pdftoijs
++endif
+ if ENABLE_GHOSTSCRIPT
+ pkgfilter_PROGRAMS += \
+ gstoraster
+@@ -846,9 +849,12 @@
+ ppd/Fuji_Xerox-DocuPrint_CM305_df-PDF.ppd \
+ ppd/Generic-PDF_Printer-PDF.ppd \
+ ppd/HP-Color_LaserJet_CM3530_MFP-PDF.ppd \
+- ppd/HP-PhotoSmart_Pro_B8300-hpijs-pdftoijs.ppd \
+ ppd/Ricoh-PDF_Printer-PDF.ppd \
+ ppd/textonly.ppd
++if ENABLE_IJS
++ppd_DATA += \
++ ppd/HP-PhotoSmart_Pro_B8300-hpijs-pdftoijs.ppd
++endif
+ if ENABLE_GHOSTSCRIPT
+ ppd_DATA += \
+ ppd/pxlcolor.ppd \
+
+--- configure.ac
++++ configure.ac
+@@ -443,7 +443,7 @@
+ ])
+ PKG_CHECK_MODULES([FREETYPE], [freetype2], [AC_DEFINE([HAVE_FREETYPE_H], [1], [Have FreeType2 include files])])
+ PKG_CHECK_MODULES([FONTCONFIG], [fontconfig >= 2.0.0])
+-PKG_CHECK_MODULES([IJS], [ijs])
++PKG_CHECK_MODULES([IJS], [ijs], [have_ijs=yes], [have_ijs=no])
+ PKG_CHECK_MODULES([POPPLER], [poppler >= 0.18])
+ PKG_CHECK_MODULES([ZLIB], [zlib])
+ AC_DEFINE([HAVE_LIBZ], [], [Define that we use zlib])
+@@ -489,6 +489,15 @@
+ [enable_ghostscript="$enableval"],
+ [enable_ghostscript=yes]
+ )
++AC_ARG_ENABLE([ijs],
++ [AS_HELP_STRING([--disable-ijs], [Disable filters using IJS.])],
++ [enable_ijs="$enableval"],
++ [enable_ijs=yes]
++)
++AS_IF([test "x$enable_ijs" = "xyes" -a "x$have_ijs" != "xyes"], [
++ AC_MSG_ERROR([IJS not found, but requested.])
++])
++AM_CONDITIONAL(ENABLE_IJS, test "x$enable_ijs" = "xyes")
+ AC_ARG_WITH([pdftops],
+ [AS_HELP_STRING([--with-pdftops=value], [Set which pdftops to use (gs,pdftops,pdftocairo,acroread,hybrid).])],
+ [with_pdftops="$withval"],
diff --git a/net-print/cups-filters/files/cups-filters-1.8.2-gstoraster.patch b/net-print/cups-filters/files/cups-filters-1.8.2-gstoraster.patch
new file mode 100644
index 0000000..91fd49a
--- /dev/null
+++ b/net-print/cups-filters/files/cups-filters-1.8.2-gstoraster.patch
@@ -0,0 +1,66 @@
+When we remove ghostscript-based filters, CUPS complains about a missing
+'gstoraster' filter, even if it doesn't need it. The fix is to drop the
+gstoraster rules from the MIME conversion rules. Patch accepted here:
+
+https://bugs.linuxfoundation.org/show_bug.cgi?id=1346
+
+--- COPYING 2016-01-21 14:50:23 +0000
++++ COPYING 2016-03-03 02:35:23 +0000
+@@ -103,7 +103,7 @@
+ 1993-2007, Easy Software Products
+ License: GPL-2
+
+-Files: mime/cupsfilters.convs*
++Files: mime/cupsfilters*.convs*
+ Copyright: 2007-2011, Apple Inc
+ 1997-2007, Easy Software Products
+ 2012-2016, Till Kamppeter
+
+--- Makefile.am 2016-03-03 02:39:23 +0000
++++ Makefile.am 2016-03-03 02:44:15 +0000
+@@ -292,6 +292,10 @@
+ pkgmime_DATA = \
+ mime/cupsfilters.convs \
+ mime/cupsfilters.types
++if ENABLE_GHOSTSCRIPT
++pkgmime_DATA += \
++ mime/cupsfilters-ghostscript.convs
++endif
+ if ENABLE_BRAILLE
+ pkgmime_DATA += \
+ mime/braille.convs \
+
+--- mime/cupsfilters-ghostscript.convs 1970-01-01 00:00:00 +0000
++++ mime/cupsfilters-ghostscript.convs 2016-03-03 02:31:30 +0000
+@@ -0,0 +1,19 @@
++#
++# MIME conversions file for OpenPrinting CUPS Filters.
++#
++# Copyright 2007-2011 by Apple Inc.
++# Copyright 1997-2007 by Easy Software Products.
++# Copyright 2012-2016 by Till Kamppeter.
++#
++# These coded instructions, statements, and computer programs are the
++# property of Apple Inc. and are protected by Federal copyright
++# law. Distribution and use rights are outlined in the file "COPYING"
++# which should have been included with this file.
++#
++
++#
++# Ghostscript-based filters...
++#
++
++application/vnd.cups-pdf application/vnd.cups-raster 99 gstoraster
++application/vnd.cups-postscript application/vnd.cups-raster 175 gstoraster
+
+--- mime/cupsfilters.convs 2016-01-21 14:50:23 +0000
++++ mime/cupsfilters.convs 2016-03-03 02:35:59 +0000
+@@ -83,8 +83,6 @@
+ # Raster filters...
+ #
+
+-application/vnd.cups-pdf application/vnd.cups-raster 99 gstoraster
+-application/vnd.cups-postscript application/vnd.cups-raster 175 gstoraster
+ application/vnd.cups-pdf application/vnd.cups-raster 100 pdftoraster
+ image/gif application/vnd.cups-raster 100 imagetoraster
+ image/png application/vnd.cups-raster 100 imagetoraster
next reply other threads:[~2016-03-23 6:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-23 6:29 Mike Frysinger [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-03-14 22:46 [gentoo-commits] repo/gentoo:master commit in: net-print/cups-filters/, net-print/cups-filters/files/ Sam James
2020-07-07 14:18 Thomas Deutschmann
2020-07-06 11:35 Lars Wendler
2020-04-12 22:51 Thomas Deutschmann
2019-03-02 20:29 Andreas Sturmlechner
2017-10-18 11:19 Lars Wendler
2016-07-21 10:18 Lars Wendler
2016-03-27 19:59 Lars Wendler
2016-03-23 6:29 Mike Frysinger
2016-02-11 2:22 Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1458714460.60b83034240153d49d9e422a5ef8e4dce196be2f.vapier@gentoo \
--to=vapier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox