Sophie

Sophie

distrib > Mageia > 9 > x86_64 > by-pkgid > 745ba08ff6f3c0bc9e792e8e03f77357 > files > 4

linuxdcpp-1.1.0-19.mga9.src.rpm

diff -Nru a/SConstruct b/SConstruct
--- a/SConstruct	2011-04-17 19:57:09.000000000 +0200
+++ b/SConstruct	2017-10-03 10:54:06.633018178 +0200
@@ -8,7 +8,7 @@
 try:
 	from bzrlib import branch
 except ImportError:
-	print "bzrlib not installed"
+	print("bzrlib not installed")
 
 EnsureSConsVersion(0, 98, 1)
 
@@ -49,7 +49,7 @@
 		or (string.atoi(ret[0]) > major)):
 			retval = 1
 	except ValueError:
-		print "No C++ compiler found!"
+		print("No C++ compiler found!")
 
 	context.Result(retval)
 	return retval
@@ -62,7 +62,7 @@
 		b = branch.Branch.open('.')
 		revision = str(b.revno())
 	except:
-		print "failed"
+		print("failed")
 
 	context.env['BZR_REVISION'] = revision
 	context.Result(revision)
@@ -124,7 +124,7 @@
 if os.environ.has_key('CXX'):
 	env['CXX'] = os.environ['CXX']
 else:
-	print 'CXX env variable is not set, attempting to use g++'
+	print("CXX env variable is not set, attempting to use g++")
 	env['CXX'] = 'g++'
 
 if os.environ.has_key('CC'):
@@ -186,32 +186,32 @@
 if not 'install' in COMMAND_LINE_TARGETS:
 
 	if not conf.CheckCXXVersion(env['CXX'], 4, 1):
-		print 'Compiler version check failed. g++ 4.1 or later is needed'
+		print("Compiler version check failed. g++ 4.1 or later is needed")
 		Exit(1)
 
 	if not conf.CheckPKGConfig():
-		print '\tpkg-config not found.'
+		print("\tpkg-config not found.")
 		Exit(1)
 
 	if not conf.CheckPKG('gtk+-2.0 >= 2.12'):
-		print '\tgtk+ >= 2.12 not found.'
-		print '\tNote: You might have the lib but not the headers'
+		print("\tgtk+ >= 2.12 not found.")
+		print("\tNote: You might have the lib but not the headers")
 		Exit(1)
 
 	if not conf.CheckPKG('gthread-2.0 >= 2.4'):
-		print '\tgthread >= 2.4 not found.'
-		print '\tNote: You might have the lib but not the headers'
+		print("\tgthread >= 2.4 not found.")
+		print("\tNote: You might have the lib but not the headers")
 		Exit(1)
 
 	if not conf.CheckPKG('libglade-2.0 >= 2.4'):
-		print '\tlibglade-2.0 >= 2.4 not found.'
-		print '\tNote: You might have the lib but not the headers'
+		print("\tlibglade-2.0 >= 2.4 not found.")
+		print("\tNote: You might have the lib but not the headers")
 		Exit(1)
 
 	
 	if not conf.CheckCXXHeader('boost/version.hpp', '<>'):
-		print '\tboost not found.'
-		print '\tNote: You might have the lib but not the headers'
+		print("\tboost not found.")
+		print("\tNote: You might have the lib but not the headers")
 		Exit(1)
 
 	if not conf.CheckHeader('time.h'):
@@ -224,34 +224,34 @@
 		Exit(1)
 
 	if not conf.CheckLibWithHeader('pthread', 'pthread.h', 'c'):
-		print '\tpthread library not found'
-		print '\tNote: You might have the lib but not the headers'
+		print("\tpthread library not found")
+		print("\tNote: You might have the lib but not the headers")
 		Exit(1)
 
 	if not conf.CheckLibWithHeader('z', 'zlib.h', 'c'):
-		print '\tz library (gzip/z compression) not found'
-		print '\tNote: You might have the lib but not the headers'
+		print("\tz library (gzip/z compression) not found")
+		print("\tNote: You might have the lib but not the headers")
 		Exit(1)
 
 	if not conf.CheckLibWithHeader('bz2', 'bzlib.h', 'c'):
-		print '\tbz2 library (bz2 compression) not found'
-		print '\tNote: You might have the lib but not the headers'
+		print("\tbz2 library (bz2 compression) not found")
+		print("\tNote: You might have the lib but not the headers")
 		Exit(1)
 
 	# This needs to be before ssl check on *BSD systems
 	if not conf.CheckLib('crypto'):
-		print '\tcrypto library not found'
-		print '\tNote: This library may be a part of libssl on your system'
+		print("\tcrypto library not found")
+		print("\tNote: This library may be a part of libssl on your system")
 		Exit(1)
 
 	if not conf.CheckLibWithHeader('ssl', 'openssl/ssl.h', 'c'):
-		print '\tOpenSSL library (libssl) not found'
-		print '\tNote: You might have the lib but not the headers'
+		print("\tOpenSSL library (libssl) not found")
+		print("\tNote: You might have the lib but not the headers")
 		Exit(1)
 
 	# Needed for XFlush(). Headers shouldn't be needed since we include gdk/gdkx.h
 	if not conf.CheckLib('X11'):
-		print '\tX11 library not found'
+		print("\tX11 library not found")
 		Exit(1)
 
 	if not conf.CheckHeader('iconv.h'):
@@ -264,8 +264,8 @@
 
 	# TODO: Implement a plugin system so libnotify doesn't have compile-time dependencies
 	if not conf.CheckPKG('libnotify >= 0.4.1'):
-		print '\tlibnotify >= 0.4.1 not found, disabling notifications.'
-		print '\tNote: You might have the lib but not the headers'
+		print("\tlibnotify >= 0.4.1 not found, disabling notifications.")
+		print("\tNote: You might have the lib but not the headers")
 	else:
 		conf.env.Append(CPPDEFINES = 'HAVE_LIBNOTIFY')
 		conf.env.ParseConfig('pkg-config --libs libnotify')