From owner-svn-ports-all@FreeBSD.ORG Sun Aug 17 16:05:24 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1DDABCEF; Sun, 17 Aug 2014 16:05:24 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 E41B7276D; Sun, 17 Aug 2014 16:05:23 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s7HG5NNB083968; Sun, 17 Aug 2014 16:05:23 GMT (envelope-from adamw@FreeBSD.org) Received: (from adamw@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s7HG5NJP083967; Sun, 17 Aug 2014 16:05:23 GMT (envelope-from adamw@FreeBSD.org) Message-Id: <201408171605.s7HG5NJP083967@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: adamw set sender to adamw@FreeBSD.org using -f From: Adam Weinberger Date: Sun, 17 Aug 2014 16:05:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r365198 - head/print/gnome-cups-manager/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.18-1 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: Sun, 17 Aug 2014 16:05:24 -0000 Author: adamw Date: Sun Aug 17 16:05:23 2014 New Revision: 365198 URL: http://svnweb.freebsd.org/changeset/ports/365198 QAT: https://qat.redports.org/buildarchive/r365198/ Log: Fix build with newer clang. Added: head/print/gnome-cups-manager/files/patch-libgnomecups__snmpkit__structfill.C (contents, props changed) Added: head/print/gnome-cups-manager/files/patch-libgnomecups__snmpkit__structfill.C ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/gnome-cups-manager/files/patch-libgnomecups__snmpkit__structfill.C Sun Aug 17 16:05:23 2014 (r365198) @@ -0,0 +1,49 @@ +--- ./libgnomecups/snmpkit/structfill.C.orig 2014-08-17 11:53:38.000000000 -0400 ++++ ./libgnomecups/snmpkit/structfill.C 2014-08-17 11:55:45.000000000 -0400 +@@ -28,7 +28,7 @@ + #include + #include + #include +-#include ++#include + #include + + #include "snmpkit" +@@ -91,22 +91,22 @@ + counters or large ints */ + if(curber->type()==INT_TAG && cur->type==COUNTER_TAG) + // these errors are minor enough and simple enough to fix +- cerr << "Warning: Counter returned when Integer expected for " ++ std::cerr << "Warning: Counter returned when Integer expected for " + << cur->oidstr << " Buggy firmware?\n"; + else if(curber->type()==COUNTER_TAG && cur->type==INT_TAG) + // these errors are minor enough and simple enough to fix +- cerr << "Warning: Integer returned when Counter expected for " ++ std::cerr << "Warning: Integer returned when Counter expected for " + << cur->oidstr << " Buggy firmware?\n"; + else{ +- ios::fmtflags opts=ios::hex; +- opts=cerr.flags(opts); +- cerr << "Warning: Printer returned a value of type 0x" ++ std::ios::fmtflags opts=std::ios::hex; ++ opts=std::cerr.flags(opts); ++ std::cerr << "Warning: Printer returned a value of type 1x" + << static_cast(curber->type()) + << " when a value of 0x" + << static_cast(cur->type) + << " was expected for " << cur->oidstr + << " Buggy firmware? Skipping.\n"; +- cerr.flags(opts); ++ std::cerr.flags(opts); + retval=0; + break; + } +@@ -177,7 +177,7 @@ + throw SNMPNoResponseException(); + + if(!fillStruct(retseq,(unsigned char*)tobefilled)){ +- cerr << "Warning: printer did not respond with a value for one of the " ++ std::cerr << "Warning: printer did not respond with a value for one of the " + << "OIDs. Buggy firmware?\n"; + return NULL; + }