From owner-freebsd-questions@FreeBSD.ORG Sat Dec 5 22:49:27 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C80051065695 for ; Sat, 5 Dec 2009 22:49:27 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id 8B7C78FC26 for ; Sat, 5 Dec 2009 22:49:27 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id nB5MnQV3073955 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 5 Dec 2009 16:49:26 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id nB5MnQLb087814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 5 Dec 2009 16:49:26 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id nB5MnQ3U087811; Sat, 5 Dec 2009 16:49:26 -0600 (CST) (envelope-from dan) Date: Sat, 5 Dec 2009 16:49:26 -0600 From: Dan Nelson To: Sagara Wijetunga Message-ID: <20091205224925.GD84026@dan.emsphone.com> References: <4B18CD57.5090108@tomahawk.com.sg> <20091204193219.GA84026@dan.emsphone.com> <4B19EC94.8040901@tomahawk.com.sg> <20091205065519.GC84026@dan.emsphone.com> <4B1A1686.8050807@tomahawk.com.sg> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B1A1686.8050807@tomahawk.com.sg> X-OS: FreeBSD 7.2-STABLE User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Sat, 05 Dec 2009 16:49:27 -0600 (CST) X-Scanned-By: MIMEDefang 2.45 Cc: freebsd-questions@freebsd.org Subject: Re: malformed man pages [SOLVED] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2009 22:49:27 -0000 In the last episode (Dec 05), Sagara Wijetunga said: > Dan Nelson wrote: > > > > Since your output differs from mine, the manpages are getting damaged > > before they reach /usr/bin/less. > > > > Have you maybe installed your own copy of GNU groff? The original > > source enables ANSI escapes in manpages, but the version in FreeBSD > > disables them. Make sure your /usr/share/tmac/troffrc matches the > > content at > > http://svn.freebsd.org/viewvc/base/stable/8/contrib/groff/tmac/troffrc?view=markup > > , especially the last 10 lines or so, and check for other installations > > of groff. > > Yes, we have installed the groff-1.20.1.tar.gz from > http://www.gnu.org/software/groff/ . > > Patch our troffrc to match FreeBSD troffrc solved the problem. Any idea is > this all we got to do? Anyway, Dan, thank you very much for the info. For all base FreeBSD packages that you have replaced, you should make sure you apply any patches that were made to the FreeBSD version. I'm not sure of the official way to do this, but this seems reasonable: # save typing later SVN=svn://svn.freebsd.org/base/ # cd into a SVN checked-out copy of the source tree $ cd /u01/cvs/freebsd/stable/8/contrib/groff # determine which vendor branch the source came from, and what revision $ svn log -v | less # svn logs indicate that the last vendor import was 1.19.2 # now generate a diff between the vendor source and the FreeBSD version $ svn diff $SVN/vendor/groff/1.19.2/contrib/groff $SVN/stable/8/contrib/groff Unfortunately, the last step doesn't seem to work if you give it local paths; they have to point to svn://svn.freebsd.org/ . -- Dan Nelson dnelson@allantgroup.com