Steam starts the script with LD_LIBRARY_PATH pointed to the
steam-runtime, a set of Ubuntu-compatible shared libraries used as a
portable environment for running games. Unfortunately our poldek or RPM
is incompatible with some versions of libraries there, which makes
package install fail.
diff -dur steam.orig/steamdeps steam/steamdeps
--- steam.orig/steamdeps 2014-02-11 01:25:25.000000000 +0100
diff -dur steam.orig/steamdeps steam/steamdeps
--- steam.orig/steamdeps 2014-02-11 01:25:25.000000000 +0100
-+++ steam/steamdeps 2014-06-14 12:23:17.512765217 +0200
++++ steam/steamdeps 2015-02-08 13:53:00.628717189 +0100
@@ -20,21 +20,91 @@
# This is the set of supported dependency formats
SUPPORTED_STEAM_DEPENDENCY_VERSION = [ '1' ]
@@ -20,21 +20,91 @@
# This is the set of supported dependency formats
SUPPORTED_STEAM_DEPENDENCY_VERSION = [ '1' ]
+@@ -314,7 +400,11 @@
+ sys.stderr.write( "Usage: %s dependencies.txt\n" % sys.argv[0] )
+ return 1
+
+- # Make sure we can open the file
++ # disable steam runtime, so their libs won't conflict our binaries
++ os.unsetenv("LD_LIBRARY_PATH")
++ os.unsetenv("LD_PRELOAD")
++
++ # Make sure we can open the file
+ try:
+ fp = open(sys.argv[1])
+ except Exception as e:
+@@ -355,10 +445,20 @@
row = []
for section in line.split( "|" ):
row = []
for section in line.split( "|" ):
packages[ package.name ] = package
row.append( package )
packages[ package.name ] = package
row.append( package )
if ( "COLUMNS" in os.environ ):
del os.environ[ "COLUMNS" ]
if ( "COLUMNS" in os.environ ):
del os.environ[ "COLUMNS" ]
# If we have anything to install, do it!
if ( len(needed) > 0 ):
# If we have anything to install, do it!
if ( len(needed) > 0 ):
print( "Package %s is installed with version '%s' but doesn't match requirements: %s" % (package.name, package.installed, package) )
else:
print( "Package %s needs to be installed" % package.name )
print( "Package %s is installed with version '%s' but doesn't match requirements: %s" % (package.name, package.installed, package) )
else:
print( "Package %s needs to be installed" % package.name )