This commit is contained in:
parent
d92948c55c
commit
366d4bc321
@ -298,7 +298,7 @@ main(int argc, /* I - Number of command-line args */
|
||||
*/
|
||||
|
||||
#ifdef HAVE_PDFTOPS
|
||||
execv(CUPS_PDFTOPS, pdfargv);
|
||||
execv(HAVE_PDFTOPS, pdfargv);
|
||||
_cupsLangPrintError(_("ERROR: Unable to execute pdftops program"));
|
||||
#else
|
||||
execv(CUPS_GHOSTSCRIPT, pdfargv);
|
||||
|
@ -65,7 +65,7 @@
|
||||
+ * Location of the poppler/Xpdf pdftops program...
|
||||
+ */
|
||||
+
|
||||
+#define CUPS_PDFTOPS "/usr/bin/pdftops"
|
||||
+#define HAVE_PDFTOPS "/usr/bin/pdftops"
|
||||
+
|
||||
|
||||
/*
|
||||
@ -95,7 +95,7 @@
|
||||
@@ -299,10 +299,10 @@ main(int argc, /* I - Number of comm
|
||||
|
||||
#ifdef HAVE_PDFTOPS
|
||||
execv(CUPS_PDFTOPS, pdfargv);
|
||||
execv(HAVE_PDFTOPS, pdfargv);
|
||||
- _cupsLangPrintError(_("ERROR: Unable to execute pdftops program"));
|
||||
+ perror("ERROR: Unable to execute pdftops program");
|
||||
#else
|
||||
@ -120,7 +120,7 @@
|
||||
--- cups-1.3.7/filter/pdftops.c.orig 2008-04-22 20:24:15.000000000 +0200
|
||||
+++ cups-1.3.7/filter/pdftops.c 2008-04-22 20:26:20.000000000 +0200
|
||||
@@ -301,7 +301,7 @@ main(int argc, /* I - Number of comm
|
||||
execv(CUPS_PDFTOPS, pdfargv);
|
||||
execv(HAVE_PDFTOPS, pdfargv);
|
||||
perror("ERROR: Unable to execute pdftops program");
|
||||
#else
|
||||
- execv(CUPS_GHOSTSCRIPT, pdfargv);
|
||||
@ -148,13 +148,13 @@
|
||||
- AC_MSG_RESULT(no)
|
||||
+if test "x$with_pdftops" != xno; then
|
||||
+ if test "x$with_pdftops" != xyes -a "x$with_pdftops" != xauto ; then
|
||||
+ CUPS_PDFTOPS=$with_pdftops
|
||||
+ AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")
|
||||
+ HAVE_PDFTOPS=$with_pdftops
|
||||
+ AC_DEFINE_UNQUOTED(HAVE_PDFTOPS, "$HAVE_PDFTOPS")
|
||||
+ else
|
||||
+ AC_PATH_PROG(CUPS_PDFTOPS, pdftops)
|
||||
+ AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS")
|
||||
+ AC_PATH_PROG(HAVE_PDFTOPS, pdftops)
|
||||
+ AC_DEFINE_UNQUOTED(HAVE_PDFTOPS, "$HAVE_PDFTOPS")
|
||||
+
|
||||
+ if test "x$CUPS_PDFTOPS" != x; then
|
||||
+ if test "x$HAVE_PDFTOPS" != x; then
|
||||
+ AC_MSG_CHECKING(whether to build pdftops filter)
|
||||
+ if test "x$with_pdftops" = xyes -o $uname != Darwin; then
|
||||
+ PDFTOPS="pdftops"
|
||||
|
10
cups.changes
10
cups.changes
@ -1,8 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 15 11:53:11 CEST 2008 - kssingvo@suse.de
|
||||
|
||||
- renamed use of CUPS_PDFTOPS to HAVE_PDFTOPS in pdftops.c, to
|
||||
avoid execute of gs (bnc#390435)
|
||||
- removed earlykdm from init script, due to new less CPU consuming
|
||||
start of daemon now (bnc#388007)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 7 13:39:21 CEST 2008 - kssingvo@suse.de
|
||||
|
||||
- merged both pdftops patches to one
|
||||
- removed "recommended" remover (bugzilla#387267)
|
||||
- removed "recommended" remover (bnc#387267)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 22 20:24:19 CEST 2008 - kssingvo@suse.de
|
||||
|
@ -19,7 +19,7 @@
|
||||
# Provides: cupsd
|
||||
# Required-Start: $local_fs $remote_fs $syslog
|
||||
# Required-Stop: $remote_fs $syslog
|
||||
# Should-Start: earlykdm dbus $named $portmap ptal slpd printbill hplip
|
||||
# Should-Start: dbus $named $portmap ptal slpd printbill hplip
|
||||
# Should-Stop: $portmap
|
||||
# Default-Start: 2 3 5
|
||||
# Default-Stop: 0 1 6
|
||||
|
@ -22,7 +22,7 @@ License: GPL v2 or later
|
||||
Group: Hardware/Printing
|
||||
Summary: The Common UNIX Printing System
|
||||
Version: 1.3.7
|
||||
Release: 15
|
||||
Release: 18
|
||||
Requires: cups-libs = %{version}, cups-client = %{version}
|
||||
Requires: ghostscript_any, ghostscript-fonts-std, foomatic-filters
|
||||
Requires: util-linux /usr/bin/pdftops
|
||||
@ -423,9 +423,14 @@ rm -rf $RPM_BUILD_ROOT/usr/share/locale/no
|
||||
%{_datadir}/locale/*/cups_*
|
||||
|
||||
%changelog
|
||||
* Thu May 15 2008 kssingvo@suse.de
|
||||
- renamed use of CUPS_PDFTOPS to HAVE_PDFTOPS in pdftops.c, to
|
||||
avoid execute of gs (bnc#390435)
|
||||
- removed earlykdm from init script, due to new less CPU consuming
|
||||
start of daemon now (bnc#388007)
|
||||
* Wed May 07 2008 kssingvo@suse.de
|
||||
- merged both pdftops patches to one
|
||||
- removed "recommended" remover (bugzilla#387267)
|
||||
- removed "recommended" remover (bnc#387267)
|
||||
* Tue Apr 22 2008 kssingvo@suse.de
|
||||
- new version of pdftops filter from svn extracted
|
||||
- changed the perror() calls in pdftops.c for cups-1.3.x compatibility
|
||||
|
Loading…
x
Reference in New Issue
Block a user