$OpenBSD: patch-build_common_gypi,v 1.8 2011/06/15 19:41:02 robert Exp $
--- build/common.gypi.orig	Mon Jun  6 11:11:46 2011
+++ build/common.gypi	Wed Jun  8 09:58:35 2011
@@ -95,7 +95,7 @@
       'file_manager_extension%': 0,
 
       # Python version.
-      'python_ver%': '2.5',
+      'python_ver%': '${MODPY_VERSION}',
 
       # Set ARM-v7 compilation flags
       'armv7%': 0,
@@ -316,7 +316,7 @@
     'linux_strip_reliability_tests%': 0,
 
     # Enable TCMalloc.
-    'linux_use_tcmalloc%': 1,
+    'linux_use_tcmalloc%': 0,
 
     # Disable TCMalloc's debugallocation.
     'linux_use_debugallocation%': 0,
@@ -337,7 +337,7 @@
 
     # Used to disable Native Client at compile time, for platforms where it
     # isn't supported
-    'disable_nacl%': 0,
+    'disable_nacl%': 1,
 
     # Set Thumb compilation flags.
     'arm_thumb%': 0,
@@ -405,7 +405,7 @@
         # This is used to tweak build flags for gcc 4.4.
         'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)',
         # Figure out the python architecture to decide if we build pyauto.
-        'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/lib/libpython<(python_ver).so.1.0)',
+        'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/local/lib/libpython<(python_ver).so.1.0)',
         'conditions': [
           ['branding=="Chrome"', {
             'linux_breakpad%': 1,
@@ -478,7 +478,7 @@
         ],
       }],
 
-      ['OS=="mac" or (OS=="linux" and chromeos==0 and target_arch!="arm")', {
+      ['OS=="mac" or OS=="openbsd" or (OS=="linux" and chromeos==0 and target_arch!="arm")', {
         'use_cups%': 1,
       }, {
         'use_cups%': 0,
@@ -779,7 +779,7 @@
               ['exclude', '(^|/)(gtk|x11)_[^/]*\\.(h|cc)$'],
             ],
           }],
-          ['OS!="linux"', {
+          ['OS!="linux" and OS!="openbsd"', {
             'sources/': [
               ['exclude', '_linux(_unittest)?\\.(h|cc)$'],
               ['exclude', '(^|/)linux/'],
