From owner-freebsd-questions@FreeBSD.ORG Sat Jun 21 09:54:11 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2B2D37B401 for ; Sat, 21 Jun 2003 09:54:11 -0700 (PDT) Received: from geminix.org (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id D77CF43F85 for ; Sat, 21 Jun 2003 09:54:10 -0700 (PDT) (envelope-from gemini@geminix.org) Received: from pd9e105c0.dip.t-dialin.net ([217.225.5.192] helo=geminix.org) by geminix.org with asmtp (TLSv1:AES256-SHA:256) (Exim 3.36 #1) id 19Tlcu-000KOM-00; Sat, 21 Jun 2003 18:54:08 +0200 Message-ID: <3EF48DAD.1040702@geminix.org> Date: Sat, 21 Jun 2003 18:54:05 +0200 From: Uwe Doering Organization: Private UNIX Site User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030510 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Rev. Joe Doyle Ardent" References: <20030620022316.GA52638@nebcorp.com> In-Reply-To: <20030620022316.GA52638@nebcorp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Strange formatting error with pkg_info after using portupgrade X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2003 16:54:12 -0000 Hi, Rev. Joe Doyle Ardent wrote: > Hello, everyone, I have a fairly strange error, that has popped > up on both machines where I have used portupgrade (both 4.8-RELEASE > boxes). Here is an example output: > > please:~> pkg_info |head > BitTorrent-3.2.1b "Peer to Peer file sharing/mirroring."Mesa-3.4.2_2 > A graphics library similar to SGI's OpenGL > ORBit-0.5.17 High-performance CORBA ORB with support for the C language > XFree86-4.3.0,1 X11/XFree86 core distribution (complete, using mini/meta-po > > Note how Mesa's entry begins immediately after the last > character of BitTorrent's. > [...] While I actually don't know why the terminating newline is missing in some cases I noticed that there was an MFC to RELENG_4 a couple of days ago that makes 'pkg_info' add a newline if the comment line doesn't have one. You may want to take a look at FreeBSD's CVS repository (src/usr.sbin/pkg_install/info/show.c) in order to build and install a fixed 'pkg_info'. Or if it doesn't happen often you could just as well edit the respective '+COMMENT' file in the '/var/db/pkg' hierarchy. The pragmatic approach. ;-) Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net