anyc / steam-overlay

Gentoo overlay for Valve's Steam client and Steam-based games
GNU General Public License v2.0
199 stars 46 forks source link

Baldur's Gate II requires unknown libjson.so.0 #211

Open EoD opened 6 years ago

EoD commented 6 years ago
$ esteam -v
 * Unknown: libjson.so.0 needed by Baldur's Gate II Enhanced Edition/BaldursGateII

Unfortunately that file is not provided by any package in Gentoo, but I was able to work around the issue by creating this symlink:

steamapps/common/Baldur's Gate II Enhanced Edition/libjson.so.0 -> /usr/lib32/libjson-c.so.2
 $ equery b /usr/lib32/libjson-c.so.2
 * Searching for /usr/lib32/libjson-c.so.2 ... 
dev-libs/json-c-0.12 (/usr/lib32/libjson-c.so.2.0.1)
dev-libs/json-c-0.12 (/usr/lib32/libjson-c.so.2 -> libjson-c.so.2.0.1)

Would it be possible to somehow create this symlink via this overlay? Maybe in games-util/steam-games-meta with a steamgames_baldurs_gate_ii useflag?

chewi commented 6 years ago

Thanks for looking into this. You are right to link to that library, libjson.so.0 is a compatibility link provided by Debian. I would create a libjson-c-debian package akin to the libpcre-debian package I created earlier but annoyingly json-c-0.13 has a new soname so it might not be compatible. I would therefore need to create a binary-only SLOT. I'll take a closer look and speak to the maintainer when I get a minute.