diff --git a/dev-lang/v8/patches/gyp-r1501.patch b/dev-lang/v8/patches/gyp-r1501.patch new file mode 100644 index 000000000..b078cdf7b --- /dev/null +++ b/dev-lang/v8/patches/gyp-r1501.patch @@ -0,0 +1,2460 @@ +diff -Naur gyp/buildbot/buildbot_run.py gyp-haiku/buildbot/buildbot_run.py +--- gyp/buildbot/buildbot_run.py 2012-12-24 00:54:08.000000000 +0000 ++++ gyp-haiku/buildbot/buildbot_run.py 2012-12-24 00:12:54.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/gyp gyp-haiku/gyp +--- gyp/gyp 2012-12-24 00:54:08.000000000 +0000 ++++ gyp-haiku/gyp 2012-12-24 00:03:19.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/gyptest.py gyp-haiku/gyptest.py +--- gyp/gyptest.py 2012-12-24 00:54:08.000000000 +0000 ++++ gyp-haiku/gyptest.py 2012-12-24 00:06:12.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +@@ -217,6 +217,7 @@ + 'linux2': ['make', 'ninja'], + 'linux3': ['make', 'ninja'], + 'darwin': ['make', 'ninja', 'xcode'], ++ 'haiku1': ['make'], + }[sys.platform] + + for format in format_list: +diff -Naur gyp/pylib/gyp/__init__.py gyp-haiku/pylib/gyp/__init__.py +--- gyp/pylib/gyp/__init__.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/pylib/gyp/__init__.py 2012-12-24 00:12:06.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/pylib/gyp/common_test.py gyp-haiku/pylib/gyp/common_test.py +--- gyp/pylib/gyp/common_test.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/pylib/gyp/common_test.py 2012-12-24 00:12:12.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/pylib/gyp/common.py gyp-haiku/pylib/gyp/common.py +--- gyp/pylib/gyp/common.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/pylib/gyp/common.py 2012-12-24 00:03:19.000000000 +0000 +@@ -378,14 +378,16 @@ + return 'solaris' + if sys.platform.startswith('freebsd'): + return 'freebsd' ++ if sys.platform.startswith('haiku'): ++ return 'haiku' + + return 'linux' + + + def CopyTool(flavor, out_path): +- """Finds (mac|sun|win)_tool.gyp in the gyp directory and copies it ++ """Finds (mac|sun|win|haiku)_tool.gyp in the gyp directory and copies it + to |out_path|.""" +- prefix = { 'solaris': 'sun', 'mac': 'mac', 'win': 'win' }.get(flavor, None) ++ prefix = { 'solaris': 'sun', 'mac': 'mac', 'win': 'win', 'haiku': 'haiku' }.get(flavor, None) + if not prefix: + return + +diff -Naur gyp/pylib/gyp/easy_xml_test.py gyp-haiku/pylib/gyp/easy_xml_test.py +--- gyp/pylib/gyp/easy_xml_test.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/pylib/gyp/easy_xml_test.py 2012-12-24 00:12:18.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/pylib/gyp/generator/make.py gyp-haiku/pylib/gyp/generator/make.py +--- gyp/pylib/gyp/generator/make.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/pylib/gyp/generator/make.py 2012-12-24 00:03:19.000000000 +0000 +@@ -491,6 +491,13 @@ + cmd_sun_tool = ./gyp-sun-tool $(4) $< "$@" + """ + ++SHARED_HEADER_HAIKU_COMMANDS = """ ++# gyp-haiku-tool is written next to the root Makefile by gyp. ++# Use $(4) for the command, since $(2) and $(3) are used as flag by do_cmd ++# already. ++quiet_cmd_haiku_tool = HAIKUTOOL $(4) $< ++cmd_haiku_tool = ./gyp-haiku-tool $(4) $< "$@" ++""" + + def WriteRootHeaderSuffixRules(writer): + extensions = sorted(COMPILABLE_EXTENSIONS.keys(), key=str.lower) +@@ -2027,6 +2034,13 @@ + header_params.update({ + 'flock': 'lockf', + }) ++ elif flavor == 'haiku': ++ header_params.update({ ++ 'flock': './gyp-haiku-tool flock', ++ 'flock_index': 2, ++ 'extra_commands': SHARED_HEADER_HAIKU_COMMANDS, ++ }) ++ + + header_params.update(RunSystemTests(flavor)) + header_params.update({ +diff -Naur gyp/pylib/gyp/generator/msvs_test.py gyp-haiku/pylib/gyp/generator/msvs_test.py +--- gyp/pylib/gyp/generator/msvs_test.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/pylib/gyp/generator/msvs_test.py 2012-12-24 00:12:23.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/pylib/gyp/generator/ninja_test.py gyp-haiku/pylib/gyp/generator/ninja_test.py +--- gyp/pylib/gyp/generator/ninja_test.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/pylib/gyp/generator/ninja_test.py 2012-12-24 00:11:52.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/pylib/gyp/haiku_tool.py gyp-haiku/pylib/gyp/haiku_tool.py +--- gyp/pylib/gyp/haiku_tool.py 1970-01-01 00:00:00.000000000 +0000 ++++ gyp-haiku/pylib/gyp/haiku_tool.py 2012-12-24 00:03:19.000000000 +0000 +@@ -0,0 +1,49 @@ ++#!/boot/common/bin/python ++# Copyright (c) 2011 Google Inc. All rights reserved. ++# Use of this source code is governed by a BSD-style license that can be ++# found in the LICENSE file. ++ ++"""These functions are executed via gyp-haiku-tool when using the Makefile ++generator.""" ++ ++import fcntl ++import os ++import struct ++import subprocess ++import sys ++ ++ ++def main(args): ++ executor = HaikuTool() ++ executor.Dispatch(args) ++ ++ ++class HaikuTool(object): ++ """This class performs all the Haiku tooling steps. The methods can either be ++ executed directly, or dispatched from an argument list.""" ++ ++ def Dispatch(self, args): ++ """Dispatches a string command to a method.""" ++ if len(args) < 1: ++ raise Exception("Not enough arguments") ++ ++ method = "Exec%s" % self._CommandifyName(args[0]) ++ getattr(self, method)(*args[1:]) ++ ++ def _CommandifyName(self, name_string): ++ """Transforms a tool name like copy-info-plist to CopyInfoPlist""" ++ return name_string.title().replace('-', '') ++ ++ def ExecFlock(self, lockfile, *cmd_list): ++ """Emulates the most basic behavior of Linux's flock(1).""" ++ # Rely on exception handling to report errors. ++ fd = os.open(lockfile, os.O_RDONLY|os.O_NOCTTY|os.O_CREAT, 0o666) ++ fcntl.flock(fd, fcntl.LOCK_EX) ++ ret = subprocess.call(cmd_list) ++ # Haiki bug -- lock is not released on file close? ++ fcntl.flock(fd, fcntl.LOCK_UN) ++ return ret ++ ++ ++if __name__ == '__main__': ++ sys.exit(main(sys.argv[1:])) +diff -Naur gyp/pylib/gyp/mac_tool.py gyp-haiku/pylib/gyp/mac_tool.py +--- gyp/pylib/gyp/mac_tool.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/pylib/gyp/mac_tool.py 2012-12-24 00:12:33.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/pylib/gyp/MSVSSettings_test.py gyp-haiku/pylib/gyp/MSVSSettings_test.py +--- gyp/pylib/gyp/MSVSSettings_test.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/pylib/gyp/MSVSSettings_test.py 2012-12-24 00:05:51.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/pylib/gyp/sun_tool.py gyp-haiku/pylib/gyp/sun_tool.py +--- gyp/pylib/gyp/sun_tool.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/pylib/gyp/sun_tool.py 2012-12-24 00:12:38.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/pylib/gyp/system_test.py gyp-haiku/pylib/gyp/system_test.py +--- gyp/pylib/gyp/system_test.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/pylib/gyp/system_test.py 2012-12-24 00:13:00.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/pylib/gyp/win_tool.py gyp-haiku/pylib/gyp/win_tool.py +--- gyp/pylib/gyp/win_tool.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/pylib/gyp/win_tool.py 2012-12-24 00:12:01.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/setup.py gyp-haiku/setup.py +--- gyp/setup.py 2012-12-24 00:54:08.000000000 +0000 ++++ gyp-haiku/setup.py 2012-12-24 00:13:07.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions/gyptest-all.py gyp-haiku/test/actions/gyptest-all.py +--- gyp/test/actions/gyptest-all.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/actions/gyptest-all.py 2012-12-24 00:13:12.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions/gyptest-default.py gyp-haiku/test/actions/gyptest-default.py +--- gyp/test/actions/gyptest-default.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/actions/gyptest-default.py 2012-12-24 00:13:19.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions/gyptest-errors.py gyp-haiku/test/actions/gyptest-errors.py +--- gyp/test/actions/gyptest-errors.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/actions/gyptest-errors.py 2012-12-24 00:13:24.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions/src/confirm-dep-files.py gyp-haiku/test/actions/src/confirm-dep-files.py +--- gyp/test/actions/src/confirm-dep-files.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/actions/src/confirm-dep-files.py 2012-12-24 00:13:28.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions/src/subdir1/counter.py gyp-haiku/test/actions/src/subdir1/counter.py +--- gyp/test/actions/src/subdir1/counter.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/actions/src/subdir1/counter.py 2012-12-24 00:13:33.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2010 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions/src/subdir1/make-prog1.py gyp-haiku/test/actions/src/subdir1/make-prog1.py +--- gyp/test/actions/src/subdir1/make-prog1.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/actions/src/subdir1/make-prog1.py 2012-12-24 00:13:38.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions/src/subdir1/make-prog2.py gyp-haiku/test/actions/src/subdir1/make-prog2.py +--- gyp/test/actions/src/subdir1/make-prog2.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/actions/src/subdir1/make-prog2.py 2012-12-24 00:13:44.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions/src/subdir2/make-file.py gyp-haiku/test/actions/src/subdir2/make-file.py +--- gyp/test/actions/src/subdir2/make-file.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/actions/src/subdir2/make-file.py 2012-12-24 00:14:01.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions/src/subdir3/generate_main.py gyp-haiku/test/actions/src/subdir3/generate_main.py +--- gyp/test/actions/src/subdir3/generate_main.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/actions/src/subdir3/generate_main.py 2012-12-24 00:14:06.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions-bare/gyptest-bare.py gyp-haiku/test/actions-bare/gyptest-bare.py +--- gyp/test/actions-bare/gyptest-bare.py 2012-12-24 00:53:46.000000000 +0000 ++++ gyp-haiku/test/actions-bare/gyptest-bare.py 2012-12-24 00:14:10.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions-bare/src/bare.py gyp-haiku/test/actions-bare/src/bare.py +--- gyp/test/actions-bare/src/bare.py 2012-12-24 00:53:46.000000000 +0000 ++++ gyp-haiku/test/actions-bare/src/bare.py 2012-12-24 00:14:17.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions-multiple/gyptest-all.py gyp-haiku/test/actions-multiple/gyptest-all.py +--- gyp/test/actions-multiple/gyptest-all.py 2012-12-24 00:53:48.000000000 +0000 ++++ gyp-haiku/test/actions-multiple/gyptest-all.py 2012-12-24 00:14:22.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions-multiple/src/copy.py gyp-haiku/test/actions-multiple/src/copy.py +--- gyp/test/actions-multiple/src/copy.py 2012-12-24 00:53:48.000000000 +0000 ++++ gyp-haiku/test/actions-multiple/src/copy.py 2012-12-24 00:14:27.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/test/actions-multiple/src/filter.py gyp-haiku/test/actions-multiple/src/filter.py +--- gyp/test/actions-multiple/src/filter.py 2012-12-24 00:53:48.000000000 +0000 ++++ gyp-haiku/test/actions-multiple/src/filter.py 2012-12-24 00:14:33.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/test/actions-none/gyptest-none.py gyp-haiku/test/actions-none/gyptest-none.py +--- gyp/test/actions-none/gyptest-none.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/actions-none/gyptest-none.py 2012-12-24 00:14:38.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions-subdir/gyptest-action.py gyp-haiku/test/actions-subdir/gyptest-action.py +--- gyp/test/actions-subdir/gyptest-action.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/test/actions-subdir/gyptest-action.py 2012-12-24 00:14:44.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions-subdir/src/make-file.py gyp-haiku/test/actions-subdir/src/make-file.py +--- gyp/test/actions-subdir/src/make-file.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/test/actions-subdir/src/make-file.py 2012-12-24 00:14:50.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/actions-subdir/src/subdir/make-subdir-file.py gyp-haiku/test/actions-subdir/src/subdir/make-subdir-file.py +--- gyp/test/actions-subdir/src/subdir/make-subdir-file.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/test/actions-subdir/src/subdir/make-subdir-file.py 2012-12-24 00:15:06.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/additional-targets/gyptest-additional.py gyp-haiku/test/additional-targets/gyptest-additional.py +--- gyp/test/additional-targets/gyptest-additional.py 2012-12-24 00:53:58.000000000 +0000 ++++ gyp-haiku/test/additional-targets/gyptest-additional.py 2012-12-24 00:15:11.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/additional-targets/src/dir1/emit.py gyp-haiku/test/additional-targets/src/dir1/emit.py +--- gyp/test/additional-targets/src/dir1/emit.py 2012-12-24 00:53:58.000000000 +0000 ++++ gyp-haiku/test/additional-targets/src/dir1/emit.py 2012-12-24 00:15:16.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/assembly/gyptest-assembly.py gyp-haiku/test/assembly/gyptest-assembly.py +--- gyp/test/assembly/gyptest-assembly.py 2012-12-24 00:53:58.000000000 +0000 ++++ gyp-haiku/test/assembly/gyptest-assembly.py 2012-12-24 00:15:21.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/build-option/gyptest-build.py gyp-haiku/test/build-option/gyptest-build.py +--- gyp/test/build-option/gyptest-build.py 2012-12-24 00:53:55.000000000 +0000 ++++ gyp-haiku/test/build-option/gyptest-build.py 2012-12-24 00:15:25.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/builddir/gyptest-all.py gyp-haiku/test/builddir/gyptest-all.py +--- gyp/test/builddir/gyptest-all.py 2012-12-24 00:53:38.000000000 +0000 ++++ gyp-haiku/test/builddir/gyptest-all.py 2012-12-24 00:15:30.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/builddir/gyptest-default.py gyp-haiku/test/builddir/gyptest-default.py +--- gyp/test/builddir/gyptest-default.py 2012-12-24 00:53:38.000000000 +0000 ++++ gyp-haiku/test/builddir/gyptest-default.py 2012-12-24 00:15:36.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/cflags/gyptest-cflags.py gyp-haiku/test/cflags/gyptest-cflags.py +--- gyp/test/cflags/gyptest-cflags.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/cflags/gyptest-cflags.py 2012-12-24 00:15:40.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/compilable/gyptest-headers.py gyp-haiku/test/compilable/gyptest-headers.py +--- gyp/test/compilable/gyptest-headers.py 2012-12-24 00:54:03.000000000 +0000 ++++ gyp-haiku/test/compilable/gyptest-headers.py 2012-12-24 00:15:45.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/compiler-override/gyptest-compiler-env.py gyp-haiku/test/compiler-override/gyptest-compiler-env.py +--- gyp/test/compiler-override/gyptest-compiler-env.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/compiler-override/gyptest-compiler-env.py 2012-12-24 00:15:51.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/test/compiler-override/gyptest-compiler-global-settings.py gyp-haiku/test/compiler-override/gyptest-compiler-global-settings.py +--- gyp/test/compiler-override/gyptest-compiler-global-settings.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/compiler-override/gyptest-compiler-global-settings.py 2012-12-24 00:16:13.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/test/compiler-override/my_cc.py gyp-haiku/test/compiler-override/my_cc.py +--- gyp/test/compiler-override/my_cc.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/compiler-override/my_cc.py 2012-12-24 00:16:19.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/test/compiler-override/my_cxx.py gyp-haiku/test/compiler-override/my_cxx.py +--- gyp/test/compiler-override/my_cxx.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/compiler-override/my_cxx.py 2012-12-24 00:16:25.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/test/compiler-override/my_ld.py gyp-haiku/test/compiler-override/my_ld.py +--- gyp/test/compiler-override/my_ld.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/compiler-override/my_ld.py 2012-12-24 00:16:30.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/test/configurations/basics/gyptest-configurations.py gyp-haiku/test/configurations/basics/gyptest-configurations.py +--- gyp/test/configurations/basics/gyptest-configurations.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/configurations/basics/gyptest-configurations.py 2012-12-24 00:16:36.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/configurations/inheritance/gyptest-inheritance.py gyp-haiku/test/configurations/inheritance/gyptest-inheritance.py +--- gyp/test/configurations/inheritance/gyptest-inheritance.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/configurations/inheritance/gyptest-inheritance.py 2012-12-24 00:16:45.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/configurations/invalid/gyptest-configurations.py gyp-haiku/test/configurations/invalid/gyptest-configurations.py +--- gyp/test/configurations/invalid/gyptest-configurations.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/configurations/invalid/gyptest-configurations.py 2012-12-24 00:16:50.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2010 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/configurations/target_platform/gyptest-target_platform.py gyp-haiku/test/configurations/target_platform/gyptest-target_platform.py +--- gyp/test/configurations/target_platform/gyptest-target_platform.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/configurations/target_platform/gyptest-target_platform.py 2012-12-24 00:16:56.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/configurations/x64/gyptest-x86.py gyp-haiku/test/configurations/x64/gyptest-x86.py +--- gyp/test/configurations/x64/gyptest-x86.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/configurations/x64/gyptest-x86.py 2012-12-24 00:17:00.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/copies/gyptest-all.py gyp-haiku/test/copies/gyptest-all.py +--- gyp/test/copies/gyptest-all.py 2012-12-24 00:53:58.000000000 +0000 ++++ gyp-haiku/test/copies/gyptest-all.py 2012-12-24 00:17:05.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/copies/gyptest-default.py gyp-haiku/test/copies/gyptest-default.py +--- gyp/test/copies/gyptest-default.py 2012-12-24 00:53:58.000000000 +0000 ++++ gyp-haiku/test/copies/gyptest-default.py 2012-12-24 00:17:27.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/copies/gyptest-slash.py gyp-haiku/test/copies/gyptest-slash.py +--- gyp/test/copies/gyptest-slash.py 2012-12-24 00:53:58.000000000 +0000 ++++ gyp-haiku/test/copies/gyptest-slash.py 2012-12-24 00:17:31.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/copies/gyptest-updir.py gyp-haiku/test/copies/gyptest-updir.py +--- gyp/test/copies/gyptest-updir.py 2012-12-24 00:53:58.000000000 +0000 ++++ gyp-haiku/test/copies/gyptest-updir.py 2012-12-24 00:17:36.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/custom-generator/gyptest-custom-generator.py gyp-haiku/test/custom-generator/gyptest-custom-generator.py +--- gyp/test/custom-generator/gyptest-custom-generator.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/custom-generator/gyptest-custom-generator.py 2012-12-24 00:17:46.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/test/cxxflags/gyptest-cxxflags.py gyp-haiku/test/cxxflags/gyptest-cxxflags.py +--- gyp/test/cxxflags/gyptest-cxxflags.py 2012-12-24 00:53:47.000000000 +0000 ++++ gyp-haiku/test/cxxflags/gyptest-cxxflags.py 2012-12-24 00:17:51.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/defines/gyptest-define-override.py gyp-haiku/test/defines/gyptest-define-override.py +--- gyp/test/defines/gyptest-define-override.py 2012-12-24 00:54:07.000000000 +0000 ++++ gyp-haiku/test/defines/gyptest-define-override.py 2012-12-24 00:17:56.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/defines/gyptest-defines-env-regyp.py gyp-haiku/test/defines/gyptest-defines-env-regyp.py +--- gyp/test/defines/gyptest-defines-env-regyp.py 2012-12-24 00:54:07.000000000 +0000 ++++ gyp-haiku/test/defines/gyptest-defines-env-regyp.py 2012-12-24 00:18:02.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/defines/gyptest-defines-env.py gyp-haiku/test/defines/gyptest-defines-env.py +--- gyp/test/defines/gyptest-defines-env.py 2012-12-24 00:54:07.000000000 +0000 ++++ gyp-haiku/test/defines/gyptest-defines-env.py 2012-12-24 00:18:06.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/defines/gyptest-defines.py gyp-haiku/test/defines/gyptest-defines.py +--- gyp/test/defines/gyptest-defines.py 2012-12-24 00:54:07.000000000 +0000 ++++ gyp-haiku/test/defines/gyptest-defines.py 2012-12-24 00:18:11.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/defines-escaping/gyptest-defines-escaping.py gyp-haiku/test/defines-escaping/gyptest-defines-escaping.py +--- gyp/test/defines-escaping/gyptest-defines-escaping.py 2012-12-24 00:53:55.000000000 +0000 ++++ gyp-haiku/test/defines-escaping/gyptest-defines-escaping.py 2012-12-24 00:18:16.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2010 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/dependencies/gyptest-double-dependency.py gyp-haiku/test/dependencies/gyptest-double-dependency.py +--- gyp/test/dependencies/gyptest-double-dependency.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/dependencies/gyptest-double-dependency.py 2012-12-24 00:18:46.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/dependencies/gyptest-extra-targets.py gyp-haiku/test/dependencies/gyptest-extra-targets.py +--- gyp/test/dependencies/gyptest-extra-targets.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/dependencies/gyptest-extra-targets.py 2012-12-24 00:18:50.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/dependencies/gyptest-lib-only.py gyp-haiku/test/dependencies/gyptest-lib-only.py +--- gyp/test/dependencies/gyptest-lib-only.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/dependencies/gyptest-lib-only.py 2012-12-24 00:18:55.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/dependencies/gyptest-none-traversal.py gyp-haiku/test/dependencies/gyptest-none-traversal.py +--- gyp/test/dependencies/gyptest-none-traversal.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/dependencies/gyptest-none-traversal.py 2012-12-24 00:18:59.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/dependency-copy/gyptest-copy.py gyp-haiku/test/dependency-copy/gyptest-copy.py +--- gyp/test/dependency-copy/gyptest-copy.py 2012-12-24 00:53:36.000000000 +0000 ++++ gyp-haiku/test/dependency-copy/gyptest-copy.py 2012-12-24 00:19:03.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/errors/gyptest-errors.py gyp-haiku/test/errors/gyptest-errors.py +--- gyp/test/errors/gyptest-errors.py 2012-12-24 00:54:07.000000000 +0000 ++++ gyp-haiku/test/errors/gyptest-errors.py 2012-12-24 00:19:07.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/escaping/gyptest-colon.py gyp-haiku/test/escaping/gyptest-colon.py +--- gyp/test/escaping/gyptest-colon.py 2012-12-24 00:54:01.000000000 +0000 ++++ gyp-haiku/test/escaping/gyptest-colon.py 2012-12-24 00:19:11.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/exclusion/gyptest-exclusion.py gyp-haiku/test/exclusion/gyptest-exclusion.py +--- gyp/test/exclusion/gyptest-exclusion.py 2012-12-24 00:54:03.000000000 +0000 ++++ gyp-haiku/test/exclusion/gyptest-exclusion.py 2012-12-24 00:19:16.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2010 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/external-cross-compile/gyptest-cross.py gyp-haiku/test/external-cross-compile/gyptest-cross.py +--- gyp/test/external-cross-compile/gyptest-cross.py 2012-12-24 00:53:38.000000000 +0000 ++++ gyp-haiku/test/external-cross-compile/gyptest-cross.py 2012-12-24 00:19:22.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/generator-output/actions/subdir1/make-prog1.py gyp-haiku/test/generator-output/actions/subdir1/make-prog1.py +--- gyp/test/generator-output/actions/subdir1/make-prog1.py 2012-12-24 00:53:58.000000000 +0000 ++++ gyp-haiku/test/generator-output/actions/subdir1/make-prog1.py 2012-12-24 00:19:28.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/generator-output/actions/subdir1/make-prog2.py gyp-haiku/test/generator-output/actions/subdir1/make-prog2.py +--- gyp/test/generator-output/actions/subdir1/make-prog2.py 2012-12-24 00:53:58.000000000 +0000 ++++ gyp-haiku/test/generator-output/actions/subdir1/make-prog2.py 2012-12-24 00:19:39.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/generator-output/actions/subdir2/make-file.py gyp-haiku/test/generator-output/actions/subdir2/make-file.py +--- gyp/test/generator-output/actions/subdir2/make-file.py 2012-12-24 00:53:59.000000000 +0000 ++++ gyp-haiku/test/generator-output/actions/subdir2/make-file.py 2012-12-24 00:19:44.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/generator-output/gyptest-actions.py gyp-haiku/test/generator-output/gyptest-actions.py +--- gyp/test/generator-output/gyptest-actions.py 2012-12-24 00:54:00.000000000 +0000 ++++ gyp-haiku/test/generator-output/gyptest-actions.py 2012-12-24 00:19:50.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/generator-output/gyptest-copies.py gyp-haiku/test/generator-output/gyptest-copies.py +--- gyp/test/generator-output/gyptest-copies.py 2012-12-24 00:54:00.000000000 +0000 ++++ gyp-haiku/test/generator-output/gyptest-copies.py 2012-12-24 00:20:01.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/generator-output/gyptest-mac-bundle.py gyp-haiku/test/generator-output/gyptest-mac-bundle.py +--- gyp/test/generator-output/gyptest-mac-bundle.py 2012-12-24 00:54:00.000000000 +0000 ++++ gyp-haiku/test/generator-output/gyptest-mac-bundle.py 2012-12-24 00:20:06.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/generator-output/gyptest-relocate.py gyp-haiku/test/generator-output/gyptest-relocate.py +--- gyp/test/generator-output/gyptest-relocate.py 2012-12-24 00:54:00.000000000 +0000 ++++ gyp-haiku/test/generator-output/gyptest-relocate.py 2012-12-24 00:20:11.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/generator-output/gyptest-rules.py gyp-haiku/test/generator-output/gyptest-rules.py +--- gyp/test/generator-output/gyptest-rules.py 2012-12-24 00:54:00.000000000 +0000 ++++ gyp-haiku/test/generator-output/gyptest-rules.py 2012-12-24 00:20:16.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/generator-output/gyptest-subdir2-deep.py gyp-haiku/test/generator-output/gyptest-subdir2-deep.py +--- gyp/test/generator-output/gyptest-subdir2-deep.py 2012-12-24 00:54:00.000000000 +0000 ++++ gyp-haiku/test/generator-output/gyptest-subdir2-deep.py 2012-12-24 00:20:23.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/generator-output/gyptest-top-all.py gyp-haiku/test/generator-output/gyptest-top-all.py +--- gyp/test/generator-output/gyptest-top-all.py 2012-12-24 00:54:00.000000000 +0000 ++++ gyp-haiku/test/generator-output/gyptest-top-all.py 2012-12-24 00:20:34.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/generator-output/rules/copy-file.py gyp-haiku/test/generator-output/rules/copy-file.py +--- gyp/test/generator-output/rules/copy-file.py 2012-12-24 00:54:00.000000000 +0000 ++++ gyp-haiku/test/generator-output/rules/copy-file.py 2012-12-24 00:21:54.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/gyp-defines/echo.py gyp-haiku/test/gyp-defines/echo.py +--- gyp/test/gyp-defines/echo.py 2012-12-24 00:53:55.000000000 +0000 ++++ gyp-haiku/test/gyp-defines/echo.py 2012-12-24 00:22:02.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/gyp-defines/gyptest-multiple-values.py gyp-haiku/test/gyp-defines/gyptest-multiple-values.py +--- gyp/test/gyp-defines/gyptest-multiple-values.py 2012-12-24 00:53:55.000000000 +0000 ++++ gyp-haiku/test/gyp-defines/gyptest-multiple-values.py 2012-12-24 00:22:07.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/gyp-defines/gyptest-regyp.py gyp-haiku/test/gyp-defines/gyptest-regyp.py +--- gyp/test/gyp-defines/gyptest-regyp.py 2012-12-24 00:53:55.000000000 +0000 ++++ gyp-haiku/test/gyp-defines/gyptest-regyp.py 2012-12-24 00:22:12.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/hard_dependency/gyptest-exported-hard-dependency.py gyp-haiku/test/hard_dependency/gyptest-exported-hard-dependency.py +--- gyp/test/hard_dependency/gyptest-exported-hard-dependency.py 2012-12-24 00:53:57.000000000 +0000 ++++ gyp-haiku/test/hard_dependency/gyptest-exported-hard-dependency.py 2012-12-24 00:22:17.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py gyp-haiku/test/hard_dependency/gyptest-no-exported-hard-dependency.py +--- gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py 2012-12-24 00:53:57.000000000 +0000 ++++ gyp-haiku/test/hard_dependency/gyptest-no-exported-hard-dependency.py 2012-12-24 00:22:31.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/hard_dependency/src/emit.py gyp-haiku/test/hard_dependency/src/emit.py +--- gyp/test/hard_dependency/src/emit.py 2012-12-24 00:53:57.000000000 +0000 ++++ gyp-haiku/test/hard_dependency/src/emit.py 2012-12-24 00:22:41.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/hello/gyptest-all.py gyp-haiku/test/hello/gyptest-all.py +--- gyp/test/hello/gyptest-all.py 2012-12-24 00:54:05.000000000 +0000 ++++ gyp-haiku/test/hello/gyptest-all.py 2012-12-24 00:22:47.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/hello/gyptest-default.py gyp-haiku/test/hello/gyptest-default.py +--- gyp/test/hello/gyptest-default.py 2012-12-24 00:54:05.000000000 +0000 ++++ gyp-haiku/test/hello/gyptest-default.py 2012-12-24 00:22:54.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/hello/gyptest-disable-regyp.py gyp-haiku/test/hello/gyptest-disable-regyp.py +--- gyp/test/hello/gyptest-disable-regyp.py 2012-12-24 00:54:05.000000000 +0000 ++++ gyp-haiku/test/hello/gyptest-disable-regyp.py 2012-12-24 00:23:01.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/hello/gyptest-regyp.py gyp-haiku/test/hello/gyptest-regyp.py +--- gyp/test/hello/gyptest-regyp.py 2012-12-24 00:54:05.000000000 +0000 ++++ gyp-haiku/test/hello/gyptest-regyp.py 2012-12-24 00:23:08.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/hello/gyptest-target.py gyp-haiku/test/hello/gyptest-target.py +--- gyp/test/hello/gyptest-target.py 2012-12-24 00:54:05.000000000 +0000 ++++ gyp-haiku/test/hello/gyptest-target.py 2012-12-24 00:23:12.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py gyp-haiku/test/home_dot_gyp/gyptest-home-includes-regyp.py +--- gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py 2012-12-24 00:54:03.000000000 +0000 ++++ gyp-haiku/test/home_dot_gyp/gyptest-home-includes-regyp.py 2012-12-24 00:23:22.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/home_dot_gyp/gyptest-home-includes.py gyp-haiku/test/home_dot_gyp/gyptest-home-includes.py +--- gyp/test/home_dot_gyp/gyptest-home-includes.py 2012-12-24 00:54:03.000000000 +0000 ++++ gyp-haiku/test/home_dot_gyp/gyptest-home-includes.py 2012-12-24 00:23:26.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/include_dirs/gyptest-all.py gyp-haiku/test/include_dirs/gyptest-all.py +--- gyp/test/include_dirs/gyptest-all.py 2012-12-24 00:53:54.000000000 +0000 ++++ gyp-haiku/test/include_dirs/gyptest-all.py 2012-12-24 00:23:31.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/include_dirs/gyptest-default.py gyp-haiku/test/include_dirs/gyptest-default.py +--- gyp/test/include_dirs/gyptest-default.py 2012-12-24 00:53:54.000000000 +0000 ++++ gyp-haiku/test/include_dirs/gyptest-default.py 2012-12-24 00:23:36.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/intermediate_dir/gyptest-intermediate-dir.py gyp-haiku/test/intermediate_dir/gyptest-intermediate-dir.py +--- gyp/test/intermediate_dir/gyptest-intermediate-dir.py 2012-12-24 00:54:07.000000000 +0000 ++++ gyp-haiku/test/intermediate_dir/gyptest-intermediate-dir.py 2012-12-24 00:23:45.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/intermediate_dir/src/script.py gyp-haiku/test/intermediate_dir/src/script.py +--- gyp/test/intermediate_dir/src/script.py 2012-12-24 00:54:07.000000000 +0000 ++++ gyp-haiku/test/intermediate_dir/src/script.py 2012-12-24 00:23:54.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/test/library/gyptest-shared-obj-install-path.py gyp-haiku/test/library/gyptest-shared-obj-install-path.py +--- gyp/test/library/gyptest-shared-obj-install-path.py 2012-12-24 00:54:02.000000000 +0000 ++++ gyp-haiku/test/library/gyptest-shared-obj-install-path.py 2012-12-24 00:24:04.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/library/gyptest-shared.py gyp-haiku/test/library/gyptest-shared.py +--- gyp/test/library/gyptest-shared.py 2012-12-24 00:54:02.000000000 +0000 ++++ gyp-haiku/test/library/gyptest-shared.py 2012-12-24 00:24:14.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/library/gyptest-static.py gyp-haiku/test/library/gyptest-static.py +--- gyp/test/library/gyptest-static.py 2012-12-24 00:54:02.000000000 +0000 ++++ gyp-haiku/test/library/gyptest-static.py 2012-12-24 00:24:19.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/link-objects/gyptest-all.py gyp-haiku/test/link-objects/gyptest-all.py +--- gyp/test/link-objects/gyptest-all.py 2012-12-24 00:53:58.000000000 +0000 ++++ gyp-haiku/test/link-objects/gyptest-all.py 2012-12-24 00:24:23.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-action-envvars.py gyp-haiku/test/mac/gyptest-action-envvars.py +--- gyp/test/mac/gyptest-action-envvars.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-action-envvars.py 2012-12-24 00:24:26.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-app.py gyp-haiku/test/mac/gyptest-app.py +--- gyp/test/mac/gyptest-app.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-app.py 2012-12-24 00:24:30.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-archs.py gyp-haiku/test/mac/gyptest-archs.py +--- gyp/test/mac/gyptest-archs.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-archs.py 2012-12-24 00:24:34.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-cflags.py gyp-haiku/test/mac/gyptest-cflags.py +--- gyp/test/mac/gyptest-cflags.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-cflags.py 2012-12-24 00:24:42.000000000 +0000 +@@ -1,5 +1,4 @@ +- +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-copies.py gyp-haiku/test/mac/gyptest-copies.py +--- gyp/test/mac/gyptest-copies.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-copies.py 2012-12-24 00:24:46.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-copy-dylib.py gyp-haiku/test/mac/gyptest-copy-dylib.py +--- gyp/test/mac/gyptest-copy-dylib.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-copy-dylib.py 2012-12-24 00:24:50.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-debuginfo.py gyp-haiku/test/mac/gyptest-debuginfo.py +--- gyp/test/mac/gyptest-debuginfo.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-debuginfo.py 2012-12-24 00:24:53.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-depend-on-bundle.py gyp-haiku/test/mac/gyptest-depend-on-bundle.py +--- gyp/test/mac/gyptest-depend-on-bundle.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-depend-on-bundle.py 2012-12-24 00:24:55.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-framework-dirs.py gyp-haiku/test/mac/gyptest-framework-dirs.py +--- gyp/test/mac/gyptest-framework-dirs.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-framework-dirs.py 2012-12-24 00:24:59.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-framework-headers.py gyp-haiku/test/mac/gyptest-framework-headers.py +--- gyp/test/mac/gyptest-framework-headers.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-framework-headers.py 2012-12-24 00:25:04.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-framework.py gyp-haiku/test/mac/gyptest-framework.py +--- gyp/test/mac/gyptest-framework.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-framework.py 2012-12-24 00:21:13.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-global-settings.py gyp-haiku/test/mac/gyptest-global-settings.py +--- gyp/test/mac/gyptest-global-settings.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-global-settings.py 2012-12-24 00:21:03.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-infoplist-process.py gyp-haiku/test/mac/gyptest-infoplist-process.py +--- gyp/test/mac/gyptest-infoplist-process.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-infoplist-process.py 2012-12-24 00:21:24.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-installname.py gyp-haiku/test/mac/gyptest-installname.py +--- gyp/test/mac/gyptest-installname.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-installname.py 2012-12-24 00:25:07.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-ldflags-passed-to-libtool.py gyp-haiku/test/mac/gyptest-ldflags-passed-to-libtool.py +--- gyp/test/mac/gyptest-ldflags-passed-to-libtool.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-ldflags-passed-to-libtool.py 2012-12-24 00:25:13.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-ldflags.py gyp-haiku/test/mac/gyptest-ldflags.py +--- gyp/test/mac/gyptest-ldflags.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-ldflags.py 2012-12-24 00:25:19.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-libraries.py gyp-haiku/test/mac/gyptest-libraries.py +--- gyp/test/mac/gyptest-libraries.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-libraries.py 2012-12-24 00:25:22.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-loadable-module.py gyp-haiku/test/mac/gyptest-loadable-module.py +--- gyp/test/mac/gyptest-loadable-module.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-loadable-module.py 2012-12-24 00:25:25.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-missing-cfbundlesignature.py gyp-haiku/test/mac/gyptest-missing-cfbundlesignature.py +--- gyp/test/mac/gyptest-missing-cfbundlesignature.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-missing-cfbundlesignature.py 2012-12-24 00:25:28.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-non-strs-flattened-to-env.py gyp-haiku/test/mac/gyptest-non-strs-flattened-to-env.py +--- gyp/test/mac/gyptest-non-strs-flattened-to-env.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-non-strs-flattened-to-env.py 2012-12-24 00:25:30.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-objc-gc.py gyp-haiku/test/mac/gyptest-objc-gc.py +--- gyp/test/mac/gyptest-objc-gc.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-objc-gc.py 2012-12-24 00:25:33.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-postbuild-copy-bundle.py gyp-haiku/test/mac/gyptest-postbuild-copy-bundle.py +--- gyp/test/mac/gyptest-postbuild-copy-bundle.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-postbuild-copy-bundle.py 2012-12-24 00:25:36.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-postbuild-defaults.py gyp-haiku/test/mac/gyptest-postbuild-defaults.py +--- gyp/test/mac/gyptest-postbuild-defaults.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-postbuild-defaults.py 2012-12-24 00:25:38.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-postbuild-fail.py gyp-haiku/test/mac/gyptest-postbuild-fail.py +--- gyp/test/mac/gyptest-postbuild-fail.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-postbuild-fail.py 2012-12-24 00:25:41.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-postbuild-multiple-configurations.py gyp-haiku/test/mac/gyptest-postbuild-multiple-configurations.py +--- gyp/test/mac/gyptest-postbuild-multiple-configurations.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-postbuild-multiple-configurations.py 2012-12-24 00:25:47.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-postbuild.py gyp-haiku/test/mac/gyptest-postbuild.py +--- gyp/test/mac/gyptest-postbuild.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-postbuild.py 2012-12-24 00:26:33.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-prefixheader.py gyp-haiku/test/mac/gyptest-prefixheader.py +--- gyp/test/mac/gyptest-prefixheader.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-prefixheader.py 2012-12-24 00:26:40.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-rebuild.py gyp-haiku/test/mac/gyptest-rebuild.py +--- gyp/test/mac/gyptest-rebuild.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-rebuild.py 2012-12-24 00:26:43.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-rpath.py gyp-haiku/test/mac/gyptest-rpath.py +--- gyp/test/mac/gyptest-rpath.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-rpath.py 2012-12-24 00:26:46.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-sdkroot.py gyp-haiku/test/mac/gyptest-sdkroot.py +--- gyp/test/mac/gyptest-sdkroot.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-sdkroot.py 2012-12-24 00:26:48.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-strip.py gyp-haiku/test/mac/gyptest-strip.py +--- gyp/test/mac/gyptest-strip.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-strip.py 2012-12-24 00:26:51.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-type-envvars.py gyp-haiku/test/mac/gyptest-type-envvars.py +--- gyp/test/mac/gyptest-type-envvars.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-type-envvars.py 2012-12-24 00:26:56.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-xcode-env-order.py gyp-haiku/test/mac/gyptest-xcode-env-order.py +--- gyp/test/mac/gyptest-xcode-env-order.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-xcode-env-order.py 2012-12-24 00:27:03.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/mac/gyptest-xcode-gcc.py gyp-haiku/test/mac/gyptest-xcode-gcc.py +--- gyp/test/mac/gyptest-xcode-gcc.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/mac/gyptest-xcode-gcc.py 2012-12-24 00:27:05.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/make/gyptest-dependencies.py gyp-haiku/test/make/gyptest-dependencies.py +--- gyp/test/make/gyptest-dependencies.py 2012-12-24 00:53:47.000000000 +0000 ++++ gyp-haiku/test/make/gyptest-dependencies.py 2012-12-24 00:27:14.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/make/gyptest-noload.py gyp-haiku/test/make/gyptest-noload.py +--- gyp/test/make/gyptest-noload.py 2012-12-24 00:53:47.000000000 +0000 ++++ gyp-haiku/test/make/gyptest-noload.py 2012-12-24 00:27:53.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2010 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/many-actions/gyptest-many-actions-unsorted.py gyp-haiku/test/many-actions/gyptest-many-actions-unsorted.py +--- gyp/test/many-actions/gyptest-many-actions-unsorted.py 2012-12-24 00:53:44.000000000 +0000 ++++ gyp-haiku/test/many-actions/gyptest-many-actions-unsorted.py 2012-12-24 00:27:57.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/many-actions/gyptest-many-actions.py gyp-haiku/test/many-actions/gyptest-many-actions.py +--- gyp/test/many-actions/gyptest-many-actions.py 2012-12-24 00:53:44.000000000 +0000 ++++ gyp-haiku/test/many-actions/gyptest-many-actions.py 2012-12-24 00:28:01.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/module/gyptest-default.py gyp-haiku/test/module/gyptest-default.py +--- gyp/test/module/gyptest-default.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/module/gyptest-default.py 2012-12-24 00:28:06.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/msvs/config_attrs/gyptest-config_attrs.py gyp-haiku/test/msvs/config_attrs/gyptest-config_attrs.py +--- gyp/test/msvs/config_attrs/gyptest-config_attrs.py 2012-12-24 00:53:48.000000000 +0000 ++++ gyp-haiku/test/msvs/config_attrs/gyptest-config_attrs.py 2012-12-24 00:28:09.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/msvs/express/gyptest-express.py gyp-haiku/test/msvs/express/gyptest-express.py +--- gyp/test/msvs/express/gyptest-express.py 2012-12-24 00:53:48.000000000 +0000 ++++ gyp-haiku/test/msvs/express/gyptest-express.py 2012-12-24 00:28:13.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/msvs/list_excluded/gyptest-all.py gyp-haiku/test/msvs/list_excluded/gyptest-all.py +--- gyp/test/msvs/list_excluded/gyptest-all.py 2012-12-24 00:53:48.000000000 +0000 ++++ gyp-haiku/test/msvs/list_excluded/gyptest-all.py 2012-12-24 00:28:17.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/msvs/missing_sources/gyptest-missing.py gyp-haiku/test/msvs/missing_sources/gyptest-missing.py +--- gyp/test/msvs/missing_sources/gyptest-missing.py 2012-12-24 00:53:48.000000000 +0000 ++++ gyp-haiku/test/msvs/missing_sources/gyptest-missing.py 2012-12-24 00:28:20.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +@@ -38,4 +38,4 @@ + test.must_contain_any_line(test.stderr(), + ["Missing input files:"]) + +-test.pass_test() +\ No newline at end of file ++test.pass_test() +diff -Naur gyp/test/msvs/props/gyptest-props.py gyp-haiku/test/msvs/props/gyptest-props.py +--- gyp/test/msvs/props/gyptest-props.py 2012-12-24 00:53:48.000000000 +0000 ++++ gyp-haiku/test/msvs/props/gyptest-props.py 2012-12-24 00:28:23.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/msvs/shared_output/gyptest-shared_output.py gyp-haiku/test/msvs/shared_output/gyptest-shared_output.py +--- gyp/test/msvs/shared_output/gyptest-shared_output.py 2012-12-24 00:53:48.000000000 +0000 ++++ gyp-haiku/test/msvs/shared_output/gyptest-shared_output.py 2012-12-24 00:28:27.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/msvs/uldi2010/gyptest-all.py gyp-haiku/test/msvs/uldi2010/gyptest-all.py +--- gyp/test/msvs/uldi2010/gyptest-all.py 2012-12-24 00:53:48.000000000 +0000 ++++ gyp-haiku/test/msvs/uldi2010/gyptest-all.py 2012-12-24 00:28:30.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/multiple-targets/gyptest-all.py gyp-haiku/test/multiple-targets/gyptest-all.py +--- gyp/test/multiple-targets/gyptest-all.py 2012-12-24 00:54:05.000000000 +0000 ++++ gyp-haiku/test/multiple-targets/gyptest-all.py 2012-12-24 00:28:33.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/multiple-targets/gyptest-default.py gyp-haiku/test/multiple-targets/gyptest-default.py +--- gyp/test/multiple-targets/gyptest-default.py 2012-12-24 00:54:05.000000000 +0000 ++++ gyp-haiku/test/multiple-targets/gyptest-default.py 2012-12-24 00:28:36.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/ninja/action_dependencies/gyptest-action-dependencies.py gyp-haiku/test/ninja/action_dependencies/gyptest-action-dependencies.py +--- gyp/test/ninja/action_dependencies/gyptest-action-dependencies.py 2012-12-24 00:53:54.000000000 +0000 ++++ gyp-haiku/test/ninja/action_dependencies/gyptest-action-dependencies.py 2012-12-24 00:28:39.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/ninja/action_dependencies/src/emit.py gyp-haiku/test/ninja/action_dependencies/src/emit.py +--- gyp/test/ninja/action_dependencies/src/emit.py 2012-12-24 00:53:54.000000000 +0000 ++++ gyp-haiku/test/ninja/action_dependencies/src/emit.py 2012-12-24 00:28:44.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/ninja/chained-dependency/gyptest-chained-dependency.py gyp-haiku/test/ninja/chained-dependency/gyptest-chained-dependency.py +--- gyp/test/ninja/chained-dependency/gyptest-chained-dependency.py 2012-12-24 00:53:54.000000000 +0000 ++++ gyp-haiku/test/ninja/chained-dependency/gyptest-chained-dependency.py 2012-12-24 00:28:47.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/ninja/normalize-paths-win/gyptest-normalize-paths.py gyp-haiku/test/ninja/normalize-paths-win/gyptest-normalize-paths.py +--- gyp/test/ninja/normalize-paths-win/gyptest-normalize-paths.py 2012-12-24 00:53:54.000000000 +0000 ++++ gyp-haiku/test/ninja/normalize-paths-win/gyptest-normalize-paths.py 2012-12-24 00:28:50.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/ninja/solibs_avoid_relinking/gyptest-solibs-avoid-relinking.py gyp-haiku/test/ninja/solibs_avoid_relinking/gyptest-solibs-avoid-relinking.py +--- gyp/test/ninja/solibs_avoid_relinking/gyptest-solibs-avoid-relinking.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/ninja/solibs_avoid_relinking/gyptest-solibs-avoid-relinking.py 2012-12-24 00:28:53.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/no-output/gyptest-no-output.py gyp-haiku/test/no-output/gyptest-no-output.py +--- gyp/test/no-output/gyptest-no-output.py 2012-12-24 00:53:47.000000000 +0000 ++++ gyp-haiku/test/no-output/gyptest-no-output.py 2012-12-24 00:28:57.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/product/gyptest-product.py gyp-haiku/test/product/gyptest-product.py +--- gyp/test/product/gyptest-product.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/product/gyptest-product.py 2012-12-24 00:29:01.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/relative/gyptest-default.py gyp-haiku/test/relative/gyptest-default.py +--- gyp/test/relative/gyptest-default.py 2012-12-24 00:54:03.000000000 +0000 ++++ gyp-haiku/test/relative/gyptest-default.py 2012-12-24 00:29:07.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/rename/gyptest-filecase.py gyp-haiku/test/rename/gyptest-filecase.py +--- gyp/test/rename/gyptest-filecase.py 2012-12-24 00:54:03.000000000 +0000 ++++ gyp-haiku/test/rename/gyptest-filecase.py 2012-12-24 00:29:12.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/restat/gyptest-restat.py gyp-haiku/test/restat/gyptest-restat.py +--- gyp/test/restat/gyptest-restat.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/restat/gyptest-restat.py 2012-12-24 00:29:28.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/restat/src/create_intermediate.py gyp-haiku/test/restat/src/create_intermediate.py +--- gyp/test/restat/src/create_intermediate.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/restat/src/create_intermediate.py 2012-12-24 00:29:32.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/restat/src/touch.py gyp-haiku/test/restat/src/touch.py +--- gyp/test/restat/src/touch.py 2012-12-24 00:53:43.000000000 +0000 ++++ gyp-haiku/test/restat/src/touch.py 2012-12-24 00:29:47.000000000 +0000 +@@ -1,5 +1,5 @@ +-#!/usr/bin/env python +-# ++#!/boot/common/bin/python ++ + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/test/rules/gyptest-all.py gyp-haiku/test/rules/gyptest-all.py +--- gyp/test/rules/gyptest-all.py 2012-12-24 00:53:49.000000000 +0000 ++++ gyp-haiku/test/rules/gyptest-all.py 2012-12-24 00:29:52.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/rules/gyptest-default.py gyp-haiku/test/rules/gyptest-default.py +--- gyp/test/rules/gyptest-default.py 2012-12-24 00:53:49.000000000 +0000 ++++ gyp-haiku/test/rules/gyptest-default.py 2012-12-24 00:29:56.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/rules/gyptest-input-root.py gyp-haiku/test/rules/gyptest-input-root.py +--- gyp/test/rules/gyptest-input-root.py 2012-12-24 00:53:49.000000000 +0000 ++++ gyp-haiku/test/rules/gyptest-input-root.py 2012-12-24 00:29:59.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/rules/gyptest-special-variables.py gyp-haiku/test/rules/gyptest-special-variables.py +--- gyp/test/rules/gyptest-special-variables.py 2012-12-24 00:53:49.000000000 +0000 ++++ gyp-haiku/test/rules/gyptest-special-variables.py 2012-12-24 00:30:03.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/rules/src/copy-file.py gyp-haiku/test/rules/src/copy-file.py +--- gyp/test/rules/src/copy-file.py 2012-12-24 00:53:49.000000000 +0000 ++++ gyp-haiku/test/rules/src/copy-file.py 2012-12-24 00:30:06.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/rules/src/rule.py gyp-haiku/test/rules/src/rule.py +--- gyp/test/rules/src/rule.py 2012-12-24 00:53:49.000000000 +0000 ++++ gyp-haiku/test/rules/src/rule.py 2012-12-24 00:30:15.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/test/rules-dirname/gyptest-dirname.py gyp-haiku/test/rules-dirname/gyptest-dirname.py +--- gyp/test/rules-dirname/gyptest-dirname.py 2012-12-24 00:54:02.000000000 +0000 ++++ gyp-haiku/test/rules-dirname/gyptest-dirname.py 2012-12-24 00:30:20.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/rules-dirname/src/copy-file.py gyp-haiku/test/rules-dirname/src/copy-file.py +--- gyp/test/rules-dirname/src/copy-file.py 2012-12-24 00:54:02.000000000 +0000 ++++ gyp-haiku/test/rules-dirname/src/copy-file.py 2012-12-24 00:30:24.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/rules-dirname/src/subdir/printvars.py gyp-haiku/test/rules-dirname/src/subdir/printvars.py +--- gyp/test/rules-dirname/src/subdir/printvars.py 2012-12-24 00:54:02.000000000 +0000 ++++ gyp-haiku/test/rules-dirname/src/subdir/printvars.py 2012-12-24 00:30:27.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/rules-rebuild/gyptest-all.py gyp-haiku/test/rules-rebuild/gyptest-all.py +--- gyp/test/rules-rebuild/gyptest-all.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/rules-rebuild/gyptest-all.py 2012-12-24 00:30:29.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/rules-rebuild/gyptest-default.py gyp-haiku/test/rules-rebuild/gyptest-default.py +--- gyp/test/rules-rebuild/gyptest-default.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/rules-rebuild/gyptest-default.py 2012-12-24 00:30:33.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/rules-rebuild/src/make-sources.py gyp-haiku/test/rules-rebuild/src/make-sources.py +--- gyp/test/rules-rebuild/src/make-sources.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/rules-rebuild/src/make-sources.py 2012-12-24 00:30:38.000000000 +0000 +@@ -1,4 +1,5 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python ++ + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. +diff -Naur gyp/test/rules-variables/gyptest-rules-variables.py gyp-haiku/test/rules-variables/gyptest-rules-variables.py +--- gyp/test/rules-variables/gyptest-rules-variables.py 2012-12-24 00:54:02.000000000 +0000 ++++ gyp-haiku/test/rules-variables/gyptest-rules-variables.py 2012-12-24 00:30:42.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/same-gyp-name/gyptest-all.py gyp-haiku/test/same-gyp-name/gyptest-all.py +--- gyp/test/same-gyp-name/gyptest-all.py 2012-12-24 00:53:54.000000000 +0000 ++++ gyp-haiku/test/same-gyp-name/gyptest-all.py 2012-12-24 00:30:45.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/same-gyp-name/gyptest-default.py gyp-haiku/test/same-gyp-name/gyptest-default.py +--- gyp/test/same-gyp-name/gyptest-default.py 2012-12-24 00:53:54.000000000 +0000 ++++ gyp-haiku/test/same-gyp-name/gyptest-default.py 2012-12-24 00:30:48.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/same-rule-output-file-name/gyptest-all.py gyp-haiku/test/same-rule-output-file-name/gyptest-all.py +--- gyp/test/same-rule-output-file-name/gyptest-all.py 2012-12-24 00:53:47.000000000 +0000 ++++ gyp-haiku/test/same-rule-output-file-name/gyptest-all.py 2012-12-24 00:30:51.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/same-rule-output-file-name/src/touch.py gyp-haiku/test/same-rule-output-file-name/src/touch.py +--- gyp/test/same-rule-output-file-name/src/touch.py 2012-12-24 00:53:47.000000000 +0000 ++++ gyp-haiku/test/same-rule-output-file-name/src/touch.py 2012-12-24 00:30:56.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/same-source-file-name/gyptest-all.py gyp-haiku/test/same-source-file-name/gyptest-all.py +--- gyp/test/same-source-file-name/gyptest-all.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/same-source-file-name/gyptest-all.py 2012-12-24 00:31:45.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/same-source-file-name/gyptest-default.py gyp-haiku/test/same-source-file-name/gyptest-default.py +--- gyp/test/same-source-file-name/gyptest-default.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/same-source-file-name/gyptest-default.py 2012-12-24 00:31:49.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/same-target-name/gyptest-same-target-name.py gyp-haiku/test/same-target-name/gyptest-same-target-name.py +--- gyp/test/same-target-name/gyptest-same-target-name.py 2012-12-24 00:53:47.000000000 +0000 ++++ gyp-haiku/test/same-target-name/gyptest-same-target-name.py 2012-12-24 00:31:52.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2010 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/same-target-name-different-directory/gyptest-all.py gyp-haiku/test/same-target-name-different-directory/gyptest-all.py +--- gyp/test/same-target-name-different-directory/gyptest-all.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/same-target-name-different-directory/gyptest-all.py 2012-12-24 00:31:55.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/same-target-name-different-directory/src/touch.py gyp-haiku/test/same-target-name-different-directory/src/touch.py +--- gyp/test/same-target-name-different-directory/src/touch.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/same-target-name-different-directory/src/touch.py 2012-12-24 00:31:58.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/sanitize-rule-names/gyptest-sanitize-rule-names.py gyp-haiku/test/sanitize-rule-names/gyptest-sanitize-rule-names.py +--- gyp/test/sanitize-rule-names/gyptest-sanitize-rule-names.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/sanitize-rule-names/gyptest-sanitize-rule-names.py 2012-12-24 00:32:01.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/sanitize-rule-names/script.py gyp-haiku/test/sanitize-rule-names/script.py +--- gyp/test/sanitize-rule-names/script.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/sanitize-rule-names/script.py 2012-12-24 00:32:03.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/scons_tools/gyptest-tools.py gyp-haiku/test/scons_tools/gyptest-tools.py +--- gyp/test/scons_tools/gyptest-tools.py 2012-12-24 00:53:44.000000000 +0000 ++++ gyp-haiku/test/scons_tools/gyptest-tools.py 2012-12-24 00:32:06.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/sibling/gyptest-all.py gyp-haiku/test/sibling/gyptest-all.py +--- gyp/test/sibling/gyptest-all.py 2012-12-24 00:54:01.000000000 +0000 ++++ gyp-haiku/test/sibling/gyptest-all.py 2012-12-24 00:32:08.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/sibling/gyptest-relocate.py gyp-haiku/test/sibling/gyptest-relocate.py +--- gyp/test/sibling/gyptest-relocate.py 2012-12-24 00:54:01.000000000 +0000 ++++ gyp-haiku/test/sibling/gyptest-relocate.py 2012-12-24 00:32:11.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/small/gyptest-small.py gyp-haiku/test/small/gyptest-small.py +--- gyp/test/small/gyptest-small.py 2012-12-24 00:53:55.000000000 +0000 ++++ gyp-haiku/test/small/gyptest-small.py 2012-12-24 00:32:13.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/standalone/gyptest-standalone.py gyp-haiku/test/standalone/gyptest-standalone.py +--- gyp/test/standalone/gyptest-standalone.py 2012-12-24 00:54:04.000000000 +0000 ++++ gyp-haiku/test/standalone/gyptest-standalone.py 2012-12-24 00:32:15.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/subdirectory/gyptest-subdir-all.py gyp-haiku/test/subdirectory/gyptest-subdir-all.py +--- gyp/test/subdirectory/gyptest-subdir-all.py 2012-12-24 00:53:57.000000000 +0000 ++++ gyp-haiku/test/subdirectory/gyptest-subdir-all.py 2012-12-24 00:32:23.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/subdirectory/gyptest-subdir-default.py gyp-haiku/test/subdirectory/gyptest-subdir-default.py +--- gyp/test/subdirectory/gyptest-subdir-default.py 2012-12-24 00:53:57.000000000 +0000 ++++ gyp-haiku/test/subdirectory/gyptest-subdir-default.py 2012-12-24 00:32:26.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/subdirectory/gyptest-subdir2-deep.py gyp-haiku/test/subdirectory/gyptest-subdir2-deep.py +--- gyp/test/subdirectory/gyptest-subdir2-deep.py 2012-12-24 00:53:57.000000000 +0000 ++++ gyp-haiku/test/subdirectory/gyptest-subdir2-deep.py 2012-12-24 00:32:29.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/subdirectory/gyptest-SYMROOT-all.py gyp-haiku/test/subdirectory/gyptest-SYMROOT-all.py +--- gyp/test/subdirectory/gyptest-SYMROOT-all.py 2012-12-24 00:53:57.000000000 +0000 ++++ gyp-haiku/test/subdirectory/gyptest-SYMROOT-all.py 2012-12-24 00:32:18.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/subdirectory/gyptest-SYMROOT-default.py gyp-haiku/test/subdirectory/gyptest-SYMROOT-default.py +--- gyp/test/subdirectory/gyptest-SYMROOT-default.py 2012-12-24 00:53:57.000000000 +0000 ++++ gyp-haiku/test/subdirectory/gyptest-SYMROOT-default.py 2012-12-24 00:32:21.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/subdirectory/gyptest-top-all.py gyp-haiku/test/subdirectory/gyptest-top-all.py +--- gyp/test/subdirectory/gyptest-top-all.py 2012-12-24 00:53:57.000000000 +0000 ++++ gyp-haiku/test/subdirectory/gyptest-top-all.py 2012-12-24 00:32:32.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/subdirectory/gyptest-top-default.py gyp-haiku/test/subdirectory/gyptest-top-default.py +--- gyp/test/subdirectory/gyptest-top-default.py 2012-12-24 00:53:57.000000000 +0000 ++++ gyp-haiku/test/subdirectory/gyptest-top-default.py 2012-12-24 00:32:35.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/toolsets/gyptest-toolsets.py gyp-haiku/test/toolsets/gyptest-toolsets.py +--- gyp/test/toolsets/gyptest-toolsets.py 2012-12-24 00:54:07.000000000 +0000 ++++ gyp-haiku/test/toolsets/gyptest-toolsets.py 2012-12-24 00:32:38.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/toplevel-dir/gyptest-toplevel-dir.py gyp-haiku/test/toplevel-dir/gyptest-toplevel-dir.py +--- gyp/test/toplevel-dir/gyptest-toplevel-dir.py 2012-12-24 00:53:46.000000000 +0000 ++++ gyp-haiku/test/toplevel-dir/gyptest-toplevel-dir.py 2012-12-24 00:32:40.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/variables/commands/gyptest-commands-ignore-env.py gyp-haiku/test/variables/commands/gyptest-commands-ignore-env.py +--- gyp/test/variables/commands/gyptest-commands-ignore-env.py 2012-12-24 00:53:46.000000000 +0000 ++++ gyp-haiku/test/variables/commands/gyptest-commands-ignore-env.py 2012-12-24 00:32:43.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/variables/commands/gyptest-commands-repeated.py gyp-haiku/test/variables/commands/gyptest-commands-repeated.py +--- gyp/test/variables/commands/gyptest-commands-repeated.py 2012-12-24 00:53:46.000000000 +0000 ++++ gyp-haiku/test/variables/commands/gyptest-commands-repeated.py 2012-12-24 00:32:45.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/variables/commands/gyptest-commands.py gyp-haiku/test/variables/commands/gyptest-commands.py +--- gyp/test/variables/commands/gyptest-commands.py 2012-12-24 00:53:46.000000000 +0000 ++++ gyp-haiku/test/variables/commands/gyptest-commands.py 2012-12-24 00:32:48.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/variables/filelist/gyptest-filelist.py gyp-haiku/test/variables/filelist/gyptest-filelist.py +--- gyp/test/variables/filelist/gyptest-filelist.py 2012-12-24 00:53:47.000000000 +0000 ++++ gyp-haiku/test/variables/filelist/gyptest-filelist.py 2012-12-24 00:32:52.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/variables/latelate/gyptest-latelate.py gyp-haiku/test/variables/latelate/gyptest-latelate.py +--- gyp/test/variables/latelate/gyptest-latelate.py 2012-12-24 00:53:47.000000000 +0000 ++++ gyp-haiku/test/variables/latelate/gyptest-latelate.py 2012-12-24 00:34:21.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/variables/variable-in-path/gyptest-variable-in-path.py gyp-haiku/test/variables/variable-in-path/gyptest-variable-in-path.py +--- gyp/test/variables/variable-in-path/gyptest-variable-in-path.py 2012-12-24 00:53:46.000000000 +0000 ++++ gyp-haiku/test/variables/variable-in-path/gyptest-variable-in-path.py 2012-12-24 00:34:30.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/variants/gyptest-variants.py gyp-haiku/test/variants/gyptest-variants.py +--- gyp/test/variants/gyptest-variants.py 2012-12-24 00:53:37.000000000 +0000 ++++ gyp-haiku/test/variants/gyptest-variants.py 2012-12-24 00:34:35.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2009 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-asm-files.py gyp-haiku/test/win/gyptest-asm-files.py +--- gyp/test/win/gyptest-asm-files.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-asm-files.py 2012-12-24 00:34:38.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-additional-include-dirs.py gyp-haiku/test/win/gyptest-cl-additional-include-dirs.py +--- gyp/test/win/gyptest-cl-additional-include-dirs.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-additional-include-dirs.py 2012-12-24 00:34:41.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-additional-options.py gyp-haiku/test/win/gyptest-cl-additional-options.py +--- gyp/test/win/gyptest-cl-additional-options.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-additional-options.py 2012-12-24 00:34:44.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-buffer-security-check.py gyp-haiku/test/win/gyptest-cl-buffer-security-check.py +--- gyp/test/win/gyptest-cl-buffer-security-check.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-buffer-security-check.py 2012-12-24 00:34:46.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-character-set.py gyp-haiku/test/win/gyptest-cl-character-set.py +--- gyp/test/win/gyptest-cl-character-set.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-character-set.py 2012-12-24 00:34:49.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-debug-format.py gyp-haiku/test/win/gyptest-cl-debug-format.py +--- gyp/test/win/gyptest-cl-debug-format.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-debug-format.py 2012-12-24 00:34:51.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-exception-handling.py gyp-haiku/test/win/gyptest-cl-exception-handling.py +--- gyp/test/win/gyptest-cl-exception-handling.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-exception-handling.py 2012-12-24 00:34:53.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-function-level-linking.py gyp-haiku/test/win/gyptest-cl-function-level-linking.py +--- gyp/test/win/gyptest-cl-function-level-linking.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-function-level-linking.py 2012-12-24 00:34:56.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-optimizations.py gyp-haiku/test/win/gyptest-cl-optimizations.py +--- gyp/test/win/gyptest-cl-optimizations.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-optimizations.py 2012-12-24 00:34:59.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-pdbname.py gyp-haiku/test/win/gyptest-cl-pdbname.py +--- gyp/test/win/gyptest-cl-pdbname.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-pdbname.py 2012-12-24 00:35:01.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-rtti.py gyp-haiku/test/win/gyptest-cl-rtti.py +--- gyp/test/win/gyptest-cl-rtti.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-rtti.py 2012-12-24 00:35:03.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-runtime-checks.py gyp-haiku/test/win/gyptest-cl-runtime-checks.py +--- gyp/test/win/gyptest-cl-runtime-checks.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-runtime-checks.py 2012-12-24 00:35:06.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-runtime-library.py gyp-haiku/test/win/gyptest-cl-runtime-library.py +--- gyp/test/win/gyptest-cl-runtime-library.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-runtime-library.py 2012-12-24 00:35:08.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-warning-as-error.py gyp-haiku/test/win/gyptest-cl-warning-as-error.py +--- gyp/test/win/gyptest-cl-warning-as-error.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-warning-as-error.py 2012-12-24 00:35:10.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-cl-warning-level.py gyp-haiku/test/win/gyptest-cl-warning-level.py +--- gyp/test/win/gyptest-cl-warning-level.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-cl-warning-level.py 2012-12-24 00:35:13.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-command-quote.py gyp-haiku/test/win/gyptest-command-quote.py +--- gyp/test/win/gyptest-command-quote.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-command-quote.py 2012-12-24 00:35:15.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-additional-deps.py gyp-haiku/test/win/gyptest-link-additional-deps.py +--- gyp/test/win/gyptest-link-additional-deps.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-additional-deps.py 2012-12-24 00:35:19.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-additional-options.py gyp-haiku/test/win/gyptest-link-additional-options.py +--- gyp/test/win/gyptest-link-additional-options.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-additional-options.py 2012-12-24 00:35:21.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-aslr.py gyp-haiku/test/win/gyptest-link-aslr.py +--- gyp/test/win/gyptest-link-aslr.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-aslr.py 2012-12-24 00:35:23.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-debug-info.py gyp-haiku/test/win/gyptest-link-debug-info.py +--- gyp/test/win/gyptest-link-debug-info.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-debug-info.py 2012-12-24 00:35:26.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-default-libs.py gyp-haiku/test/win/gyptest-link-default-libs.py +--- gyp/test/win/gyptest-link-default-libs.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-default-libs.py 2012-12-24 00:35:30.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-deffile.py gyp-haiku/test/win/gyptest-link-deffile.py +--- gyp/test/win/gyptest-link-deffile.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-deffile.py 2012-12-24 00:35:32.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-delay-load-dlls.py gyp-haiku/test/win/gyptest-link-delay-load-dlls.py +--- gyp/test/win/gyptest-link-delay-load-dlls.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-delay-load-dlls.py 2012-12-24 00:35:34.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-entrypointsymbol.py gyp-haiku/test/win/gyptest-link-entrypointsymbol.py +--- gyp/test/win/gyptest-link-entrypointsymbol.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-entrypointsymbol.py 2012-12-24 00:35:37.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-fixed-base.py gyp-haiku/test/win/gyptest-link-fixed-base.py +--- gyp/test/win/gyptest-link-fixed-base.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-fixed-base.py 2012-12-24 00:35:39.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-generate-manifest.py gyp-haiku/test/win/gyptest-link-generate-manifest.py +--- gyp/test/win/gyptest-link-generate-manifest.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-generate-manifest.py 2012-12-24 00:35:42.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-incremental.py gyp-haiku/test/win/gyptest-link-incremental.py +--- gyp/test/win/gyptest-link-incremental.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-incremental.py 2012-12-24 00:35:46.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-library-adjust.py gyp-haiku/test/win/gyptest-link-library-adjust.py +--- gyp/test/win/gyptest-link-library-adjust.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-library-adjust.py 2012-12-24 00:35:49.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-library-directories.py gyp-haiku/test/win/gyptest-link-library-directories.py +--- gyp/test/win/gyptest-link-library-directories.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-library-directories.py 2012-12-24 00:35:52.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-nodefaultlib.py gyp-haiku/test/win/gyptest-link-nodefaultlib.py +--- gyp/test/win/gyptest-link-nodefaultlib.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-nodefaultlib.py 2012-12-24 00:35:55.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-nxcompat.py gyp-haiku/test/win/gyptest-link-nxcompat.py +--- gyp/test/win/gyptest-link-nxcompat.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-nxcompat.py 2012-12-24 00:35:58.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-opt-icf.py gyp-haiku/test/win/gyptest-link-opt-icf.py +--- gyp/test/win/gyptest-link-opt-icf.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-opt-icf.py 2012-12-24 00:36:01.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-opt-ref.py gyp-haiku/test/win/gyptest-link-opt-ref.py +--- gyp/test/win/gyptest-link-opt-ref.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-opt-ref.py 2012-12-24 00:36:03.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-outputfile.py gyp-haiku/test/win/gyptest-link-outputfile.py +--- gyp/test/win/gyptest-link-outputfile.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-outputfile.py 2012-12-24 00:36:14.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-restat-importlib.py gyp-haiku/test/win/gyptest-link-restat-importlib.py +--- gyp/test/win/gyptest-link-restat-importlib.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-restat-importlib.py 2012-12-24 00:36:17.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-subsystem.py gyp-haiku/test/win/gyptest-link-subsystem.py +--- gyp/test/win/gyptest-link-subsystem.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-subsystem.py 2012-12-24 00:36:20.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-link-uldi.py gyp-haiku/test/win/gyptest-link-uldi.py +--- gyp/test/win/gyptest-link-uldi.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-link-uldi.py 2012-12-24 00:36:23.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-long-command-line.py gyp-haiku/test/win/gyptest-long-command-line.py +--- gyp/test/win/gyptest-long-command-line.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-long-command-line.py 2012-12-24 00:37:44.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-macro-projectname.py gyp-haiku/test/win/gyptest-macro-projectname.py +--- gyp/test/win/gyptest-macro-projectname.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-macro-projectname.py 2012-12-24 00:37:48.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-macro-vcinstalldir.py gyp-haiku/test/win/gyptest-macro-vcinstalldir.py +--- gyp/test/win/gyptest-macro-vcinstalldir.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-macro-vcinstalldir.py 2012-12-24 00:37:53.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-macros-containing-gyp.py gyp-haiku/test/win/gyptest-macros-containing-gyp.py +--- gyp/test/win/gyptest-macros-containing-gyp.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-macros-containing-gyp.py 2012-12-24 00:37:57.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-macros-in-inputs-and-outputs.py gyp-haiku/test/win/gyptest-macros-in-inputs-and-outputs.py +--- gyp/test/win/gyptest-macros-in-inputs-and-outputs.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-macros-in-inputs-and-outputs.py 2012-12-24 00:38:00.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-midl-rules.py gyp-haiku/test/win/gyptest-midl-rules.py +--- gyp/test/win/gyptest-midl-rules.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-midl-rules.py 2012-12-24 00:38:03.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-quoting-commands.py gyp-haiku/test/win/gyptest-quoting-commands.py +--- gyp/test/win/gyptest-quoting-commands.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-quoting-commands.py 2012-12-24 00:38:06.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/gyptest-rc-build.py gyp-haiku/test/win/gyptest-rc-build.py +--- gyp/test/win/gyptest-rc-build.py 2012-12-24 00:53:53.000000000 +0000 ++++ gyp-haiku/test/win/gyptest-rc-build.py 2012-12-24 00:38:09.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/precompiled/gyptest-all.py gyp-haiku/test/win/precompiled/gyptest-all.py +--- gyp/test/win/precompiled/gyptest-all.py 2012-12-24 00:53:51.000000000 +0000 ++++ gyp-haiku/test/win/precompiled/gyptest-all.py 2012-12-24 00:38:11.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/test/win/vs-macros/as.py gyp-haiku/test/win/vs-macros/as.py +--- gyp/test/win/vs-macros/as.py 2012-12-24 00:53:52.000000000 +0000 ++++ gyp-haiku/test/win/vs-macros/as.py 2012-12-24 00:38:14.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/tools/graphviz.py gyp-haiku/tools/graphviz.py +--- gyp/tools/graphviz.py 2012-12-24 00:54:08.000000000 +0000 ++++ gyp-haiku/tools/graphviz.py 2012-12-24 00:38:17.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2011 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/tools/pretty_gyp.py gyp-haiku/tools/pretty_gyp.py +--- gyp/tools/pretty_gyp.py 2012-12-24 00:54:08.000000000 +0000 ++++ gyp-haiku/tools/pretty_gyp.py 2012-12-24 00:38:21.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/tools/pretty_sln.py gyp-haiku/tools/pretty_sln.py +--- gyp/tools/pretty_sln.py 2012-12-24 00:54:08.000000000 +0000 ++++ gyp-haiku/tools/pretty_sln.py 2012-12-24 00:38:24.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be +diff -Naur gyp/tools/pretty_vcproj.py gyp-haiku/tools/pretty_vcproj.py +--- gyp/tools/pretty_vcproj.py 2012-12-24 00:54:08.000000000 +0000 ++++ gyp-haiku/tools/pretty_vcproj.py 2012-12-24 00:38:26.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # Copyright (c) 2012 Google Inc. All rights reserved. + # Use of this source code is governed by a BSD-style license that can be diff --git a/dev-lang/v8/patches/v8-r13067.patch b/dev-lang/v8/patches/v8-r13067.patch new file mode 100644 index 000000000..035b9ded4 --- /dev/null +++ b/dev-lang/v8/patches/v8-r13067.patch @@ -0,0 +1,1381 @@ +diff -Naur v8-r13067/build/common.gypi v8-r13067-haiku/build/common.gypi +--- v8-r13067/build/common.gypi 2012-12-24 04:17:35.255590400 +0000 ++++ v8-r13067-haiku/build/common.gypi 2012-12-24 04:10:09.000000000 +0000 +@@ -277,7 +277,7 @@ + }, + }], + ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ +- or OS=="netbsd"', { ++ or OS=="netbsd" or OS=="haiku"', { + 'conditions': [ + [ 'v8_no_strict_aliasing==1', { + 'cflags': [ '-fno-strict-aliasing' ], +@@ -288,7 +288,7 @@ + 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. + }], + ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ +- or OS=="netbsd" or OS=="mac" or OS=="android") and \ ++ or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="haiku") and \ + (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ + v8_target_arch=="mipsel")', { + # Check whether the host compiler and target compiler support the +@@ -360,7 +360,8 @@ + ['v8_enable_extra_checks==1', { + 'defines': ['ENABLE_EXTRA_CHECKS',], + }], +- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { ++ ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ ++ or OS=="haiku"', { + 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', + '-Wnon-virtual-dtor', '-Woverloaded-virtual' ], + }], +@@ -389,7 +390,7 @@ + 'defines': ['ENABLE_EXTRA_CHECKS',], + }], + ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ +- or OS=="android"', { ++ or OS=="android" or OS=="haiku"', { + 'cflags!': [ + '-O2', + '-Os', +diff -Naur v8-r13067/build/standalone.gypi v8-r13067-haiku/build/standalone.gypi +--- v8-r13067/build/standalone.gypi 2012-12-24 04:17:35.258473984 +0000 ++++ v8-r13067-haiku/build/standalone.gypi 2012-12-24 04:10:09.000000000 +0000 +@@ -90,7 +90,7 @@ + }, + 'conditions': [ + ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ +- or OS=="netbsd"', { ++ or OS=="netbsd" or OS=="haiku"', { + 'target_defaults': { + 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', + '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', +@@ -100,6 +100,10 @@ + [ 'OS=="linux"', { + 'cflags': [ '-ansi' ], + }], ++ [ 'OS=="haiku"', { ++ 'cflags!': [ '-pthread' ], ++ 'ldflags!': [ '-pthread' ], ++ }], + [ 'visibility=="hidden"', { + 'cflags': [ '-fvisibility=hidden' ], + }], +diff -Naur v8-r13067/src/atomicops.h v8-r13067-haiku/src/atomicops.h +--- v8-r13067/src/atomicops.h 2012-12-24 04:17:34.352583680 +0000 ++++ v8-r13067-haiku/src/atomicops.h 2012-12-24 04:10:09.000000000 +0000 +@@ -69,7 +69,7 @@ + + // Use AtomicWord for a machine-sized pointer. It will use the Atomic32 or + // Atomic64 routines below, depending on your architecture. +-#if defined(__OpenBSD__) && defined(__i386__) ++#if (defined(__OpenBSD__) || defined(__HAIKU__)) && defined(__i386__) + typedef Atomic32 AtomicWord; + #else + typedef intptr_t AtomicWord; +diff -Naur v8-r13067/src/d8.gyp v8-r13067-haiku/src/d8.gyp +--- v8-r13067/src/d8.gyp 2012-12-24 04:17:34.042467328 +0000 ++++ v8-r13067-haiku/src/d8.gyp 2012-12-24 04:10:09.000000000 +0000 +@@ -62,7 +62,8 @@ + 'sources': [ 'd8-readline.cc' ], + }], + ['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \ +- or OS=="openbsd" or OS=="solaris" or OS=="android")', { ++ or OS=="openbsd" or OS=="solaris" or OS=="android" \ ++ or OS=="haiku")', { + 'sources': [ 'd8-posix.cc', ] + }], + [ 'OS=="win"', { +diff -Naur v8-r13067/src/globals.h v8-r13067-haiku/src/globals.h +--- v8-r13067/src/globals.h 2012-12-24 04:17:34.246153216 +0000 ++++ v8-r13067-haiku/src/globals.h 2012-12-24 04:10:09.000000000 +0000 +@@ -178,7 +178,12 @@ + #endif + #else // V8_HOST_ARCH_64_BIT + #define V8_INTPTR_C(x) (x) ++#if defined(__HAIKU__) ++// (u)intptr_t is long on Haiku ++#define V8_PTR_PREFIX "l" ++#else + #define V8_PTR_PREFIX "" ++#endif + #endif // V8_HOST_ARCH_64_BIT + + // The following macro works on both 32 and 64-bit platforms. +diff -Naur v8-r13067/src/ia32/deoptimizer-ia32.cc v8-r13067-haiku/src/ia32/deoptimizer-ia32.cc +--- v8-r13067/src/ia32/deoptimizer-ia32.cc 2012-12-24 04:17:29.666632192 +0000 ++++ v8-r13067-haiku/src/ia32/deoptimizer-ia32.cc 2012-12-24 04:10:09.000000000 +0000 +@@ -354,7 +354,7 @@ + PrintF("[on-stack replacement: begin 0x%08" V8PRIxPTR " ", + reinterpret_cast(function_)); + function_->PrintName(); +- PrintF(" => node=%u, frame=%d->%d, ebp:esp=0x%08x:0x%08x]\n", ++ PrintF(" => node=%u, frame=%d->%d, ebp:esp=0x%08" V8PRIxPTR ":0x%08" V8PRIxPTR "]\n", + ast_id, + input_frame_size, + output_frame_size, +@@ -468,7 +468,7 @@ + ok ? "finished" : "aborted", + reinterpret_cast(function_)); + function_->PrintName(); +- PrintF(" => pc=0x%0x]\n", output_[0]->GetPc()); ++ PrintF(" => pc=0x%0" V8PRIxPTR "]\n", output_[0]->GetPc()); + } + } + +@@ -514,7 +514,7 @@ + intptr_t callers_pc = output_[frame_index - 1]->GetPc(); + output_frame->SetFrameSlot(output_offset, callers_pc); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; caller's pc\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; caller's pc\n", + top_address + output_offset, output_offset, callers_pc); + } + +@@ -525,7 +525,7 @@ + intptr_t fp_value = top_address + output_offset; + output_frame->SetFp(fp_value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; caller's fp\n", ++ PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08" V8PRIxPTR " ; caller's fp\n", + fp_value, output_offset, value); + } + +@@ -535,7 +535,7 @@ + Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)); + output_frame->SetFrameSlot(output_offset, context); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; context (adaptor sentinel)\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; context (adaptor sentinel)\n", + top_address + output_offset, output_offset, context); + } + +@@ -544,7 +544,7 @@ + value = reinterpret_cast(function); + output_frame->SetFrameSlot(output_offset, value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; function\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; function\n", + top_address + output_offset, output_offset, value); + } + +@@ -553,7 +553,7 @@ + value = reinterpret_cast(Smi::FromInt(height - 1)); + output_frame->SetFrameSlot(output_offset, value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; argc (%d)\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; argc (%d)\n", + top_address + output_offset, output_offset, value, height - 1); + } + +@@ -612,7 +612,7 @@ + intptr_t callers_pc = output_[frame_index - 1]->GetPc(); + output_frame->SetFrameSlot(output_offset, callers_pc); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; caller's pc\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; caller's pc\n", + top_address + output_offset, output_offset, callers_pc); + } + +@@ -623,7 +623,7 @@ + intptr_t fp_value = top_address + output_offset; + output_frame->SetFp(fp_value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; caller's fp\n", ++ PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08" V8PRIxPTR " ; caller's fp\n", + fp_value, output_offset, value); + } + +@@ -632,7 +632,7 @@ + value = output_[frame_index - 1]->GetContext(); + output_frame->SetFrameSlot(output_offset, value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; context\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; context\n", + top_address + output_offset, output_offset, value); + } + +@@ -641,7 +641,7 @@ + value = reinterpret_cast(Smi::FromInt(StackFrame::CONSTRUCT)); + output_frame->SetFrameSlot(output_offset, value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; function (construct sentinel)\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; function (construct sentinel)\n", + top_address + output_offset, output_offset, value); + } + +@@ -650,7 +650,7 @@ + value = reinterpret_cast(construct_stub); + output_frame->SetFrameSlot(output_offset, value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; code object\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; code object\n", + top_address + output_offset, output_offset, value); + } + +@@ -659,7 +659,7 @@ + value = reinterpret_cast(Smi::FromInt(height - 1)); + output_frame->SetFrameSlot(output_offset, value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; argc (%d)\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; argc (%d)\n", + top_address + output_offset, output_offset, value, height - 1); + } + +@@ -669,7 +669,7 @@ + value = output_frame->GetFrameSlot(output_frame_size - kPointerSize); + output_frame->SetFrameSlot(output_offset, value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; allocated receiver\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; allocated receiver\n", + top_address + output_offset, output_offset, value); + } + +@@ -894,7 +894,7 @@ + } + output_frame->SetFrameSlot(output_offset, value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; caller's pc\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; caller's pc\n", + top_address + output_offset, output_offset, value); + } + +@@ -917,7 +917,7 @@ + output_frame->SetFp(fp_value); + if (is_topmost) output_frame->SetRegister(ebp.code(), fp_value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; caller's fp\n", ++ PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08" V8PRIxPTR " ; caller's fp\n", + fp_value, output_offset, value); + } + ASSERT(!is_bottommost || !has_alignment_padding_ || +@@ -937,7 +937,7 @@ + output_frame->SetContext(value); + if (is_topmost) output_frame->SetRegister(esi.code(), value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; context\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; context\n", + top_address + output_offset, output_offset, value); + } + +@@ -950,7 +950,7 @@ + ASSERT(!is_bottommost || input_->GetFrameSlot(input_offset) == value); + output_frame->SetFrameSlot(output_offset, value); + if (FLAG_trace_deopt) { +- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; function\n", ++ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; function\n", + top_address + output_offset, output_offset, value); + } + +diff -Naur v8-r13067/src/platform-haiku.cc v8-r13067-haiku/src/platform-haiku.cc +--- v8-r13067/src/platform-haiku.cc 1970-01-01 00:00:00.000000000 +0000 ++++ v8-r13067-haiku/src/platform-haiku.cc 2012-12-24 04:10:09.000000000 +0000 +@@ -0,0 +1,898 @@ ++// Copyright 2012 the V8 project authors. All rights reserved. ++// Redistribution and use in source and binary forms, with or without ++// modification, are permitted provided that the following conditions are ++// met: ++// ++// * Redistributions of source code must retain the above copyright ++// notice, this list of conditions and the following disclaimer. ++// * Redistributions in binary form must reproduce the above ++// copyright notice, this list of conditions and the following ++// disclaimer in the documentation and/or other materials provided ++// with the distribution. ++// * Neither the name of Google Inc. nor the names of its ++// contributors may be used to endorse or promote products derived ++// from this software without specific prior written permission. ++// ++// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ++// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ++// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ++// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ++// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ++// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ++// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ++// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ++// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ++// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ++ ++// Platform specific code for Haiku goes here. For the POSIX comaptible parts ++// the implementation is in platform-posix.cc. ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include // mmap & munmap ++#include // mmap & munmap ++#include // open ++#include // open ++#include // sysconf ++#include // index ++#include ++#include ++#include ++ ++#undef MAP_TYPE ++ ++#include "v8.h" ++ ++#include "platform-posix.h" ++#include "platform.h" ++#include "v8threads.h" ++#include "vm-state-inl.h" ++ ++ ++namespace v8 { ++namespace internal { ++ ++// pthread_t's are pointers to structs on Haiku ++static const pthread_t kNoThread = NULL; ++ ++ ++double ceiling(double x) { ++ return ceil(x); ++} ++ ++ ++static Mutex* limit_mutex = NULL; ++ ++ ++void OS::PostSetUp() { ++ POSIXPostSetUp(); ++} ++ ++ ++uint64_t OS::CpuFeaturesImpliedByPlatform() { ++ return 0; // Haiku runs on anything. ++} ++ ++ ++int OS::ActivationFrameAlignment() { ++ // With gcc 4.4 the tree vectorization optimizer can generate code ++ // that requires 16 byte alignment such as movdqa on x86. ++ return 16; ++} ++ ++ ++void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { ++#if (defined(V8_TARGET_ARCH_ARM) && defined(__arm__)) || \ ++ (defined(V8_TARGET_ARCH_MIPS) && defined(__mips__)) ++ // Only use on ARM or MIPS hardware. ++ MemoryBarrier(); ++#else ++ __asm__ __volatile__("" : : : "memory"); ++ // An x86 store acts as a release barrier. ++#endif ++ *ptr = value; ++} ++ ++ ++const char* OS::LocalTimezone(double time) { ++ if (isnan(time)) return ""; ++ time_t tv = static_cast(floor(time/msPerSecond)); ++ struct tm* t = localtime(&tv); ++ if (NULL == t) return ""; ++ return t->tm_zone; ++} ++ ++ ++double OS::LocalTimeOffset() { ++ time_t tv = time(NULL); ++ struct tm* t = localtime(&tv); ++ // tm_gmtoff includes any daylight savings offset, so subtract it. ++ return static_cast(t->tm_gmtoff * msPerSecond - ++ (t->tm_isdst > 0 ? 3600 * msPerSecond : 0)); ++} ++ ++ ++// We keep the lowest and highest addresses mapped as a quick way of ++// determining that pointers are outside the heap (used mostly in assertions ++// and verification). The estimate is conservative, i.e., not all addresses in ++// 'allocated' space are actually allocated to our heap. The range is ++// [lowest, highest), inclusive on the low and and exclusive on the high end. ++static void* lowest_ever_allocated = reinterpret_cast(-1); ++static void* highest_ever_allocated = reinterpret_cast(0); ++ ++ ++static void UpdateAllocatedSpaceLimits(void* address, int size) { ++ ASSERT(limit_mutex != NULL); ++ ScopedLock lock(limit_mutex); ++ ++ lowest_ever_allocated = Min(lowest_ever_allocated, address); ++ highest_ever_allocated = ++ Max(highest_ever_allocated, ++ reinterpret_cast(reinterpret_cast(address) + size)); ++} ++ ++ ++bool OS::IsOutsideAllocatedSpace(void* address) { ++ return address < lowest_ever_allocated || address >= highest_ever_allocated; ++} ++ ++ ++size_t OS::AllocateAlignment() { ++ return sysconf(_SC_PAGESIZE); ++} ++ ++ ++void* OS::Allocate(const size_t requested, ++ size_t* allocated, ++ bool is_executable) { ++ const size_t msize = RoundUp(requested, AllocateAlignment()); ++ int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); ++ void* addr = OS::GetRandomMmapAddr(); ++ void* mbase = mmap(addr, msize, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); ++ if (mbase == MAP_FAILED) { ++ LOG(i::Isolate::Current(), ++ StringEvent("OS::Allocate", "mmap failed")); ++ return NULL; ++ } ++ *allocated = msize; ++ UpdateAllocatedSpaceLimits(mbase, msize); ++ return mbase; ++} ++ ++ ++void OS::Free(void* address, const size_t size) { ++ // TODO(1240712): munmap has a return value which is ignored here. ++ int result = munmap(address, size); ++ USE(result); ++ ASSERT(result == 0); ++} ++ ++ ++void OS::Sleep(int milliseconds) { ++ unsigned int ms = static_cast(milliseconds); ++ usleep(1000 * ms); ++} ++ ++ ++void OS::Abort() { ++ // Redirect to std abort to signal abnormal program termination. ++ if (FLAG_break_on_abort) { ++ DebugBreak(); ++ } ++ abort(); ++} ++ ++ ++void OS::DebugBreak() { ++// TODO(lrn): Introduce processor define for runtime system (!= V8_ARCH_x, ++// which is the architecture of generated code). ++#if (defined(__arm__) || defined(__thumb__)) ++# if defined(CAN_USE_ARMV5_INSTRUCTIONS) ++ asm("bkpt 0"); ++# endif ++#elif defined(__mips__) ++ asm("break"); ++#else ++ asm("int $3"); ++#endif ++} ++ ++ ++class PosixMemoryMappedFile : public OS::MemoryMappedFile { ++ public: ++ PosixMemoryMappedFile(FILE* file, void* memory, int size) ++ : file_(file), memory_(memory), size_(size) { } ++ virtual ~PosixMemoryMappedFile(); ++ virtual void* memory() { return memory_; } ++ virtual int size() { return size_; } ++ private: ++ FILE* file_; ++ void* memory_; ++ int size_; ++}; ++ ++ ++OS::MemoryMappedFile* OS::MemoryMappedFile::open(const char* name) { ++ FILE* file = fopen(name, "r+"); ++ if (file == NULL) return NULL; ++ ++ fseek(file, 0, SEEK_END); ++ int size = ftell(file); ++ ++ void* memory = ++ mmap(OS::GetRandomMmapAddr(), ++ size, ++ PROT_READ | PROT_WRITE, ++ MAP_SHARED, ++ fileno(file), ++ 0); ++ return new PosixMemoryMappedFile(file, memory, size); ++} ++ ++ ++OS::MemoryMappedFile* OS::MemoryMappedFile::create(const char* name, int size, ++ void* initial) { ++ FILE* file = fopen(name, "w+"); ++ if (file == NULL) return NULL; ++ int result = fwrite(initial, size, 1, file); ++ if (result < 1) { ++ fclose(file); ++ return NULL; ++ } ++ void* memory = ++ mmap(OS::GetRandomMmapAddr(), ++ size, ++ PROT_READ | PROT_WRITE, ++ MAP_SHARED, ++ fileno(file), ++ 0); ++ return new PosixMemoryMappedFile(file, memory, size); ++} ++ ++ ++PosixMemoryMappedFile::~PosixMemoryMappedFile() { ++ if (memory_) OS::Free(memory_, size_); ++ fclose(file_); ++} ++ ++ ++void OS::LogSharedLibraryAddresses() { ++ // TODO ++ // Loop through images (get_next_image_info()) and print data/text ++ // addresses. ++} ++ ++ ++void OS::SignalCodeMovingGC() { ++} ++ ++ ++int OS::StackWalk(Vector frames) { ++ // dladdr ++ return 0; ++} ++ ++// No MAP_NORESERVE on Haiku means we can't reserve without ++// committing or decommit at all. ++#define MAP_NORESERVE 0 ++ ++// Constants used for mmap. ++static const int kMmapFd = -1; ++static const int kMmapFdOffset = 0; ++ ++VirtualMemory::VirtualMemory() : address_(NULL), size_(0) { } ++ ++VirtualMemory::VirtualMemory(size_t size) { ++ address_ = ReserveRegion(size); ++ size_ = size; ++} ++ ++ ++VirtualMemory::VirtualMemory(size_t size, size_t alignment) ++ : address_(NULL), size_(0) { ++ ASSERT(IsAligned(alignment, static_cast(OS::AllocateAlignment()))); ++ size_t request_size = RoundUp(size + alignment, ++ static_cast(OS::AllocateAlignment())); ++ void* reservation = mmap(OS::GetRandomMmapAddr(), ++ request_size, ++ PROT_NONE, ++ MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, ++ kMmapFd, ++ kMmapFdOffset); ++ if (reservation == MAP_FAILED) return; ++ ++ Address base = static_cast
(reservation); ++ Address aligned_base = RoundUp(base, alignment); ++ ASSERT_LE(base, aligned_base); ++ ++ // Unmap extra memory reserved before and after the desired block. ++ if (aligned_base != base) { ++ size_t prefix_size = static_cast(aligned_base - base); ++ OS::Free(base, prefix_size); ++ request_size -= prefix_size; ++ } ++ ++ size_t aligned_size = RoundUp(size, OS::AllocateAlignment()); ++ ASSERT_LE(aligned_size, request_size); ++ ++ if (aligned_size != request_size) { ++ size_t suffix_size = request_size - aligned_size; ++ OS::Free(aligned_base + aligned_size, suffix_size); ++ request_size -= suffix_size; ++ } ++ ++ ASSERT(aligned_size == request_size); ++ ++ address_ = static_cast(aligned_base); ++ size_ = aligned_size; ++} ++ ++ ++VirtualMemory::~VirtualMemory() { ++ if (IsReserved()) { ++ bool result = ReleaseRegion(address(), size()); ++ ASSERT(result); ++ USE(result); ++ } ++} ++ ++ ++bool VirtualMemory::IsReserved() { ++ return address_ != NULL; ++} ++ ++ ++void VirtualMemory::Reset() { ++ address_ = NULL; ++ size_ = 0; ++} ++ ++ ++bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) { ++ return CommitRegion(address, size, is_executable); ++} ++ ++ ++bool VirtualMemory::Uncommit(void* address, size_t size) { ++ return UncommitRegion(address, size); ++} ++ ++ ++bool VirtualMemory::Guard(void* address) { ++ OS::Guard(address, OS::CommitPageSize()); ++ return true; ++} ++ ++ ++void* VirtualMemory::ReserveRegion(size_t size) { ++ void* result = mmap(OS::GetRandomMmapAddr(), ++ size, ++ PROT_NONE, ++ MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, ++ kMmapFd, ++ kMmapFdOffset); ++ ++ if (result == MAP_FAILED) return NULL; ++ ++ return result; ++} ++ ++ ++bool VirtualMemory::CommitRegion(void* base, size_t size, bool is_executable) { ++ int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); ++ if (MAP_FAILED == mmap(base, ++ size, ++ prot, ++ MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, ++ kMmapFd, ++ kMmapFdOffset)) { ++ return false; ++ } ++ ++ UpdateAllocatedSpaceLimits(base, size); ++ return true; ++} ++ ++ ++bool VirtualMemory::UncommitRegion(void* base, size_t size) { ++ return mmap(base, ++ size, ++ PROT_NONE, ++ MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE | MAP_FIXED, ++ kMmapFd, ++ kMmapFdOffset) != MAP_FAILED; ++} ++ ++ ++bool VirtualMemory::ReleaseRegion(void* base, size_t size) { ++ return munmap(base, size) == 0; ++} ++ ++ ++bool VirtualMemory::HasLazyCommits() { ++ return true; ++} ++ ++ ++class Thread::PlatformData : public Malloced { ++ public: ++ PlatformData() : thread_(kNoThread) {} ++ ++ pthread_t thread_; // Thread handle for pthread. ++}; ++ ++Thread::Thread(const Options& options) ++ : data_(new PlatformData()), ++ stack_size_(options.stack_size()) { ++ set_name(options.name()); ++} ++ ++ ++Thread::~Thread() { ++ delete data_; ++} ++ ++ ++static void* ThreadEntry(void* arg) { ++ Thread* thread = reinterpret_cast(arg); ++ thread->data()->thread_ = pthread_self(); ++ ASSERT(thread->data()->thread_ != kNoThread); ++ thread->Run(); ++ return NULL; ++} ++ ++ ++void Thread::set_name(const char* name) { ++ strncpy(name_, name, sizeof(name_)); ++ name_[sizeof(name_) - 1] = '\0'; ++} ++ ++ ++void Thread::Start() { ++ pthread_attr_t* attr_ptr = NULL; ++ pthread_attr_t attr; ++ if (stack_size_ > 0) { ++ pthread_attr_init(&attr); ++ pthread_attr_setstacksize(&attr, static_cast(stack_size_)); ++ attr_ptr = &attr; ++ } ++ int result = pthread_create(&data_->thread_, attr_ptr, ThreadEntry, this); ++ CHECK_EQ(0, result); ++ ASSERT(data_->thread_ != kNoThread); ++} ++ ++ ++void Thread::Join() { ++ pthread_join(data_->thread_, NULL); ++} ++ ++ ++Thread::LocalStorageKey Thread::CreateThreadLocalKey() { ++ pthread_key_t key; ++ int result = pthread_key_create(&key, NULL); ++ USE(result); ++ ASSERT(result == 0); ++ return static_cast(key); ++} ++ ++ ++void Thread::DeleteThreadLocalKey(LocalStorageKey key) { ++ pthread_key_t pthread_key = static_cast(key); ++ int result = pthread_key_delete(pthread_key); ++ USE(result); ++ ASSERT(result == 0); ++} ++ ++ ++void* Thread::GetThreadLocal(LocalStorageKey key) { ++ pthread_key_t pthread_key = static_cast(key); ++ return pthread_getspecific(pthread_key); ++} ++ ++ ++void Thread::SetThreadLocal(LocalStorageKey key, void* value) { ++ pthread_key_t pthread_key = static_cast(key); ++ pthread_setspecific(pthread_key, value); ++} ++ ++ ++void Thread::YieldCPU() { ++ sched_yield(); ++} ++ ++ ++class HaikuMutex : public Mutex { ++ public: ++ HaikuMutex() { ++ pthread_mutexattr_t attrs; ++ int result = pthread_mutexattr_init(&attrs); ++ ASSERT(result == 0); ++ result = pthread_mutexattr_settype(&attrs, PTHREAD_MUTEX_RECURSIVE); ++ ASSERT(result == 0); ++ result = pthread_mutex_init(&mutex_, &attrs); ++ ASSERT(result == 0); ++ USE(result); ++ } ++ ++ virtual ~HaikuMutex() { pthread_mutex_destroy(&mutex_); } ++ ++ virtual int Lock() { ++ int result = pthread_mutex_lock(&mutex_); ++ return result; ++ } ++ ++ virtual int Unlock() { ++ int result = pthread_mutex_unlock(&mutex_); ++ return result; ++ } ++ ++ virtual bool TryLock() { ++ int result = pthread_mutex_trylock(&mutex_); ++ // Return false if the lock is busy and locking failed. ++ if (result == EBUSY) { ++ return false; ++ } ++ ASSERT(result == 0); // Verify no other errors. ++ return true; ++ } ++ ++ private: ++ pthread_mutex_t mutex_; // Pthread mutex for POSIX platforms. ++}; ++ ++ ++Mutex* OS::CreateMutex() { ++ return new HaikuMutex(); ++} ++ ++ ++class HaikuSemaphore : public Semaphore { ++ public: ++ explicit HaikuSemaphore(int count) { sem_ = create_sem(count, ""); } ++ virtual ~HaikuSemaphore() { delete_sem(sem_); } ++ ++ virtual void Wait(); ++ virtual bool Wait(int timeout); ++ virtual void Signal() { release_sem(sem_); } ++ private: ++ sem_id sem_; ++}; ++ ++ ++void HaikuSemaphore::Wait() { ++ while (true) { ++ int result = acquire_sem(sem_); ++ if (result == B_NO_ERROR) return; // Successfully got semaphore. ++ CHECK(result == B_INTERRUPTED); // Signal caused spurious wakeup. ++ } ++} ++ ++ ++#ifndef TIMEVAL_TO_TIMESPEC ++#define TIMEVAL_TO_TIMESPEC(tv, ts) do { \ ++ (ts)->tv_sec = (tv)->tv_sec; \ ++ (ts)->tv_nsec = (tv)->tv_usec * 1000; \ ++} while (false) ++#endif ++ ++ ++bool HaikuSemaphore::Wait(int timeout) { ++ // Wait for semaphore signalled or timeout. ++ while (true) { ++ int result = acquire_sem_etc(sem_, 1, B_RELATIVE_TIMEOUT, timeout); ++ if (result == B_NO_ERROR) return true; // Successfully got semaphore. ++ if (result == B_TIMED_OUT || result == B_WOULD_BLOCK) return false; // Timeout. ++ CHECK(result == B_INTERRUPTED); // Signal caused spurious wakeup. ++ } ++} ++ ++ ++Semaphore* OS::CreateSemaphore(int count) { ++ return new HaikuSemaphore(count); ++} ++ ++ ++static pthread_t GetThreadID() { ++ return pthread_self(); ++} ++ ++ ++static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) { ++ USE(info); ++ if (signal != SIGPROF) return; ++ ++ Isolate* isolate = Isolate::UncheckedCurrent(); ++ if (isolate == NULL || !isolate->IsInitialized() || !isolate->IsInUse()) { ++ // We require a fully initialized and entered isolate. ++ return; ++ } ++ if (v8::Locker::IsActive() && ++ !isolate->thread_manager()->IsLockedByCurrentThread()) { ++ return; ++ } ++ ++ Sampler* sampler = isolate->logger()->sampler(); ++ if (sampler == NULL || !sampler->IsActive()) return; ++ ++ TickSample sample_obj; ++ TickSample* sample = CpuProfiler::StartTickSampleEvent(isolate); ++ if (sample == NULL) sample = &sample_obj; ++ ++ // Extracting the sample from the context is extremely machine dependent. ++ ucontext_t* ucontext = reinterpret_cast(context); ++ mcontext_t& mcontext = ucontext->uc_mcontext; ++ sample->state = isolate->current_vm_state(); ++#if V8_HOST_ARCH_IA32 ++ sample->pc = reinterpret_cast
(mcontext.eip); ++ sample->sp = reinterpret_cast
(mcontext.esp); ++ sample->fp = reinterpret_cast
(mcontext.ebp); ++#elif V8_HOST_ARCH_X64 ++ sample->pc = reinterpret_cast
(mcontext.rip); ++ sample->sp = reinterpret_cast
(mcontext.rsp); ++ sample->fp = reinterpret_cast
(mcontext.rbp); ++#elif V8_HOST_ARCH_ARM ++ sample->pc = reinterpret_cast
(mcontext.r15); ++ sample->sp = reinterpret_cast
(mcontext.r13); ++ sample->fp = reinterpret_cast
(mcontext.r11); ++#elif V8_HOST_ARCH_MIPS ++ #error TODO ++#endif // V8_HOST_ARCH_* ++ sampler->SampleStack(sample); ++ sampler->Tick(sample); ++ CpuProfiler::FinishTickSampleEvent(isolate); ++} ++ ++ ++class CpuProfilerSignalHandler { ++ public: ++ static void SetUp() { if (!mutex_) mutex_ = OS::CreateMutex(); } ++ static void TearDown() { delete mutex_; } ++ ++ static void InstallSignalHandler() { ++ struct sigaction sa; ++ ScopedLock lock(mutex_); ++ if (signal_handler_installed_counter_ > 0) { ++ signal_handler_installed_counter_++; ++ return; ++ } ++ sa.sa_sigaction = ProfilerSignalHandler; ++ sigemptyset(&sa.sa_mask); ++ sa.sa_flags = SA_RESTART | SA_SIGINFO; ++ if (sigaction(SIGPROF, &sa, &old_signal_handler_) == 0) { ++ signal_handler_installed_counter_++; ++ } ++ } ++ ++ static void RestoreSignalHandler() { ++ ScopedLock lock(mutex_); ++ if (signal_handler_installed_counter_ == 0) ++ return; ++ if (signal_handler_installed_counter_ == 1) { ++ sigaction(SIGPROF, &old_signal_handler_, 0); ++ } ++ signal_handler_installed_counter_--; ++ } ++ ++ static bool signal_handler_installed() { ++ return signal_handler_installed_counter_ > 0; ++ } ++ ++ private: ++ static int signal_handler_installed_counter_; ++ static struct sigaction old_signal_handler_; ++ static Mutex* mutex_; ++}; ++ ++ ++int CpuProfilerSignalHandler::signal_handler_installed_counter_ = 0; ++struct sigaction CpuProfilerSignalHandler::old_signal_handler_; ++Mutex* CpuProfilerSignalHandler::mutex_ = NULL; ++ ++ ++class Sampler::PlatformData : public Malloced { ++ public: ++ PlatformData() : vm_tid_(GetThreadID()) {} ++ ++ void SendProfilingSignal() { ++ if (!CpuProfilerSignalHandler::signal_handler_installed()) return; ++ pthread_kill(vm_tid_, SIGPROF); ++ } ++ ++ private: ++ const pthread_t vm_tid_; ++}; ++ ++ ++class SignalSender : public Thread { ++ public: ++ enum SleepInterval { ++ HALF_INTERVAL, ++ FULL_INTERVAL ++ }; ++ ++ static const int kSignalSenderStackSize = 64 * KB; ++ ++ explicit SignalSender(int interval) ++ : Thread(Thread::Options("SignalSender", kSignalSenderStackSize)), ++ interval_(interval) {} ++ ++ static void SetUp() { if (!mutex_) mutex_ = OS::CreateMutex(); } ++ static void TearDown() { delete mutex_; } ++ ++ static void AddActiveSampler(Sampler* sampler) { ++ ScopedLock lock(mutex_); ++ SamplerRegistry::AddActiveSampler(sampler); ++ if (instance_ == NULL) { ++ // Start a thread that will send SIGPROF signal to VM threads, ++ // when CPU profiling will be enabled. ++ instance_ = new SignalSender(sampler->interval()); ++ instance_->Start(); ++ } else { ++ ASSERT(instance_->interval_ == sampler->interval()); ++ } ++ } ++ ++ static void RemoveActiveSampler(Sampler* sampler) { ++ ScopedLock lock(mutex_); ++ SamplerRegistry::RemoveActiveSampler(sampler); ++ if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) { ++ RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(instance_); ++ delete instance_; ++ instance_ = NULL; ++ } ++ } ++ ++ // Implement Thread::Run(). ++ virtual void Run() { ++ SamplerRegistry::State state; ++ while ((state = SamplerRegistry::GetState()) != ++ SamplerRegistry::HAS_NO_SAMPLERS) { ++ bool cpu_profiling_enabled = ++ (state == SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS); ++ bool runtime_profiler_enabled = RuntimeProfiler::IsEnabled(); ++ // When CPU profiling is enabled both JavaScript and C++ code is ++ // profiled. We must not suspend. ++ if (!cpu_profiling_enabled) { ++ if (rate_limiter_.SuspendIfNecessary()) continue; ++ } ++ if (cpu_profiling_enabled && runtime_profiler_enabled) { ++ if (!SamplerRegistry::IterateActiveSamplers(&DoCpuProfile, NULL)) { ++ return; ++ } ++ Sleep(HALF_INTERVAL); ++ if (!SamplerRegistry::IterateActiveSamplers(&DoRuntimeProfile, NULL)) { ++ return; ++ } ++ Sleep(HALF_INTERVAL); ++ } else { ++ if (cpu_profiling_enabled) { ++ if (!SamplerRegistry::IterateActiveSamplers(&DoCpuProfile, NULL)) { ++ return; ++ } ++ } ++ if (runtime_profiler_enabled) { ++ if (!SamplerRegistry::IterateActiveSamplers(&DoRuntimeProfile, ++ NULL)) { ++ return; ++ } ++ } ++ Sleep(FULL_INTERVAL); ++ } ++ } ++ } ++ ++ static void DoCpuProfile(Sampler* sampler, void*) { ++ if (!sampler->IsProfiling()) return; ++ sampler->platform_data()->SendProfilingSignal(); ++ } ++ ++ static void DoRuntimeProfile(Sampler* sampler, void* ignored) { ++ if (!sampler->isolate()->IsInitialized()) return; ++ sampler->isolate()->runtime_profiler()->NotifyTick(); ++ } ++ ++ void Sleep(SleepInterval full_or_half) { ++ // Convert ms to us and subtract 100 us to compensate delays ++ // occuring during signal delivery. ++ useconds_t interval = interval_ * 1000 - 100; ++ if (full_or_half == HALF_INTERVAL) interval /= 2; ++ int result = usleep(interval); ++#ifdef DEBUG ++ if (result != 0 && errno != EINTR) { ++ fprintf(stderr, ++ "SignalSender usleep error; interval = %lu, errno = %d\n", ++ interval, ++ errno); ++ ASSERT(result == 0 || errno == EINTR); ++ } ++#endif ++ USE(result); ++ } ++ ++ const int interval_; ++ RuntimeProfilerRateLimiter rate_limiter_; ++ ++ // Protects the process wide state below. ++ static Mutex* mutex_; ++ static SignalSender* instance_; ++ ++ private: ++ DISALLOW_COPY_AND_ASSIGN(SignalSender); ++}; ++ ++ ++Mutex* SignalSender::mutex_ = NULL; ++SignalSender* SignalSender::instance_ = NULL; ++ ++ ++void OS::SetUp() { ++ // Seed the random number generator. We preserve microsecond resolution. ++ uint64_t seed = Ticks() ^ (getpid() << 16); ++ srandom(static_cast(seed)); ++ limit_mutex = CreateMutex(); ++ ++ SignalSender::SetUp(); ++ CpuProfilerSignalHandler::SetUp(); ++} ++ ++ ++void OS::TearDown() { ++ SignalSender::TearDown(); ++ CpuProfilerSignalHandler::TearDown(); ++ delete limit_mutex; ++} ++ ++ ++Sampler::Sampler(Isolate* isolate, int interval) ++ : isolate_(isolate), ++ interval_(interval), ++ profiling_(false), ++ active_(false), ++ has_processing_thread_(false), ++ samples_taken_(0) { ++ data_ = new PlatformData; ++} ++ ++ ++Sampler::~Sampler() { ++ ASSERT(!IsActive()); ++ delete data_; ++} ++ ++ ++void Sampler::DoSample() { ++ platform_data()->SendProfilingSignal(); ++} ++ ++ ++void Sampler::Start() { ++ ASSERT(!IsActive()); ++ SetActive(true); ++ SignalSender::AddActiveSampler(this); ++} ++ ++ ++void Sampler::Stop() { ++ ASSERT(IsActive()); ++ SignalSender::RemoveActiveSampler(this); ++ SetActive(false); ++} ++ ++ ++void Sampler::StartSampling() { ++ CpuProfilerSignalHandler::InstallSignalHandler(); ++} ++ ++ ++void Sampler::StopSampling() { ++ CpuProfilerSignalHandler::RestoreSignalHandler(); ++} ++ ++ ++} } // namespace v8::internal +diff -Naur v8-r13067/src/platform.h v8-r13067-haiku/src/platform.h +--- v8-r13067/src/platform.h 2012-12-24 04:17:34.145227776 +0000 ++++ v8-r13067-haiku/src/platform.h 2012-12-24 04:10:09.000000000 +0000 +@@ -96,6 +96,10 @@ + + #endif // WIN32 + ++#ifdef __HAIKU__ ++#define isless(x, y) __builtin_isless(x, y) ++#endif // __HAIKU__ ++ + #include "atomicops.h" + #include "lazy-instance.h" + #include "platform-tls.h" +@@ -107,7 +111,7 @@ + + // Use AtomicWord for a machine-sized pointer. It is assumed that + // reads and writes of naturally aligned values of this type are atomic. +-#if defined(__OpenBSD__) && defined(__i386__) ++#if (defined(__OpenBSD__) || defined(__HAIKU__)) && defined(__i386__) + typedef Atomic32 AtomicWord; + #else + typedef intptr_t AtomicWord; +diff -Naur v8-r13067/tools/android-run.py v8-r13067-haiku/tools/android-run.py +--- v8-r13067/tools/android-run.py 2012-12-24 04:17:38.883425280 +0000 ++++ v8-r13067-haiku/tools/android-run.py 2012-12-24 04:12:45.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2012 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/disasm.py v8-r13067-haiku/tools/disasm.py +--- v8-r13067/tools/disasm.py 2012-12-24 04:17:38.872939520 +0000 ++++ v8-r13067-haiku/tools/disasm.py 2012-12-24 04:12:53.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2011 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/gc-nvp-trace-processor.py v8-r13067-haiku/tools/gc-nvp-trace-processor.py +--- v8-r13067/tools/gc-nvp-trace-processor.py 2012-12-24 04:17:38.844103680 +0000 ++++ v8-r13067-haiku/tools/gc-nvp-trace-processor.py 2012-12-24 04:13:09.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2010 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/gen-postmortem-metadata.py v8-r13067-haiku/tools/gen-postmortem-metadata.py +--- v8-r13067/tools/gen-postmortem-metadata.py 2012-12-24 04:17:38.834142208 +0000 ++++ v8-r13067-haiku/tools/gen-postmortem-metadata.py 2012-12-24 04:13:24.000000000 +0000 +@@ -1,5 +1,4 @@ +-#!/usr/bin/env python +- ++#!/boot/common/bin/python + # + # Copyright 2012 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/grokdump.py v8-r13067-haiku/tools/grokdump.py +--- v8-r13067/tools/grokdump.py 2012-12-24 04:17:38.750780416 +0000 ++++ v8-r13067-haiku/tools/grokdump.py 2012-12-24 04:13:35.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2012 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/gyp/v8.gyp v8-r13067-haiku/tools/gyp/v8.gyp +--- v8-r13067/tools/gyp/v8.gyp 2012-12-24 04:17:38.516161536 +0000 ++++ v8-r13067-haiku/tools/gyp/v8.gyp 2012-12-24 04:10:09.000000000 +0000 +@@ -743,6 +743,17 @@ + 'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ], + }, + }], ++ ['OS=="haiku"', { ++ 'link_settings': { ++ 'libraries': [ ++ '-lnetwork', ++ ]}, ++ 'sources': [ ++ '../../src/platform-haiku.cc', ++ '../../src/platform-posix.cc', ++ ], ++ } ++ ], + ['component=="shared_library"', { + 'defines': [ + 'BUILDING_V8_SHARED', +diff -Naur v8-r13067/tools/js2c.py v8-r13067-haiku/tools/js2c.py +--- v8-r13067/tools/js2c.py 2012-12-24 04:17:38.776470528 +0000 ++++ v8-r13067-haiku/tools/js2c.py 2012-12-24 04:13:42.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2012 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/ll_prof.py v8-r13067-haiku/tools/ll_prof.py +--- v8-r13067/tools/ll_prof.py 2012-12-24 04:17:38.824442880 +0000 ++++ v8-r13067-haiku/tools/ll_prof.py 2012-12-24 04:15:04.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2012 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/presubmit.py v8-r13067-haiku/tools/presubmit.py +--- v8-r13067/tools/presubmit.py 2012-12-24 04:17:38.800063488 +0000 ++++ v8-r13067-haiku/tools/presubmit.py 2012-12-24 04:15:09.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2012 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/process-heap-prof.py v8-r13067-haiku/tools/process-heap-prof.py +--- v8-r13067/tools/process-heap-prof.py 2012-12-24 04:17:38.827588608 +0000 ++++ v8-r13067-haiku/tools/process-heap-prof.py 2012-12-24 04:15:13.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2009 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/run-tests.py v8-r13067-haiku/tools/run-tests.py +--- v8-r13067/tools/run-tests.py 2012-12-24 04:17:38.779878400 +0000 ++++ v8-r13067-haiku/tools/run-tests.py 2012-12-24 04:15:19.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2012 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/stats-viewer.py v8-r13067-haiku/tools/stats-viewer.py +--- v8-r13067/tools/stats-viewer.py 2012-12-24 04:17:38.831258624 +0000 ++++ v8-r13067-haiku/tools/stats-viewer.py 2012-12-24 04:15:24.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2008 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/status-file-converter.py v8-r13067-haiku/tools/status-file-converter.py +--- v8-r13067/tools/status-file-converter.py 2012-12-24 04:17:38.783024128 +0000 ++++ v8-r13067-haiku/tools/status-file-converter.py 2012-12-24 04:15:29.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2012 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/test-server.py v8-r13067-haiku/tools/test-server.py +--- v8-r13067/tools/test-server.py 2012-12-24 04:17:38.890503168 +0000 ++++ v8-r13067-haiku/tools/test-server.py 2012-12-24 04:15:37.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2012 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/test-wrapper-gypbuild.py v8-r13067-haiku/tools/test-wrapper-gypbuild.py +--- v8-r13067/tools/test-wrapper-gypbuild.py 2012-12-24 04:17:38.796393472 +0000 ++++ v8-r13067-haiku/tools/test-wrapper-gypbuild.py 2012-12-24 04:15:43.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2012 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/test.py v8-r13067-haiku/tools/test.py +--- v8-r13067/tools/test.py 2012-12-24 04:17:38.870318080 +0000 ++++ v8-r13067-haiku/tools/test.py 2012-12-24 04:15:49.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + # + # Copyright 2012 the V8 project authors. All rights reserved. + # Redistribution and use in source and binary forms, with or without +diff -Naur v8-r13067/tools/testrunner/server/daemon.py v8-r13067-haiku/tools/testrunner/server/daemon.py +--- v8-r13067/tools/testrunner/server/daemon.py 2012-12-24 04:17:37.866910208 +0000 ++++ v8-r13067-haiku/tools/testrunner/server/daemon.py 2012-12-24 04:15:57.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/boot/common/bin/python + + # This code has been written by Sander Marechal and published at: + # http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ +diff -Naur v8-r13067/tools/utils.py v8-r13067-haiku/tools/utils.py +--- v8-r13067/tools/utils.py 2012-12-24 04:17:38.839647232 +0000 ++++ v8-r13067-haiku/tools/utils.py 2012-12-24 04:10:09.000000000 +0000 +@@ -63,6 +63,8 @@ + return 'solaris' + elif id == 'NetBSD': + return 'netbsd' ++ elif id == 'Haiku': ++ return 'haiku' + else: + return None + +@@ -83,6 +85,8 @@ + return 'ia32' + elif id == 'amd64': + return 'ia32' ++ elif id == 'BePC': ++ return 'ia32' + else: + return None + diff --git a/dev-lang/v8/v8-r13067.bep b/dev-lang/v8/v8-r13067.bep new file mode 100644 index 000000000..39ac947e2 --- /dev/null +++ b/dev-lang/v8/v8-r13067.bep @@ -0,0 +1,46 @@ +DESCRIPTION="V8 is Google's open source JavaScript engine." +HOMEPAGE="https://code.google.com/p/v8/" +SRC_URI="svn+http://v8.googlecode.com/svn/trunk/#13067" +REVISION="1" +STATUS_HAIKU="unstable" +DEPEND="" +#CHECKSUM_MD5="" +MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building." +BUILD { + gyp_patch_path=$(dirname ${PWD})/patches/gyp-r1501.patch + cd v8-r13067 + cd build + svn co http://gyp.googlecode.com/svn/trunk/@1501 gyp + cd gyp + patch -p1 -i $gyp_patch_path + cd ../.. + make library=shared ia32.debug +} + +TEST { + cd v8-r13067 + make ia32.debug.check +} + +INSTALL { + cd v8-r13067 + includedir=${DESTDIR}/`finddir B_COMMON_HEADERS_DIRECTORY`/v8 + mkdir -p ${includedir} + cp -R ./include/* ${includedir} + libdir=${DESTDIR}/`finddir B_COMMON_LIB_DIRECTORY` + mkdir -p ${libdir} + cp -R ./out/ia32.debug/obj.target/tools/gyp/*.a ${libdir} + cp -R ./out/ia32.debug/obj.target/tools/gyp/*.so ${libdir} + bindir=${DESTDIR}/`finddir B_COMMON_BIN_DIRECTORY`/v8 + mkdir -p ${bindir} + cp ./out/ia32.debug/cctest ${bindir} + cp ./out/ia32.debug/d8 ${bindir} + cp ./out/ia32.debug/lineprocessor ${bindir} + cp ./out/ia32.debug/mksnapshot ${bindir} + cp ./out/ia32.debug/preparser ${bindir} + cp ./out/ia32.debug/process ${bindir} + cp ./out/ia32.debug/shell ${bindir} +} + +LICENSE="BSD (3-clause)" +COPYRIGHT="2006-2012 The V8 Project Authors"