From 1c136857843cd3af1ac941f133ceb0a2e9d7ff18 Mon Sep 17 00:00:00 2001 From: Graham Inggs Date: Mon, 22 Jul 2019 00:52:00 +0200 Subject: Run MakeHeader.py in Python 3 --- debian/changelog | 1 + debian/control | 2 +- debian/patches/python3.patch | 13 +++++++++++++ debian/patches/series | 1 + 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 debian/patches/python3.patch diff --git a/debian/changelog b/debian/changelog index a77c258..e838093 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ htop (2.2.0-2) UNRELEASED; urgency=medium * Switch to debhelper 12 * Set Rules-Requires-Root: no + * Run MakeHeader.py in Python 3 -- Graham Inggs Sun, 21 Jul 2019 22:38:38 +0000 diff --git a/debian/control b/debian/control index c003fda..0a5960f 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,7 @@ Build-Depends: debhelper-compat (= 12), libncurses5-dev, libncursesw5-dev, pkg-config, - python-minimal:native + python3-minimal:native Standards-Version: 4.1.4 Rules-Requires-Root: no Homepage: https://hisham.hm/htop/ diff --git a/debian/patches/python3.patch b/debian/patches/python3.patch new file mode 100644 index 0000000..6a65355 --- /dev/null +++ b/debian/patches/python3.patch @@ -0,0 +1,13 @@ +Description: Run MakeHeader.py in Python 3 +Forwarded: not-needed +Author: Graham Inggs +Last-Update: 2019-07-22 + +--- a/scripts/MakeHeader.py ++++ b/scripts/MakeHeader.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + import os, sys, string, io + try: + from StringIO import StringIO diff --git a/debian/patches/series b/debian/patches/series index 0f31862..0e63084 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ 780-fix-option-string.patch fix-linux-process.patch +python3.patch -- cgit v1.2.3