Control: tags 943273 patch

The attached patch simply switches to python3.

The code seems at a glance to be python3 compatible(e.g. 2to3 didn't
have anything interesting to say), and is sufficient enough for help2man
to work running with python3. But I haven't tested more extensively than
that.

Maybe it is too easy to be true!


live well,
  vagrant
From 620fec8b161bb56cd48b00f6c5449f9783bd66b7 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@debian.org>
Date: Mon, 6 Jul 2020 14:12:22 -0700
Subject: [PATCH] Switch to python3 (Closes: #943273).

---
 debian/control         |  4 ++--
 debian/patches/python3 | 24 ++++++++++++++++++++++++
 debian/patches/series  |  1 +
 3 files changed, 27 insertions(+), 2 deletions(-)
 create mode 100644 debian/patches/python3

diff --git a/debian/control b/debian/control
index d3eba62..4273080 100644
--- a/debian/control
+++ b/debian/control
@@ -2,14 +2,14 @@ Source: skales
 Section: admin
 Priority: optional
 Maintainer: Riku Voipio <riku.voi...@linaro.org>
-Build-Depends: debhelper (>=9), help2man, libfdt1, python
+Build-Depends: debhelper (>=9), help2man, libfdt1, python3
 Standards-Version: 4.1.3
 Vcs-Git: https://salsa.debian.org/debian/skales.git
 Vcs-Browser: https://salsa.debian.org/debian/skales
 
 Package: skales
 Architecture: any
-Depends: device-tree-compiler, python, ${misc:Depends}
+Depends: device-tree-compiler, python3, ${misc:Depends}
 Description: Boot image creation tools for qualcomm boards
  Scripts and tools used to build kernel images for some Qualcomm SoC
  based boards, such as DragonBoard 410c. Tools included in the package
diff --git a/debian/patches/python3 b/debian/patches/python3
new file mode 100644
index 0000000..d5bbaa7
--- /dev/null
+++ b/debian/patches/python3
@@ -0,0 +1,24 @@
+From: Vagrant Cascadian <vagr...@debian.org>
+Debian-bug: https://bugs.debian.org/943273
+Comment: Switch to using python3.
+
+Index: skales/dtbTool
+===================================================================
+--- skales.orig/dtbTool
++++ skales/dtbTool
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env python
++#! /usr/bin/env python3
+ #
+ #  Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
+ #
+Index: skales/mkbootimg
+===================================================================
+--- skales.orig/mkbootimg
++++ skales/mkbootimg
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env python
++#! /usr/bin/env python3
+ #
+ #  Copyright (c) 2013, The Linux Foundation. All rights reserved.
+ #
diff --git a/debian/patches/series b/debian/patches/series
index a7c8b03..6cc5f27 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 dtbtoo-soname
+python3
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature

Reply via email to