r/linux • • Feb 08 '12
Are constant system wide changes the reason why 3rd party commercial apps do not come to Linux?
I came about this tweet! from Miguel de Icaza that made a lot of sense to me. So thought it would be nice to know what r/Linux has to say...
Edit: My usage of the phrase "system wide cheanges" is probably not even what I wished to convey. I would suggest it be read as "changes to critical components".
6
Upvotes
View all comments
Show parent comment
22
u/wadcann Feb 08 '12 edited Feb 08 '12
tailchanged syntax so that "tail +3" refers to a file instead of being equivalent to "tail -n+3". That broke the update scripts that Loki put out.Let's look at some other games, the main source of binary-only software I use. Note that I'm omitting games that do work:
Now, maybe you can blame Loki, Michael Simms/LGP, Ryan Gordon, and the other good Linux commercial game folks for various breakages. But if even these very-experienced, knowledgeable people hit potholes in their packaging and hit some unavoidable breakages that were later introduced via binary incompatibility, how is Joe Smith Developer going to deal with something like this? At one point, there were Linux ports of Raptor: Call of the Shadows and of Exile III floating around. I believe that both kind of vanished because they were hard to package and support. Do you have a shell script that runs to select the architecture and then execs the real binary? How do you deal with shared libraries? Do you set LD_PRELOAD, LD_LIBRARY_PATH (and do you overwrite or append to these), or use -rpath when linking to use any shared libraries that you ship? What if the Linux dynamic loader's operation changes? Do you use a systemwide SDL (and worry that behavioral changes like the killing of a built-in alt-enter fullscreen toggle will go away or that the thing will be missing) or a local one (and worry that you won't be able to talk to current sound systems)? How do you name joysticks? Maybe Windows has the same problem, but on Linux, while you can rig up udevd to provide persistent identifiers for a particular joystick, Linux distros do not handle this by default (as Linux does via /dev/disk/by-uuid for drive partitions or distro vendors do via identifying NICs via MAC and renaming during the init process). If I have four joysticks (I do) plugged into my system, what happens when next boot, /dev/input/js1 refers to my throttle instead of my gamepad? SDL identifies the things by number, and this order just comes from Linux, so that doesn't solve this problem. And, heck, even the /dev/input/js1 name is a shift from /dev/js1 that broke some software. A while back, Jonathan Blow was posting on Reddit when he was trying to port Braid to Linux. He was trying to get direct access to the mouse events, sans acceleration, without running in fullscreen and thus using DGA mouse, which DirectX provided a mechanism for on Windows. He was frustrated that he couldn't get that going on Linux; I don't think even XInput provides that.
Sure, Windows has backwards-compatibility issues too, but one legitimate, real strength that Microsoft has over the Linux world is that it puts a lot of work into the dirty, ugly job of providing backwards binary compatibility, even if it results in a lot of cruft. The Linux world may do the same thing 99% of the time, but it only takes one breakage to take down a software package, and that extra 1% matters. I can more reliably run an old Windows or MS-DOS game on Linux via DosBox or WINE than I likely can an old Linux binary (and if you want to say that a Linux chroot is more comparable, then you've got merging .Xauthority files, a different filesystem to deal with, DGA and audio issues still being present....
I like Linux, and I use it in preference to Windows. But you'd be kidding yourself if you said that Linux compares well to Windows if you are:
Other fun stuff includes things like:
Linux has a lot of fragmentation. Yeah, it's cool to have lots of choice and competition, but there's a very real dark side to this. That fragmentation into lots of different distros and desktop environments makes it more expensive to package, test, and support something on different distros and environments. You want to sell a daemon? Well, in Debian squeeze, with traditional SysV init, it gets registered to run in one place. Ubuntu uses upstart, so that daemon registers itself to start somewhere else. If you're writing help stuff, you can either do all this for each distro (different instructions, troubleshooting, and so forth) or you choose one distro to support. On some distros (Ubuntu), running a command as root means running sudo. On some (Debian, Red Hat), it means using su. On others (IIRC WinLinux), the user is always root.
Admin tools differ wildly across distros. While command-line tools like ifconfig look pretty similar, GUI tools are all over the place. The way in which one adds a printer has radically-changed across the years. You could hand-configure lpd-ng, use Red Hat's old tcl/Tk-based tools, use CUPS via the web interface, use CUPS via GNOME configuration, and I'm sure that KDE has its own equivalent. Then SuSE has its yast tool, which I suspect overlaps. Imagine that you're a vendor trying to sell a printer that the user is just going to pull out of the box and use. Imagine even trying to get the user to stick a CD/DVD that ships with the printer in the drive and have it work. There's no autoexecute standard. Is the user using a typical distro and DE, which I believe auto-mounts? Are they using autofs to mount media? Does their CD live at /mnt/cd, /mnt/cdrom, /misc/cd...? Windows isn't innocent of moving admin tools around either, but it's on a whole different level.
[continued in child]