Mercurial > gub
changeset 993:674a5f90aada
move to darwin-sdk 0.3, with stripped dylib contents
author | hanwen <hanwen@xs4all.nl> |
---|---|
date | Fri, 13 Jan 2006 15:39:26 +0100 |
parents | 86e48d591c7e |
children | f1dd2769d3c7 |
files | specs/darwintools.py |
diffstat | 1 files changed, 14 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/specs/darwintools.py Fri Jan 13 15:38:50 2006 +0100 +++ b/specs/darwintools.py Fri Jan 13 15:39:26 2006 +0100 @@ -36,7 +36,6 @@ for a in glob.glob (pat): self.file_sub ([(r' (/usr/lib/.*\.la)', r'%(system_root)s\1')], a) - class Gcc (cross.Gcc): def patch (self): self.file_sub ([('/usr/bin/libtool', '%(crossprefix)s/bin/%(target_architecture)s-libtool')], @@ -156,7 +155,7 @@ def get_packages (settings): packages = [ Odcctools (settings).with (version='20051122', mirror=download.opendarwin, format='bz2'), - Darwin_sdk (settings).with (version='0.2', mirror=download.hw, + Darwin_sdk (settings).with (version='0.3', mirror=download.hw, format='gz'), Gcc (settings).with (mirror = download.gcc, version='4.0.2', @@ -176,19 +175,24 @@ 'LDFLAGS': '-Wl,-headerpad_max_install_names ' }) - +def system (c): + s = os.system (c) + if s: + raise 'barf' + def get_darwin_sdk (): host = 'maagd' - version = '0.2' + version = '0.3' l = locals() dest = 'darwin-sdk-%(version)s' % l - os.system ('rm -rf %s' % dest) - os.mkdir (dest) +# system ('rm -rf %s' % dest) +# os.mkdir (dest) dirs = ["/usr/lib","/usr/include","/System/Library/Frameworks/Python.framework", "/System/Library/Frameworks/CoreServices.framework"] for d in dirs: + continue os.makedirs (dest + d) cmd = ('rsync -a -v %s:%s/ %s%s' % (host, d, dest, d)) @@ -197,8 +201,10 @@ if s : raise 'bar' - os.system ('chmod -R +w %s ' % dest) - os.system ('tar cfz %s.tar.gz %s ' % (dest, dest)) + for a in glob.glob ('%(dest)s/usr/lib/*.dylib' % locals()): + os.system ("target/darwin/system/usr/cross/bin/powerpc-apple-darwin7-strip -u -r -S -c " + a) + system ('chmod -R +w %s ' % dest) + system ('tar cfz %s.tar.gz %s ' % (dest, dest)) if __name__== '__main__':