File libsuffix-support.diff of Package rekall
--- scons/rkBuilder.py
+++ scons/rkBuilder.py
@@ -108,6 +108,9 @@
try : destDir = os.environ['DESTDIR'] + '/'
except : destDir = ''
+try : libsuffixDir = os.environ['LIBSUFFIX']
+except : libsuffixDir = ''
+
if rkConfig.mode in [ 'win', 'mingw' ] :
instDir = os.path.join (os.getcwd(), 'RekallWin')
binDir = destDir + instDir
@@ -131,9 +134,9 @@
if rkConfig.mode in [ 'qt3' ] :
instDir = rkConfig.prefix
binDir = destDir + os.path.join (instDir, 'bin')
- libDir = destDir + os.path.join (instDir, 'lib')
+ libDir = destDir + os.path.join (instDir, 'lib') + libsuffixDir
pyLibDir = destDir + os.path.join (rkConfig.pythonLibDir, rkConfig.pythonLib, 'site-packages')
- pluginDir = destDir + os.path.join (instDir, 'lib')
+ pluginDir = destDir + os.path.join (instDir, 'lib') + libsuffixDir
appDir = destDir + os.path.join (instDir, 'share', 'apps', rkConfig.appName)
rekallServicesDir = os.path.join (appDir, 'services')
rekallGUIDir = os.path.join (appDir, 'gui')
@@ -141,9 +144,9 @@
if rkConfig.mode in [ 'kde' ] :
instDir = rkConfig.prefix
binDir = destDir + os.path.join (instDir, 'bin')
- libDir = destDir + os.path.join (instDir, 'lib')
+ libDir = destDir + os.path.join (instDir, 'lib') + libsuffixDir
pyLibDir = destDir + os.path.join (rkConfig.pythonLibDir, rkConfig.pythonLib, 'site-packages')
- pluginDir = destDir + os.path.join (instDir, 'lib')
+ pluginDir = destDir + os.path.join (instDir, 'lib') + libsuffixDir
appDir = destDir + os.path.join (instDir, 'share', 'apps', rkConfig.appName)
rekallServicesDir = os.path.join (appDir, 'services')
rekallGUIDir = os.path.join (appDir, 'gui')