Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 2019 15:06:20 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r520041 - in head/print/cups-filters: . files
Message-ID:  <201912131506.xBDF6KE7009979@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Fri Dec 13 15:06:19 2019
New Revision: 520041
URL: https://svnweb.freebsd.org/changeset/ports/520041

Log:
  Add a patch to let the implicitclass backend run the ipp backend.
  
  This fixes printer queues for remote printers detected by cups-browsed.
  
  PR:		242615
  Submitted by:	J.R. Oldroyd <fbsd@opal.com>

Added:
  head/print/cups-filters/files/patch-backend-implicitclass.c   (contents, props changed)
Modified:
  head/print/cups-filters/Makefile

Modified: head/print/cups-filters/Makefile
==============================================================================
--- head/print/cups-filters/Makefile	Fri Dec 13 15:02:25 2019	(r520040)
+++ head/print/cups-filters/Makefile	Fri Dec 13 15:06:19 2019	(r520041)
@@ -2,6 +2,7 @@
 
 PORTNAME=	cups-filters
 PORTVERSION=	1.25.12
+PORTREVISION=	1
 CATEGORIES=	print
 MASTER_SITES=	https://www.openprinting.org/download/cups-filters/
 

Added: head/print/cups-filters/files/patch-backend-implicitclass.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/cups-filters/files/patch-backend-implicitclass.c	Fri Dec 13 15:06:19 2019	(r520041)
@@ -0,0 +1,29 @@
+--- backend/implicitclass.c.orig	2019-11-29 20:18:29 UTC
++++ backend/implicitclass.c
+@@ -98,7 +98,7 @@ main(int  argc,				/* I - Number of command-line args 
+   ipp_attribute_t *attr;
+   int     bytes;      /* Bytes copied */
+   char uri[HTTP_MAX_URI];
+-  char    *argv_nt[7];
++  char    *argv_nt[8];
+   int     outbuflen,filefd,exit_status,dup_status;
+   static const char *pattrs[] =
+                 {
+@@ -350,6 +350,7 @@ main(int  argc,				/* I - Number of command-line args 
+       /* We will send the filtered output of the pdftoippprinter.c to
+ 	 the IPP Backend*/
+       argv_nt[6] = tempfile_filter;
++      argv_nt[7] = NULL;
+       fprintf(stderr, "DEBUG: The filtered output of pdftoippprinter is written to file %s\n",
+ 	      tempfile_filter);
+ 
+@@ -383,7 +384,8 @@ main(int  argc,				/* I - Number of command-line args 
+       pid_t pid = fork();
+       if ( pid == 0 ) {
+ 	fprintf(stderr, "DEBUG: Started IPP Backend with pid: %d\n",getpid());
+-	execv("/usr/lib/cups/backend/ipp",argv_nt);
++	execv(CUPS_SERVERBIN "/backend/ipp",argv_nt);
++	exit(CUPS_BACKEND_FAILED);
+       } else {
+ 	int status;
+ 	waitpid(pid, &status, 0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912131506.xBDF6KE7009979>