aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/python3/patches/python3.fix-comment-style.patch11
-rw-r--r--python/python3/python3.SlackBuild6
2 files changed, 16 insertions, 1 deletions
diff --git a/python/python3/patches/python3.fix-comment-style.patch b/python/python3/patches/python3.fix-comment-style.patch
new file mode 100644
index 0000000000000..03a2ee3762b22
--- /dev/null
+++ b/python/python3/patches/python3.fix-comment-style.patch
@@ -0,0 +1,11 @@
+--- Python-3.6.0/Include/pyport.h.orig 2017-01-01 07:58:08.575202311 +0700
++++ Python-3.6.0/Include/pyport.h 2017-01-01 07:58:20.332234160 +0700
+@@ -37,7 +37,7 @@
+ * integral synonyms. Only define the ones we actually need.
+ */
+
+-// long long is required. Ensure HAVE_LONG_LONG is defined for compatibility.
++/* long long is required. Ensure HAVE_LONG_LONG is defined for compatibility. */
+ #ifndef HAVE_LONG_LONG
+ #define HAVE_LONG_LONG
+ #endif
diff --git a/python/python3/python3.SlackBuild b/python/python3/python3.SlackBuild
index 2394565a7de77..faa3cfa2e1eff 100644
--- a/python/python3/python3.SlackBuild
+++ b/python/python3/python3.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=python3
VERSION=${VERSION:-3.6.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -72,6 +72,10 @@ patch -p1 -i $CWD/patches/python3.readline.set_pre_input_hook.diff
# We don't want a large libpython*.a.
patch -p1 -i $CWD/patches/python3.no-static-library.diff
+# patch for comment style
+# fix build on pygobject3-python3
+patch -p1 -i $CWD/patches/python3.fix-comment-style.patch
+
if [ "$ARCH" = "x86_64" ]; then
# Install to lib64 instead of lib.
patch -p1 -i $CWD/patches/python3.x86_64.diff