Date: Tue, 26 Aug 2003 11:39:13 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Manuel Rabade - MiG <mig@mig-29.net>, FreeBSD-Questions@freebsd.org Subject: Re: Strange output in pkg_info and missing ports in pkg_version Message-ID: <20030826103913.GB37256@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20030826032510.GB17286@mig-29.net> References: <20030826032510.GB17286@mig-29.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030826103913.GB37256>