1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

Mute "paperconf not found error".

Submitted by:	jkim
This commit is contained in:
Maho Nakata 2008-03-07 21:56:45 +00:00
parent 5e9954c906
commit 04c84963bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=208628
9 changed files with 162 additions and 0 deletions

View File

@ -0,0 +1,18 @@
--- psprint/source/printer/printerinfomanager.cxx.orig 2007-12-12 09:56:19.000000000 -0500
+++ psprint/source/printer/printerinfomanager.cxx 2008-02-28 17:46:34.000000000 -0500
@@ -145,12 +145,12 @@
bool bSuccess = false;
// try libpaper
- #ifdef SOLARIS
+ #ifdef LINUX
// #i78617# workaround missing paperconf command; on e.g. Linux
// the 2>/dev/null works on the started shell also
- FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
- #else
FILE* pPipe = popen( "paperconf 2>/dev/null", "r" );
+ #else
+ FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
#endif
if( pPipe )
{

View File

@ -0,0 +1,18 @@
--- psprint/source/printer/printerinfomanager.cxx.orig 2007-12-12 09:56:19.000000000 -0500
+++ psprint/source/printer/printerinfomanager.cxx 2008-02-28 17:46:34.000000000 -0500
@@ -145,12 +145,12 @@
bool bSuccess = false;
// try libpaper
- #ifdef SOLARIS
+ #ifdef LINUX
// #i78617# workaround missing paperconf command; on e.g. Linux
// the 2>/dev/null works on the started shell also
- FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
- #else
FILE* pPipe = popen( "paperconf 2>/dev/null", "r" );
+ #else
+ FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
#endif
if( pPipe )
{

View File

@ -0,0 +1,18 @@
--- psprint/source/printer/printerinfomanager.cxx.orig 2007-12-12 09:56:19.000000000 -0500
+++ psprint/source/printer/printerinfomanager.cxx 2008-02-28 17:46:34.000000000 -0500
@@ -145,12 +145,12 @@
bool bSuccess = false;
// try libpaper
- #ifdef SOLARIS
+ #ifdef LINUX
// #i78617# workaround missing paperconf command; on e.g. Linux
// the 2>/dev/null works on the started shell also
- FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
- #else
FILE* pPipe = popen( "paperconf 2>/dev/null", "r" );
+ #else
+ FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
#endif
if( pPipe )
{

View File

@ -0,0 +1,18 @@
--- psprint/source/printer/printerinfomanager.cxx.orig 2007-12-12 09:56:19.000000000 -0500
+++ psprint/source/printer/printerinfomanager.cxx 2008-02-28 17:46:34.000000000 -0500
@@ -145,12 +145,12 @@
bool bSuccess = false;
// try libpaper
- #ifdef SOLARIS
+ #ifdef LINUX
// #i78617# workaround missing paperconf command; on e.g. Linux
// the 2>/dev/null works on the started shell also
- FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
- #else
FILE* pPipe = popen( "paperconf 2>/dev/null", "r" );
+ #else
+ FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
#endif
if( pPipe )
{

View File

@ -0,0 +1,18 @@
--- psprint/source/printer/printerinfomanager.cxx.orig 2007-12-12 09:56:19.000000000 -0500
+++ psprint/source/printer/printerinfomanager.cxx 2008-02-28 17:46:34.000000000 -0500
@@ -145,12 +145,12 @@
bool bSuccess = false;
// try libpaper
- #ifdef SOLARIS
+ #ifdef LINUX
// #i78617# workaround missing paperconf command; on e.g. Linux
// the 2>/dev/null works on the started shell also
- FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
- #else
FILE* pPipe = popen( "paperconf 2>/dev/null", "r" );
+ #else
+ FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
#endif
if( pPipe )
{

View File

@ -0,0 +1,18 @@
--- psprint/source/printer/printerinfomanager.cxx.orig 2007-12-12 09:56:19.000000000 -0500
+++ psprint/source/printer/printerinfomanager.cxx 2008-02-28 17:46:34.000000000 -0500
@@ -145,12 +145,12 @@
bool bSuccess = false;
// try libpaper
- #ifdef SOLARIS
+ #ifdef LINUX
// #i78617# workaround missing paperconf command; on e.g. Linux
// the 2>/dev/null works on the started shell also
- FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
- #else
FILE* pPipe = popen( "paperconf 2>/dev/null", "r" );
+ #else
+ FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
#endif
if( pPipe )
{

View File

@ -0,0 +1,18 @@
--- psprint/source/printer/printerinfomanager.cxx.orig 2007-12-12 09:56:19.000000000 -0500
+++ psprint/source/printer/printerinfomanager.cxx 2008-02-28 17:46:34.000000000 -0500
@@ -145,12 +145,12 @@
bool bSuccess = false;
// try libpaper
- #ifdef SOLARIS
+ #ifdef LINUX
// #i78617# workaround missing paperconf command; on e.g. Linux
// the 2>/dev/null works on the started shell also
- FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
- #else
FILE* pPipe = popen( "paperconf 2>/dev/null", "r" );
+ #else
+ FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
#endif
if( pPipe )
{

View File

@ -0,0 +1,18 @@
--- psprint/source/printer/printerinfomanager.cxx.orig 2007-12-12 09:56:19.000000000 -0500
+++ psprint/source/printer/printerinfomanager.cxx 2008-02-28 17:46:34.000000000 -0500
@@ -145,12 +145,12 @@
bool bSuccess = false;
// try libpaper
- #ifdef SOLARIS
+ #ifdef LINUX
// #i78617# workaround missing paperconf command; on e.g. Linux
// the 2>/dev/null works on the started shell also
- FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
- #else
FILE* pPipe = popen( "paperconf 2>/dev/null", "r" );
+ #else
+ FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
#endif
if( pPipe )
{

View File

@ -0,0 +1,18 @@
--- psprint/source/printer/printerinfomanager.cxx.orig 2007-12-12 09:56:19.000000000 -0500
+++ psprint/source/printer/printerinfomanager.cxx 2008-02-28 17:46:34.000000000 -0500
@@ -145,12 +145,12 @@
bool bSuccess = false;
// try libpaper
- #ifdef SOLARIS
+ #ifdef LINUX
// #i78617# workaround missing paperconf command; on e.g. Linux
// the 2>/dev/null works on the started shell also
- FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
- #else
FILE* pPipe = popen( "paperconf 2>/dev/null", "r" );
+ #else
+ FILE* pPipe = popen( "sh -c paperconf 2>/dev/null", "r" );
#endif
if( pPipe )
{