Backports Archive mirror
 help / color / mirror / Atom feed
From: Hauke Mehrtens <hauke@hauke-m.de>
To: backports@vger.kernel.org
Cc: johannes.berg@intel.com, Hauke Mehrtens <hauke@hauke-m.de>
Subject: [PATCH 02/14] backports: cmake: Fixes for python3
Date: Tue, 12 Oct 2021 00:22:15 +0200	[thread overview]
Message-ID: <20211011222227.1189850-3-hauke@hauke-m.de> (raw)
In-Reply-To: <20211011222227.1189850-1-hauke@hauke-m.de>

Make ckmake work with python3.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 devel/ckmake | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/devel/ckmake b/devel/ckmake
index d16de3a7..9252df84 100755
--- a/devel/ckmake
+++ b/devel/ckmake
@@ -20,7 +20,7 @@ import subprocess
 import sys
 import signal
 
-from Queue import Queue
+from queue import Queue
 from threading import Thread, Lock
 from shutil import copytree, ignore_patterns, rmtree, copyfileobj
 from time import sleep
@@ -232,7 +232,6 @@ def cpu_info_build_jobs():
 
 def kill_curses():
     curses.endwin()
-    sys.stdout = os.fdopen(0, 'w', 0)
 
 
 def sig_handler(signal, frame):
@@ -643,10 +642,10 @@ if __name__ == "__main__":
             target_kranges.append(krange)
 
     if not os.path.exists(modules):
-        print "%s does not exist" % (modules)
+        print ("%s does not exist" % (modules))
         sys.exit(1)
     if not os.path.exists(my_cwd + '/Makefile'):
-        print "%s does not exist" % (my_cwd + '/Makefile')
+        print ("%s does not exist" % (my_cwd + '/Makefile'))
         sys.exit(1)
     if os.path.exists(ckmake_log):
         os.remove(ckmake_log)
-- 
2.30.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in

  parent reply	other threads:[~2021-10-11 22:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-11 22:22 [PATCH 00/14] backports: Remove support for kernel < 4.4 Hauke Mehrtens
2021-10-11 22:22 ` [PATCH 01/14] backports: Add support deb with zstd compression Hauke Mehrtens
2021-10-11 22:22 ` Hauke Mehrtens [this message]
2021-10-11 22:22 ` [PATCH 03/14] backprots: Add *.mod to .gitignore Hauke Mehrtens
2021-10-11 22:22 ` [PATCH 04/14] backports: Remove 3.X kernel headers Hauke Mehrtens
2021-10-11 22:22 ` [PATCH 05/14] backports: Remove 3.X kernel patches Hauke Mehrtens
2021-10-11 22:22 ` [PATCH 06/14] backports: dependencies: Remove dependencies to kernel 3.X Hauke Mehrtens
2021-10-11 22:22 ` [PATCH 07/14] backports: Remove led subsystem backport Hauke Mehrtens
2021-10-11 22:22 ` [PATCH 08/14] backports: Remove MII " Hauke Mehrtens
2021-10-11 22:22 ` [PATCH 09/14] backports: Remove coredump " Hauke Mehrtens
2021-10-11 22:22 ` [PATCH 10/14] backports: Remove support for kernel smaller than 4.0 Hauke Mehrtens
2021-10-11 22:22 ` [PATCH 11/14] backports: Remove support for kernel smaller than 4.1 Hauke Mehrtens
2021-10-11 22:22 ` [PATCH 12/14] backports: Remove support for kernel smaller than 4.2 Hauke Mehrtens
2021-10-11 22:22 ` [PATCH 13/14] backports: Remove support for kernel smaller than 4.3 Hauke Mehrtens
2021-10-11 22:22 ` [PATCH 14/14] backports: Remove support for kernel smaller than 4.4 Hauke Mehrtens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211011222227.1189850-3-hauke@hauke-m.de \
    --to=hauke@hauke-m.de \
    --cc=backports@vger.kernel.org \
    --cc=johannes.berg@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).