Mac OS X 10.4 building rekall 2.3.4
David Reiser <[email protected]> Thu, 26 May 2005 00:53:11 -0400
| Newsgroups | gmane.comp.db.rekall.devel |
|---|---|
| Message-ID | <[email protected]> |
It sure looks to me like Apple's python 2.3.5 (the one installed with
system 10.3.4) coughs up a hairball in response to:
distutils.sysconfig.get_config_vars("LINKFORSHARED")
the answer being
'-u __dummy -u _PyMac_Error -framework System Python.framework/
Versions/2.3/Python -framework CoreServices -framework Foundation'
instead of
'-u __dummy -u _PyMac_Error -framework System -framework Python -
framework CoreServices -framework Foundation'
grumble, grumble
In addition, I found I had to make the following changes to rkMacPak.py:
--- ./rekall/scons/rkMacPak.py 2005-05-17 14:05:24.000000000 -0400
+++ ./rekallCVS20050518/scons/rkMacPak.py 2005-05-21
21:38:38.000000000 -0400
@@ -11,10 +11,10 @@
def writePkgInfo (appName, prefix = None) :
- if prefix is None : prefix = '.'
+ if prefix is None : prefix = ''
prefix = destDir + prefix
# print prefix + '/' + appName + '.app/Contents/PkgInfo'
- pkgInfo = open (prefix + '/' + appName + '.app/Contents/
PkgInfo', 'w')
+ pkgInfo = open (prefix + appName + '.app/Contents/PkgInfo', 'w')
pkgInfo.write ('APPL????\n')
pkgInfo.close () ;
@@ -28,10 +28,10 @@
qt3Spec = string.replace (qt3Spec, '@ICON@',
'application.icns')
qt3Spec = string.replace (qt3Spec, '@EXECUTABLE@', appName)
- if prefix is None : prefix = '.'
+ if prefix is None : prefix = ''
prefix = destDir + prefix
# print prefix + '/' + appName + '.app/Contents/Info.plist'
- infList = open (prefix + '/' + appName + '.app/Contents/
Info.plist', 'w')
+ infList = open (prefix + appName + '.app/Contents/Info.plist', 'w')
infList.write (qt3Spec)
infList.close ()
@@ -52,8 +52,8 @@
try : os.stat (destDir + dir)
except : os.mkdir (destDir + dir)
-writePkgInfo ('RekallManual', appName + '.app/Helpers')
-writeInfoPlist ('RekallManual', appName + '.app/Helpers')
+writePkgInfo ('RekallManual', appName + '.app/Helpers/')
+writeInfoPlist ('RekallManual', appName + '.app/Helpers/')
srce = destDir + appName + '.app/Contents/MacOS/RekallManual'
dest = destDir + appName + '.app/Helpers/RekallManual.app/Contents/
MacOS/RekallManual'
some tool is being a lot pickier about path designations, I guess.
Having made the changes (along with 'sudo gcc_select 3.3' ), Rekall
2.3.4text (CVS version on 5/18/2005) will build and run under Mac OS
X 10.4. I built against Qt 3.3.4 compiled under OS X 10.3.something.
A small discrepency lingers, in that the application displays a
generic app icon in Finder, rather than the Rekall icon. The icon
thing worked properly for me in 10.3.8.
I haven't tested a lot, but it seems OK for the simple stuff.
Dave