I wanted to run Heavy Metal FAKK 2 under Arch Linux, but sadly, it segfaulted. Appearantly it does so with any zlib younger than 1.1.4. To solve this I've used an ugly hack I saw somewhere on the web, and installed zlib 1.1.4 in /usr/local/games/oldlibs. The result is loki-compatibility, which really just is a package with zlib 1.1.4 in /usr/local/games/oldlibs and a profile.d script that pretty much says:
#!/bin/sh export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/games/oldlibs
This seems to work!
Just wanted to see how "pretty" this solution would be considered to be. You can check the PKGBUILD out here. Any spontaneous thoughts?
You don't want an old zlib library linked in by default for other binaries. Zlib is a quite important lib. Installing this old leaky version on your system would mean every service that uses it will be vulnerable.
I would suggest making wrapper scripts for these loki games, not adding a LD_LIBRARY_PATH to the global profile.d directory.
Thanks for the reply, I was suspecting as much. :oops:
How is the old zlib "leaky"?
Security vulnerabilities are found in zlib now and then. Since it is a very common used library, it's dangerous to have old old versions of this lib on your system in a default library path. Every application that uses zlib is vulnerable for the bugs in it.
How about ln -s the newer zlib to the old file name.
Frumpus ♥ addict