[Debian-ha-commits] [pcs] 07/14: d/patches: add 0010-Fix-python3-build.patch
Valentin Vidic
vvidic-guest at moszumanska.debian.org
Sat Oct 14 11:56:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
vvidic-guest pushed a commit to branch master
in repository pcs.
commit 8a89caf0e661be7cd60eb5e16614576650519916
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date: Fri Oct 13 19:10:47 2017 +0200
d/patches: add 0010-Fix-python3-build.patch
Fixes for python3 support.
---
debian/patches/0010-Fix-python3-build.patch | 26 ++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 27 insertions(+)
diff --git a/debian/patches/0010-Fix-python3-build.patch b/debian/patches/0010-Fix-python3-build.patch
new file mode 100644
index 0000000..a671707
--- /dev/null
+++ b/debian/patches/0010-Fix-python3-build.patch
@@ -0,0 +1,26 @@
+Description: Fixes for python3 support
+ Update Makefile and pcs script to build and run using python3.
+Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
+Last-Update: 2017-10-13
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/Makefile
++++ b/Makefile
+@@ -28,6 +28,9 @@
+ ifeq ($(PYTHON_SITELIB), /usr/lib/python2.7/dist-packages)
+ EXTRA_SETUP_OPTS="--install-layout=deb"
+ endif
++ifeq ($(PYTHON_SITELIB), /usr/lib/python3/dist-packages)
++ EXTRA_SETUP_OPTS="--install-layout=deb"
++endif
+
+ # Check for systemd presence
+ ifeq ($(SYSTEMCTL_OVERRIDE),true)
+--- a/pcs/pcs
++++ b/pcs/pcs
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+
+ from __future__ import absolute_import
+ import os.path
diff --git a/debian/patches/series b/debian/patches/series
index f70c2ba..b433801 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
0007-Fix-testsuite.patch
0008-Replace-chkconfig.patch
0009-Fix-pcsd-port.patch
+0010-Fix-python3-build.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/pcs.git
More information about the Debian-HA-Commits
mailing list