From owner-svn-ports-branches@freebsd.org Fri Dec 13 15:16:08 2019 Return-Path: Delivered-To: svn-ports-branches@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 282361D0316; Fri, 13 Dec 2019 15:16:08 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47ZDlD0HFhz47vT; Fri, 13 Dec 2019 15:16:08 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 04BBCE0D5; Fri, 13 Dec 2019 15:16:08 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBDFG7kp016497; Fri, 13 Dec 2019 15:16:07 GMT (envelope-from tijl@FreeBSD.org) Received: (from tijl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBDFG7cf016496; Fri, 13 Dec 2019 15:16:07 GMT (envelope-from tijl@FreeBSD.org) Message-Id: <201912131516.xBDFG7cf016496@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tijl set sender to tijl@FreeBSD.org using -f From: Tijl Coosemans Date: Fri, 13 Dec 2019 15:16:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r520043 - in branches/2019Q4/print/cups-filters: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: tijl X-SVN-Commit-Paths: in branches/2019Q4/print/cups-filters: . files X-SVN-Commit-Revision: 520043 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Dec 2019 15:16:08 -0000 Author: tijl Date: Fri Dec 13 15:16:07 2019 New Revision: 520043 URL: https://svnweb.freebsd.org/changeset/ports/520043 Log: MFH: r520041 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 Approved by: ports-secteam (blanket) Added: branches/2019Q4/print/cups-filters/files/patch-backend-implicitclass.c - copied unchanged from r520041, head/print/cups-filters/files/patch-backend-implicitclass.c Modified: branches/2019Q4/print/cups-filters/Makefile Directory Properties: branches/2019Q4/ (props changed) Modified: branches/2019Q4/print/cups-filters/Makefile ============================================================================== --- branches/2019Q4/print/cups-filters/Makefile Fri Dec 13 15:07:46 2019 (r520042) +++ branches/2019Q4/print/cups-filters/Makefile Fri Dec 13 15:16:07 2019 (r520043) @@ -2,6 +2,7 @@ PORTNAME= cups-filters PORTVERSION= 1.25.6 +PORTREVISION= 1 CATEGORIES= print MASTER_SITES= https://www.openprinting.org/download/cups-filters/ Copied: branches/2019Q4/print/cups-filters/files/patch-backend-implicitclass.c (from r520041, head/print/cups-filters/files/patch-backend-implicitclass.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2019Q4/print/cups-filters/files/patch-backend-implicitclass.c Fri Dec 13 15:16:07 2019 (r520043, copy of r520041, head/print/cups-filters/files/patch-backend-implicitclass.c) @@ -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);