From owner-freebsd-questions@FreeBSD.ORG Tue Aug 26 03:40:13 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 E83CD16A4BF for ; Tue, 26 Aug 2003 03:40:12 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 277AE43FDD for ; Tue, 26 Aug 2003 03:40:09 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h7QAdGBS089819 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Aug 2003 11:39:58 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h7QAdEoM089813; Tue, 26 Aug 2003 11:39:14 +0100 (BST) (envelope-from matthew) Date: Tue, 26 Aug 2003 11:39:13 +0100 From: Matthew Seaman To: Manuel Rabade - MiG , FreeBSD-Questions@freebsd.org Message-ID: <20030826103913.GB37256@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Manuel Rabade - MiG , FreeBSD-Questions@freebsd.org References: <20030826032510.GB17286@mig-29.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H1spWtNR+x+ondvy" Content-Disposition: inline In-Reply-To: <20030826032510.GB17286@mig-29.net> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-8.1 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: Re: Strange output in pkg_info and missing ports in pkg_version 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: Tue, 26 Aug 2003 10:40:13 -0000 --H1spWtNR+x+ondvy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 25, 2003 at 10:25:10PM -0500, Manuel Rabade - MiG wrote: > Hi everyone, i have FreeBSD 4.8 on my machine and everything seems > very well with my packages database, but yesterday i realized that > some XFree packages where missing in pkg_version, and they apperd > in pkg_info but without the new line character, i will show you: >=20 > mig@mig:~$ pkg_info > ... > ... > MuSE-0.8.1_1 Multiple Streaming Engine > ORBit-0.5.17 High-performance CORBA ORB with support for the C lan= guage > ORBit2-2.6.3 High-performance CORBA ORB with support for the C lan= guage > OpenSSH-askpass-1.2.2.2001.02.24 Graphical password applet for entering S= SH pass > phrase > XFree86-4.3.0,1 X11/XFree86 core distribution (complete, using mini/m= eta-po > XFree86-FontServer-4.3.0_1 XFree86-4 font serverXFree86-Server-4.3.0_8 XF= ree86-4 > X server and related programsXFree86-clients-4.3.0_2 XFree86-4 client pr= ograms=20 > and related filesXFree86-documents-4.3.0 XFree86-4 documentationXFree86-f= ont100d > pi-4.3.0 XFree86-4 bitmap 100 dpi fontsXFree86-font75dpi-4.3.0 XFree86-4 = bitmap=20 > 75 dpi fontsXFree86-fontCyrillic-4.3.0 XFree86-4 Cyrillic fontsXFree86-fo= ntDefau > ltBitmaps-4.3.0 XFree86-4 default bitmap fontsXFree86-fontEncodings-4.3.0= XFree8 > 6-4 font encoding filesXFree86-fontScalable-4.3.0 XFree86-4 scalable font= sXFree8 > 6-libraries-4.3.0_5 XFree86-4 libraries and headersXaw3d-1.5 A = 3-D Ath > ena Widget set that looks like Motif > Xft-2.1.2 A client-sided font API for X applications > aalib-1.4.r5_1 An ascii art library > antiword-0.33 An application to display Microsoft(tm) Word files > apache-1.3.28 The extremely popular Apache http server. Very fast,= very =20 This was a bug in the ports system which resulted in newlines being omitted from some of the package labels. If I remember correctly it happened quite soon after 5.0 came out, with the second try at making a switch from a separate pkg_comment file to having a COMMENT=3D variable in the Makefile. I believe it's quite harmless -- all it does is screw up the output of pkg_info(1), the installed ports themselves work just fine. A very heavy-handed way of fixing this (and profilgate of CPU cycles), would be to simply re-install all of the XFree86 packages: # portupgrade -fvi 'XFree86*' However, I think you might be able to solve the problem a lot more simply, just by adding a newline character at the end of the +COMMENT files in /var/db/pkg/{pkgname} -- eg. for the core XFree86 distribution, that would be: /var/db/pkg/XFree86-4.3.0,1/+COMMENT A quick way of doing that is: # cd /var/db/pkg # perl -ni.bak -e 'chomp; print "$_\n";' XFree86-*/+COMMENT Obviously, proceed with caution, make sure you have backups, yadda, yadda. Remember to delete the .bak files when you're done. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --H1spWtNR+x+ondvy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/SzjRdtESqEQa7a0RArtcAJwIRKOo57zVwXCaaZ501DkPfqB/vwCgiptH n3uyEtVAIasPTBTVmSd5xyc= =hOiR -----END PGP SIGNATURE----- --H1spWtNR+x+ondvy--