Index: head/print/xpp/Makefile =================================================================== --- head/print/xpp/Makefile (revision 425760) +++ head/print/xpp/Makefile (revision 425761) @@ -1,34 +1,34 @@ # Created by: Nate Lawson # $FreeBSD$ PORTNAME= xpp PORTVERSION= 1.5 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= print MASTER_SITES= SF/cups/${PORTNAME}/${PORTVERSION} MAINTAINER= cy@FreeBSD.org COMMENT= X11-based printer manager for CUPS LIB_DEPENDS= libcups.so:print/cups \ libfltk.so.1:x11-toolkits/fltk USES= gmake tar:bzip2 GNU_CONFIGURE= yes CFLAGS+= -D_IPP_PRIVATE_STRUCTURES PLIST_FILES= bin/xpp share/doc/xpp/README MAKE_JOBS_UNSAFE= yes post-configure: @${REINPLACE_CMD} -e 's|$$(all_includes)|-I ${PREFIX}/include|' \ ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|printFiles::get|get|' ${WRKSRC}/xpp.h post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/xpp ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${PREFIX}/share/doc/xpp .include Index: head/print/xpp/files/patch-xpp.cxx =================================================================== --- head/print/xpp/files/patch-xpp.cxx (revision 425760) +++ head/print/xpp/files/patch-xpp.cxx (revision 425761) @@ -1,20 +1,46 @@ --- 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(); - printerPack->draw(); + printerPack->redraw(); } -@@ -2674,7 +2674,7 @@ +@@ -2674,7 +2675,7 @@ // Redraw the destination menu in the main window printerPack->parent()->redraw(); - printerPack->draw(); + printerPack->redraw(); return(dest_index); }