Skip to content

Instantly share code, notes, and snippets.

@matthiasr
Created November 6, 2011 18:56
Show Gist options
  • Select an option

  • Save matthiasr/1343312 to your computer and use it in GitHub Desktop.

Select an option

Save matthiasr/1343312 to your computer and use it in GitHub Desktop.
diff --git a/lang/python24/patches/patch-am b/lang/python24/patches/patch-am
index 44d081f..ef1605d 100644
--- a/lang/python24/patches/patch-am
+++ b/lang/python24/patches/patch-am
@@ -271,7 +271,7 @@ $NetBSD: patch-am,v 1.8 2011/10/31 06:50:53 sbd Exp $
+ for dir in dirs:
+ f = os.path.join(dir, 'ndbm.h')
+ if sys.platform == 'darwin' and is_macosx_sdk_path(dir):
-+ f = os.path.join(sysroot, dir[1:], filename)
++ f = os.path.join(sysroot, dir[1:], "ndbm.h")
+ if not os.path.exists(f): continue
+
+ ret = 'True'
diff --git a/lang/python25/patches/patch-am b/lang/python25/patches/patch-am
index e8a631a..ad98661 100644
--- a/lang/python25/patches/patch-am
+++ b/lang/python25/patches/patch-am
@@ -360,7 +360,7 @@ $NetBSD: patch-am,v 1.9 2011/10/31 06:50:54 sbd Exp $
+ for dir in dirs:
+ f = os.path.join(dir, 'ndbm.h')
+ if sys.platform == 'darwin' and is_macosx_sdk_path(dir):
-+ f = os.path.join(sysroot, dir[1:], filename)
++ f = os.path.join(sysroot, dir[1:], "ndbm.h")
+ if not os.path.exists(f): continue
+
+ ret = 'True'
diff --git a/lang/python26/patches/patch-am b/lang/python26/patches/patch-am
index 1327acc..978ea9d 100644
--- a/lang/python26/patches/patch-am
+++ b/lang/python26/patches/patch-am
@@ -308,7 +308,7 @@ support building the "nis" and "crypt" modules.
+ for dir in dirs:
+ f = os.path.join(dir, 'ndbm.h')
+ if sys.platform == 'darwin' and is_macosx_sdk_path(dir):
-+ f = os.path.join(sysroot, dir[1:], filename)
++ f = os.path.join(sysroot, dir[1:], "ndbm.h")
+ if not os.path.exists(f): continue
+
+ ret = 'True'
diff --git a/lang/python27/patches/patch-am b/lang/python27/patches/patch-am
index 3661c48..17fe236 100644
--- a/lang/python27/patches/patch-am
+++ b/lang/python27/patches/patch-am
@@ -280,7 +280,7 @@ Build the 1.85 compat module all the time against the BDB version of choice.
+ for dir in dirs:
+ f = os.path.join(dir, 'ndbm.h')
+ if sys.platform == 'darwin' and is_macosx_sdk_path(dir):
-+ f = os.path.join(sysroot, dir[1:], filename)
++ f = os.path.join(sysroot, dir[1:], "ndbm.h")
+ if not os.path.exists(f): continue
+
+ ret = 'True'
diff --git a/lang/python31/patches/patch-am b/lang/python31/patches/patch-am
index 14475c6..9bd63f3 100644
--- a/lang/python31/patches/patch-am
+++ b/lang/python31/patches/patch-am
@@ -54,7 +54,7 @@ $NetBSD: patch-am,v 1.4 2011/10/31 06:50:55 sbd Exp $
+ for dir in dirs:
+ f = os.path.join(dir, 'ndbm.h')
+ if sys.platform == 'darwin' and is_macosx_sdk_path(dir):
-+ f = os.path.join(sysroot, dir[1:], filename)
++ f = os.path.join(sysroot, dir[1:], "ndbm.h")
+ if not os.path.exists(f): continue
+
+ ret = 'True'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment