File: fix-scons-use-python3-print.patch

package info (click to toggle)
zfs-fuse 0.7.0-25
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,800 kB
  • sloc: ansic: 154,045; sh: 9,707; asm: 1,690; perl: 367; xml: 300; python: 269; makefile: 83
file content (38 lines) | stat: -rw-r--r-- 1,241 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Use python3 print()
Author: Phil Wyett <philip.wyett@kathenas.org>
Last-Update: 2019-12-29
Bug-Debian: https://bugs.debian.org/947588

--- zfs-fuse-0.7.0.orig/src/SConstruct
+++ zfs-fuse-0.7.0/src/SConstruct
@@ -56,8 +56,8 @@ else:
 
 if not (('-DDEBUG' in env['CCFLAGS']) or 
 		('-DNDEBUG' in env['CCFLAGS'])):
-	print
-	print "Misconfigured debug level: Neither DEBUG or NDEBUG appears to have been defined: %s" % env['CCFLAGS']
+	print ()
+	print ("Misconfigured debug level: Neither DEBUG or NDEBUG appears to have been defined: %s") % env['CCFLAGS']
 	sys.exit(1)
 
 env['CPPPATH'] = []
@@ -81,8 +81,8 @@ def getarch(arch):
 myarch = getarch(arch)
 
 if not myarch:
-	print
-	print 'Sorry, only the x86, amd64 and sparc64 hardware architectures are supported'
+	print ()
+	print ('Sorry, only the x86, amd64 and sparc64 hardware architectures are supported')
 	sys.exit(1)
 
 if myarch == 'sparc64':
@@ -129,7 +129,7 @@ env.Install(man_dir, '../doc/zstreamdump
 env.Install(man_dir, '../doc/zfs-fuse.8')
 
 if "tags" in sys.argv:
-    print "updating tags..."
+    print ("updating tags...")
     os.system("ctags --extra=+f `find -name '*.c'` `find -name '*.h'`")
 
 env.Alias('install', [install_dir, man_dir, cfg_dir])