You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok. I managed to start it. The problem was that, the startup script start.sh contained the following lines:
LD_LIBRARY_PATH=./steamIntegration/64
export LD_LIBRARY_PATH
paths=(
"/lib/x86_64-linux-gnu/libudev.so.0" # Ubuntu, Xubuntu, Mint
"/usr/lib64/libudev.so.0" # SUSE, Fedora
)
for i in "${paths[@]}"
do
if [ -f $i ]
then
ln -sf "$i" ./steamIntegration/64/libudev.so.1
break
fi
done
exec ./gamedevtycoon64-bin $@
First of all it resets LD_LIBRARY_PATH, and libX11 is found using LD_LIBRARY_PATH. Secondly it does some strange things symlinking libudev.so.0 to libudev.so.1. I don't know why.
I changed the script so it prepends instead of replace LD_LIBRARY_PATH. And doesn't do any magic with libudev. Even after that libudev failed to load. Therefore I changed runtime-wrapped.nix:
diff --git a/pkgs/games/steam/runtime-wrapped.nix b/pkgs/games/steam/runtime-wrapped.nix
index 73c3ccf6375..0a86f5c4c4d 100644
--- a/pkgs/games/steam/runtime-wrapped.nix
+++ b/pkgs/games/steam/runtime-wrapped.nix
@@ -35,21 +36,21 @@ let
expat
dbus
cups
libcap
SDL2
libusb1
dbus_glib
libav
atk
# Only libraries are needed from those two
- libudev0-shim
+ libudev
networkmanager098
# Verified games requirements
xlibs.libXmu
xlibs.libxcb
mesa_glu
libuuid
libogg
libvorbis
SDL
@@ -82,20 +83,21 @@ let
overridePkgs = with pkgs; [
libgpgerror
libpulseaudio
alsaLib
openalSoft
libva
vulkan-loader
gcc.cc
nss
nspr
+ libudev
];
ourRuntime = if runtimeOnly then []
else if nativeOnly then runtimePkgs ++ overridePkgs
else overridePkgs;
steamRuntime = lib.optional (!nativeOnly) steam-runtime;
allPkgs = ourRuntime ++ steamRuntime;
in stdenv.mkDerivation rec {
I don't know what is the difference between libudev and libudev0-shim. And what the lines I changes really mean. But now Game Dev Tycoon works.
@yegortimoshenko Are you sure that adding another environment variable is the right way of fixing steam?
Can't we stop relying on environment (LD_LIBRARY_PATH or whatever) for finding libraries altogether? Can we build regular /usr/lib as other distribution do and have glibc look there?
@yegortimoshenko Yes. I know that NixOS disables lookup in /usr/lib for libraries. Can we reenable it? Or can steam environment have a special version of glibc that does lookup in /usr/lib?
My reasoning is that the more different our chroot environment is from ubuntu's the more problems we have. Having regular /usr/lib and having glibc searching there is a important step for compatibility. (You see what gamedev tycoon does with libudev. Who the hell knows what other games do.)
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Search for maintainers and people that previously touched the related code and @ mention them in a comment.
Activity
lukateras commentedon Dec 30, 2017
Incidentally, I do have Game Dev Tycoon. I'll check why it might not run.
sorokin commentedon Dec 30, 2017
Thank you. I tried that:
But it didn't help.
sorokin commentedon Jan 2, 2018
Ok. I managed to start it. The problem was that, the startup script start.sh contained the following lines:
First of all it resets LD_LIBRARY_PATH, and libX11 is found using LD_LIBRARY_PATH. Secondly it does some strange things symlinking libudev.so.0 to libudev.so.1. I don't know why.
I changed the script so it prepends instead of replace LD_LIBRARY_PATH. And doesn't do any magic with libudev. Even after that libudev failed to load. Therefore I changed runtime-wrapped.nix:
I don't know what is the difference between libudev and libudev0-shim. And what the lines I changes really mean. But now Game Dev Tycoon works.
lukateras commentedon Jan 2, 2018
Oh, I see. This will be fixed when #31263 gets in: there are quite a few games that override
LD_LIBRARY_PATH. For now, it requires manual patching :-(sorokin commentedon Jan 3, 2018
@yegortimoshenko Are you sure that adding another environment variable is the right way of fixing steam?
Can't we stop relying on environment (LD_LIBRARY_PATH or whatever) for finding libraries altogether? Can we build regular /usr/lib as other distribution do and have glibc look there?
lukateras commentedon Jan 3, 2018
No, unfortunately there is really no way around it. See #31263 (comment).
sorokin commentedon Jan 3, 2018
@yegortimoshenko Yes. I know that NixOS disables lookup in /usr/lib for libraries. Can we reenable it? Or can steam environment have a special version of glibc that does lookup in /usr/lib?
My reasoning is that the more different our chroot environment is from ubuntu's the more problems we have. Having regular /usr/lib and having glibc searching there is a important step for compatibility. (You see what gamedev tycoon does with libudev. Who the hell knows what other games do.)
lukateras commentedon Feb 2, 2018
This doesn't seem to be some systematic issue with the way we package Steam.
I think major version bumps that point to the same attribute should be made very carefully, but unfortunately, almost every time something breaks.
I don't think that libva is included in Steam runtime, but it's rather common for games to rely on packages outside of Steam runtime.
stale commentedon Jun 13, 2020
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
jonringer commentedon Apr 19, 2022
Not sure when this was fixed precisely, but I'm able to launch this fine with an nvidia card