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
--
HeikkiSoerum - 17 Aug 2006
Answer
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