Re:Difftastic: A diff that understands syntax
by gkfasdfasdf on Tuesday March 29, 2022 @11:09AM
(#30843587)
The method I posted above doesn't write anything to /usr/local. Root isn't required. Everything is written under ~.
Re:Difftastic: A diff that understands syntax
by loxias on Tuesday March 29, 2022 @11:31AM
(#30843924)
Whoa really?
I'm sorry, and retract my ignorant assumption! Going to try it out now.
Re:Difftastic: A diff that understands syntax
by Wilfred on Tuesday March 29, 2022 @12:42PM
(#30844954)
There are a few packages available, e.g. https://aur.archlinux.org/packages/difftastic and https://pkgsrc.se/wip/difftastic.
I've also had requests from Alpine Linux packagers to allow dynamic linking to parsers. This is something I want to support in future, once I'm happy with the basic diffing logic.
It's considered really sloppy and unmaintainable to admin a system like that. Things quickly get out of hand.
That strategy _does_ work if you isolate it to a chroot or a container, but littering /usr/local with all sorts of locally compiled upstream is just asking for future pain. Security updates, library incompatibilities, &c.
Prebuilt binaries might be nice, but I don't expect them for random projects. (and I wouldn't have used them if offered) I do think it's a reasonable expectation to be able to build software w/o essentially setting up a new userland just for that tool though. :)