summaryrefslogtreecommitdiff
path: root/sysutils/py-dbus/patches
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-08-15 06:42:43 +0000
committerobache <obache@pkgsrc.org>2012-08-15 06:42:43 +0000
commitddc7a8e2c4fe75336c0009f4925dedda77d3e10c (patch)
treecc96d68f3aefdbc9ecf6db8c9e69edeb51c85f82 /sysutils/py-dbus/patches
parentdb90eaf63c45a4ddef68209852809acb894db9db (diff)
downloadpkgsrc-ddc7a8e2c4fe75336c0009f4925dedda77d3e10c.tar.gz
prevent to specify cfile for py_compile.compile to be PEP 3147 comliant.
Diffstat (limited to 'sysutils/py-dbus/patches')
-rw-r--r--sysutils/py-dbus/patches/patch-py-compile24
1 files changed, 24 insertions, 0 deletions
diff --git a/sysutils/py-dbus/patches/patch-py-compile b/sysutils/py-dbus/patches/patch-py-compile
new file mode 100644
index 00000000000..d6dcd8f495b
--- /dev/null
+++ b/sysutils/py-dbus/patches/patch-py-compile
@@ -0,0 +1,24 @@
+$NetBSD: patch-py-compile,v 1.1 2012/08/15 06:42:43 obache Exp $
+
+* prevent to specify cfile for py_compile.compile to be PEP 3147-compliant.
+
+--- py-compile.orig 2012-01-24 16:37:31.000000000 +0000
++++ py-compile
+@@ -130,7 +130,7 @@ for file in files.split():
+ continue
+ sys.stdout.write(file)
+ sys.stdout.flush()
+- py_compile.compile(filepath, filepath + 'c', path)
++ py_compile.compile(filepath, None, path)
+ sys.stdout.write('\n')" || exit $?
+
+ # this will fail for python < 1.5, but that doesn't matter ...
+@@ -147,7 +147,7 @@ for file in files.split():
+ continue
+ sys.stdout.write(file)
+ sys.stdout.flush()
+- py_compile.compile(filepath, filepath + 'o', path)
++ py_compile.compile(filepath, None, path)
+ sys.stdout.write('\n')" 2>/dev/null || :
+
+ # Local Variables: