marcov wrote:Though I agree with Galleon that this is a bad practice.
This sentense doesn't help anybody. For me it's only bla-bla, until you'll provide an alternative.
Not doing this is a perfectly fine alternative. It is simply not doable to manage all files on a system from an application installer perspective. You simply can't do much more than the package system provides, since that is all you can rely on.
And I gave a reason directly following it, but I'll rephrase it:
Even if you find a file, you don't know where that file came from, and only have a handful of feeble heuristics that something is wrong. And for that you will have the package break when there is a wrong assumption, bitrot or bug in the script.
marcov wrote:This way you don't even check if the compiler is part of a different package. IOW you are not even 100% sure it is not from a different debian package that also contains FB.
That's why the script should offer different possibilities to solve the conflict (or cancel the installation).
It would break systems that try to run the install unattended. Big chance that Debian/Ubuntu won't allow this in.
If you really think this problem is your major management/support problem, simply install a script with the package, and make a system out of asking the output of the script. (the system profile) in any support platform (maillist, forum, tracker etc).
At least when that breaks, you don't have to do a new release, just put a new version of the script online.
But that is something else then running it as default, and get all the flak if it causes problems.
marcov wrote:If I look at the manpage it sounds like it belongs to either GTK or GNome.
I doesn't belong to GTK (haven't seen anything about this yet). So it should be GNome.
So if zenity is GNome, it should be avialable on most GUI distros. When the preinst script doesn't find zenity, it's a non-GUI system and the script can use a text based UI at the console. So KDE is the open issue now.
It might be a non GNOME, non KDE gui too. IOW run from GUI (no textconsole), but no kdialog or zenity. And it might be run as part of some packaging tool, or more way installer. And of course there are the Centos users that run age old gnomes.
Anyway, while I know you judge input on who writes it, not on content, at least take this hint: check with some ubuntu source (maillist or so) if they actually encourage such scripts before putting a lot of time in it.