While preparing samba 4.8.0rc1 builds for fedora rawhide, we encounter these build failures: *** Error compiling '/home/gd/rpmbuild/BUILDROOT/samba-4.8.0-0.1.rc1.fc28.x86_64/usr/lib64/python3.6/site-packages/samba/emulate/traffic_packets.py'... File "/usr/lib64/python3.6/traffic_packets.py", line 87 print "\033[37;41;1m" "Warning: %s" "\033[00m" % (message) ^ SyntaxError: invalid syntax *** Error compiling '/home/gd/rpmbuild/BUILDROOT/samba-4.8.0-0.1.rc1.fc28.x86_64/usr/lib64/python3.6/site-packages/samba/forest_update.py'... File "/usr/lib64/python3.6/forest_update.py", line 303 print "UPDATE (LDIF) ------ OPERATION %d" % op ^ SyntaxError: invalid syntax *** Error compiling '/home/gd/rpmbuild/BUILDROOT/samba-4.8.0-0.1.rc1.fc28.x86_64/usr/lib64/python3.6/site-packages/samba/tests/blackbox/traffic_summary.py'... File "/usr/lib64/python3.6/traffic_summary.py", line 62 print command ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print command)? *** Error compiling '/home/gd/rpmbuild/BUILDROOT/samba-4.8.0-0.1.rc1.fc28.x86_64/usr/lib64/python3.6/site-packages/samba/tests/samba_tool/visualize.py'... File "/usr/lib64/python3.6/visualize.py", line 287 print dbfile ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print dbfile)?
Created attachment 13913 [details] patch from master for 4.8
Karolin, please add to 4.8
Pushed to autobuild-v4-8-test.
(In reply to Karolin Seeger from comment #3) Pushed to v4-8-test. Closing out bug report. Thanks!