From owner-svn-ports-all@freebsd.org Tue Nov 8 20:53:01 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31B47C37B2B; Tue, 8 Nov 2016 20:53:01 +0000 (UTC) (envelope-from cy@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 mx1.freebsd.org (Postfix) with ESMTPS id DAF88A0B; Tue, 8 Nov 2016 20:53:00 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uA8Kr024095474; Tue, 8 Nov 2016 20:53:00 GMT (envelope-from cy@FreeBSD.org) Received: (from cy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uA8KqxIH095471; Tue, 8 Nov 2016 20:52:59 GMT (envelope-from cy@FreeBSD.org) Message-Id: <201611082052.uA8KqxIH095471@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cy set sender to cy@FreeBSD.org using -f From: Cy Schubert Date: Tue, 8 Nov 2016 20:52:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r425761 - in head/print/xpp: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2016 20:53:01 -0000 Author: cy Date: Tue Nov 8 20:52:59 2016 New Revision: 425761 URL: https://svnweb.freebsd.org/changeset/ports/425761 Log: Replace cupsTempFile() with tmpnam(). cupsTempFile() no longer exists. PR: 214332 Modified: head/print/xpp/Makefile head/print/xpp/files/patch-xpp.cxx Modified: head/print/xpp/Makefile ============================================================================== --- head/print/xpp/Makefile Tue Nov 8 19:54:15 2016 (r425760) +++ head/print/xpp/Makefile Tue Nov 8 20:52:59 2016 (r425761) @@ -3,7 +3,7 @@ PORTNAME= xpp PORTVERSION= 1.5 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= print MASTER_SITES= SF/cups/${PORTNAME}/${PORTVERSION} Modified: head/print/xpp/files/patch-xpp.cxx ============================================================================== --- head/print/xpp/files/patch-xpp.cxx Tue Nov 8 19:54:15 2016 (r425760) +++ head/print/xpp/files/patch-xpp.cxx Tue Nov 8 20:52:59 2016 (r425761) @@ -1,6 +1,32 @@ --- xpp.cxx.orig 2004-12-06 11:00:04.000000000 -0800 -+++ xpp.cxx 2011-12-03 22:11:00.788941301 -0800 -@@ -2500,7 +2500,7 @@ ++++ xpp.cxx 2016-11-08 12:49:34.251265000 -0800 +@@ -30,6 +30,7 @@ + * Include necessary headers... + */ + ++#include + #include "xpp.h" + + #ifndef WIN32 +@@ -48,7 +49,7 @@ + * Globals... + */ + +-char tempfile[1024]; /* Temporary file for printing from stdin */ ++static char *tempfile; /* Temporary file for printing from stdin */ + + /* + * Parse options and send files for printing. +@@ -651,7 +652,7 @@ + #endif + #endif // !WIN32 + +- temp = fopen(cupsTempFile(tempfile, sizeof(tempfile)), "w"); ++ temp = fopen((tempfile = tmpnam(NULL)), "w"); + + if (temp == NULL) + { +@@ -2500,7 +2501,7 @@ // Redraw the destination menu in the main window printerPack->parent()->redraw(); @@ -9,7 +35,7 @@ } -@@ -2674,7 +2674,7 @@ +@@ -2674,7 +2675,7 @@ // Redraw the destination menu in the main window printerPack->parent()->redraw();