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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-11-11 - HeikkiSoerum
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.