Thread: [Fremantle Maemo5+Harmattan Maemo6] Midnight Commander
View Single Post
ginggs's Avatar
Posts: 306 | Thanked: 582 times | Joined on Mar 2012
#116
Originally Posted by Mentalist Traceur View Post
But if we must expect a GNU-compatible diff, I'd recommend we rather have mc patched to invoke /usr/bin/gnu/diff directly, and not screw with people's PATHs.
This was the first solution I considered, but it forces one to have have the diffutils-gnu package installed.
What if the user has installed their own diff and removed busybox's symlink?
What if the user doesn't even want diff functionality?

Then joerg_rw posted his suggestion to use a wrapper to modify the PATH, and I realized this is the behaviour I want:

If the user has diffutils-gnu installed, prefer the diff from there. Otherwise, use whichever diff is found in the PATH.

Remember the relationship with diffutils-gnu is only a Suggests, not a Recommends or a Depends.

Last edited by ginggs; 2015-01-24 at 10:58.
 

The Following 3 Users Say Thank You to ginggs For This Useful Post: