Tags:
create new tag
, view all tags

Question

FreeBSD uses it's own BSD diff and patch tools that differ slightly from the GNU versions of these tools. GNU tools can be installed but they get renamed to gdiff and gpatch to avoid confusion for most software tools.

In addition FreeBSD installations should add /usr/local/bin to {SafeEnvPath} since gdiff and gpatch are placed in this directory. But afterward, how do I change Twiki to use gdiff and gpatch rather than diff and patch?

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: 6.1-STABLE FreeBSD AMD64
Web server: Apache/2.2.3
Perl version: v5.8.8 built for amd64-freebsd
Client OS: Gentoo Linux 2.6.16-suspend2-r8
Web Browser: konqueror, firefox, opera et al.
Categories: Installation

-- HeikkiSoerum - 17 Aug 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

One month passed, closing question as unanswered.

-- PeterThoeny - 01 Oct 2006

Hi, I've found an workaround on Freebsd. First create symlinks in the /usr/local/bin/ directory that point patch -> ./gpatch and diff -> ./gdiff.

Then change {SafeEnvPath} in LocalSite.cfg to include /usr/local/bin in the beginning rather than then end of {SafeEnvPath}. Then TWiki will detect gnu patch and gnu diff as the "prefered" diff choice.

-- HeikkiSoerum - 11 Nov 2006

 
Change status to:
Topic revision: r3 - 2006-11-11 - HeikkiSoerum
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.