From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 11 17:50:19 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95E3F16A4CE for ; Fri, 11 Feb 2005 17:50:19 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D0E143D55 for ; Fri, 11 Feb 2005 17:50:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1BHoJN1039310 for ; Fri, 11 Feb 2005 17:50:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1BHoJSR039309; Fri, 11 Feb 2005 17:50:19 GMT (envelope-from gnats) Resent-Date: Fri, 11 Feb 2005 17:50:19 GMT Resent-Message-Id: <200502111750.j1BHoJSR039309@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Christopher Sean Hilton Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BC1916A4CE for ; Fri, 11 Feb 2005 17:40:43 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50E8C43D49 for ; Fri, 11 Feb 2005 17:40:43 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j1BHehvE087114 for ; Fri, 11 Feb 2005 17:40:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j1BHegUg087113; Fri, 11 Feb 2005 17:40:42 GMT (envelope-from nobody) Message-Id: <200502111740.j1BHegUg087113@www.freebsd.org> Date: Fri, 11 Feb 2005 17:40:42 GMT From: Christopher Sean Hilton To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: ports/77394: The op port enables an annoying amount of debugging on stderr. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2005 17:50:19 -0000 >Number: 77394 >Category: ports >Synopsis: The op port enables an annoying amount of debugging on stderr. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 11 17:50:18 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Christopher Sean Hilton >Release: FreeBSD 5.3-STABLE >Organization: Unorganized >Environment: # uname -a FreeBSD alderaan.vindaloo.com 5.3-STABLE FreeBSD 5.3-STABLE #0: Wed Feb 9 23:16:25 EST 2005 root@alderaan:/usr/obj/usr/src/sys/GENERIC i386 # >Description: As built the op port generates a bunch of noisy output on stderr as it parses it's config file. I think this is debugging output for the op programmer. It makes the port less useful especially if the data on your tty was important before you ran op. >How-To-Repeat: Build the op port. Configure it and run it. >Fix: Substitute this patch-lex.l for the on that ships with the port: # cat files/patch-lex.l --- lex.l.orig Sun Jan 16 11:36:55 2005 +++ lex.l Sun Jan 16 13:09:52 2005 @@ -10,10 +10,11 @@ /* +-------------------------------------------------------------------+ */ #include -#include +#include #include #include "defs.h" +static int addarg(); static cmd_t *newcmd(); char *savestr(); @@ -47,15 +48,12 @@ #include #include -msg(va_alist) - va_dcl +msg(char *s,...) { #if 0 va_list ap; - char *s; - va_start(ap); - s = va_arg(ap, char *); + va_start(ap,s); fprintf(stderr,"line %d: ",yyline); vfprintf(stderr, s, ap); fputc('\n', stderr); >Release-Note: >Audit-Trail: >Unformatted: