Skip to content
Snippets Groups Projects

Add checks for brokenness in the Steam installation or Steam Runtime

Merged Simon McVittie requested to merge wip/t16071 into master
Files
3
@@ -296,6 +296,7 @@ _srt_runtime_check (const char *bin32,
if (env == NULL)
{
g_print ("ENV IS NULL!\n");
issues |= SRT_RUNTIME_ISSUES_NOT_IN_LD_PATH;
}
else
@@ -309,6 +310,10 @@ _srt_runtime_check (const char *bin32,
gboolean saw_pinned_libs_32 = FALSE;
gboolean saw_pinned_libs_64 = FALSE;
//DEBUG
g_print ("BEGIN LD_LIBRARY_PATH\n");
//DEBUG
for (entry = entries; entry != NULL && *entry != NULL; entry++)
{
/* Scripts that manipulate LD_LIBRARY_PATH have a habit of
@@ -316,6 +321,10 @@ _srt_runtime_check (const char *bin32,
if (*entry[0] == '\0')
continue;
//DEBUG
g_print ("%s\n", *entry);
//DEBUG
/* We compare by stat(), because the entries in the
* LD_LIBRARY_PATH might not have been canonicalized by
* chasing symlinks, replacing "/.." or "//", etc. */
@@ -353,21 +362,23 @@ _srt_runtime_check (const char *bin32,
}
else
{
g_debug ("stat LD_LIBRARY_PATH entry %s: %s",
//DEBUG
g_print ("stat LD_LIBRARY_PATH entry %s: %s\n",
*entry, g_strerror (errno));
//DEBUG
}
}
if (!saw_lib_x86_64_linux_gnu || !saw_usr_lib_x86_64_linux_gnu)
{
g_debug ("STEAM_RUNTIME/amd64/[usr/]lib/x86_64-linux-gnu missing "
g_print ("STEAM_RUNTIME/amd64/[usr/]lib/x86_64-linux-gnu missing "
"from LD_LIBRARY_PATH");
issues |= SRT_RUNTIME_ISSUES_NOT_IN_LD_PATH;
}
if (!saw_lib_i386_linux_gnu || !saw_usr_lib_i386_linux_gnu)
{
g_debug ("STEAM_RUNTIME/i386/[usr/]lib/i386-linux-gnu missing "
g_print ("STEAM_RUNTIME/i386/[usr/]lib/i386-linux-gnu missing "
"from LD_LIBRARY_PATH");
issues |= SRT_RUNTIME_ISSUES_NOT_IN_LD_PATH;
}
Loading