Your message dated Sun, 26 Jul 2020 16:44:23 +0200
with message-id <f8246bca1c5c86f51143e70312c1a9b51e9a386d.ca...@debian.org>
and subject line Re: The build isn't compatible with python3
has caused the Debian Bug report #948970,
regarding The build isn't compatible with python3
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
948970: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948970
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: fonts-freefont
Version: 20120503-9
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu focal ubuntu-patch

The fonts-freetype build scripts use a python syntax which isn't compatible with python3, the attached patch does the minimal work to have the build working with newer python versions (as in current Ubuntu focal)

Cheers,


diff -Nru fonts-freefont-20120503/debian/changelog fonts-freefont-20120503/debian/changelog
--- fonts-freefont-20120503/debian/changelog	2019-01-21 14:47:57.000000000 +0100
+++ fonts-freefont-20120503/debian/changelog	2020-01-15 12:50:26.000000000 +0100
@@ -1,3 +1,11 @@
+fonts-freefont (20120503-10) unstable; urgency=medium
+
+  * debian/patches/build_python3_syntax.patch:
+    - updated the build scripts syntax to be compatible with python3,
+      fixed the build on Ubuntu focal
+
+ -- Sebastien Bacher <seb...@ubuntu.com>  Wed, 15 Jan 2020 12:50:26 +0100
+
 fonts-freefont (20120503-9) unstable; urgency=medium
 
   * Fix the appearance of the Slovak glyphs.
diff -Nru fonts-freefont-20120503/debian/patches/build_python3_syntax.patch fonts-freefont-20120503/debian/patches/build_python3_syntax.patch
--- fonts-freefont-20120503/debian/patches/build_python3_syntax.patch	1970-01-01 01:00:00.000000000 +0100
+++ fonts-freefont-20120503/debian/patches/build_python3_syntax.patch	2020-01-15 12:50:26.000000000 +0100
@@ -0,0 +1,76 @@
+diff --git a/tools/generate/MacTT b/tools/generate/MacTT
+index 30d19e1..f93472f 100755
+--- a/tools/generate/MacTT
++++ b/tools/generate/MacTT
+@@ -43,7 +43,7 @@ if argc > 1:
+ 		f = fontforge.open( argv[i] )
+ 		ttfile = f.fontname + ".mac.ttf"
+ 		vstr = trim_version_str( f )
+-		print "Generating Mac TrueType file ", ttfile, ' ', vstr
++		print("Generating Mac TrueType file ", ttfile, ' ', vstr)
+ 		f.selection.all()
+ 		f.autoHint()
+ 		f.autoInstr()
+@@ -51,4 +51,4 @@ if argc > 1:
+ 		#f.generate( ttfile, flags=('opentype','old-kern') )
+ 		f.close()
+ else:
+-	print "Usage: " + scriptname + " font.sfd [font.sfd ...]"
++	print("Usage: " + scriptname + " font.sfd [font.sfd ...]")
+diff --git a/tools/generate/OpenType b/tools/generate/OpenType
+index 4307231..0ab7987 100755
+--- a/tools/generate/OpenType
++++ b/tools/generate/OpenType
+@@ -42,7 +42,7 @@ if argc > 1:
+ 		f = fontforge.open( argv[i] )
+ 		otfile = f.fontname + ".otf"
+ 		vstr = trim_version_str( f )
+-		print "Generating OpenType file ", otfile, ' ', vstr
++		print("Generating OpenType file ", otfile, ' ', vstr)
+ 		# Wanted to set to 'UniocdeBmp' if there were no high unicodes
+ 		# but all attemtps to determine that from Python failed.
+ 		f.encoding = 'UnicodeFull'
+@@ -51,4 +51,4 @@ if argc > 1:
+ 		f.generate( otfile, flags=('opentype','old-kern','round') )
+ 		f.close()
+ else:
+-	print "Usage: " + scriptname + " font.sfd [font.sfd ...]"
++	print("Usage: " + scriptname + " font.sfd [font.sfd ...]")
+diff --git a/tools/generate/TrueType b/tools/generate/TrueType
+index 1f6cc2f..974c84f 100755
+--- a/tools/generate/TrueType
++++ b/tools/generate/TrueType
+@@ -42,7 +42,7 @@ if argc > 1:
+ 		f = fontforge.open( sys.argv[i] )
+ 		ttfile = f.fontname + ".ttf"
+ 		vstr = trim_version_str( f )
+-		print "Generating TrueType file ", ttfile, ' ', vstr
++		print("Generating TrueType file ", ttfile, ' ', vstr)
+ 		# Wanted to set to 'UniocdeBmp' if there were no high unicodes
+ 		# but all attemtps to determine that from Python failed.
+ 		f.encoding = 'UnicodeFull'
+@@ -54,4 +54,4 @@ if argc > 1:
+ 		f.generate( ttfile, flags=('opentype','old-kern','no-hints') )
+ 		f.close()
+ else:
+-	print "Usage: " + scriptname + " font.sfd [font.sfd ...]"
++	print("Usage: " + scriptname + " font.sfd [font.sfd ...]")
+diff --git a/tools/generate/WOFF b/tools/generate/WOFF
+index 7a3a790..45bff0b 100755
+--- a/tools/generate/WOFF
++++ b/tools/generate/WOFF
+@@ -153,7 +153,7 @@ if argc > 1:
+ 		f = fontforge.open( sys.argv[i] )
+ 		woff_file = f.fontname + ".woff"
+ 		vstr = trim_version_str( f )
+-		print "Generating WOFF file ", woff_file, ' ', vstr
++		print("Generating WOFF file ", woff_file, ' ', vstr)
+ 		# Wanted to set to 'UniocdeBmp' if there were no high unicodes
+ 		# but all attemtps to determine that from Python failed.
+ 		f.encoding = 'UnicodeFull'
+@@ -171,4 +171,4 @@ if argc > 1:
+ 		f.generate( woff_file, flags=('opentype','no-hints') )
+ 		f.close()
+ else:
+-	print "Usage: " + scriptname + " font.sfd [font.sfd ...]"
++	print("Usage: " + scriptname + " font.sfd [font.sfd ...]")
diff -Nru fonts-freefont-20120503/debian/patches/series fonts-freefont-20120503/debian/patches/series
--- fonts-freefont-20120503/debian/patches/series	2019-01-21 14:46:58.000000000 +0100
+++ fonts-freefont-20120503/debian/patches/series	2020-01-15 12:50:26.000000000 +0100
@@ -3,3 +3,4 @@
 drop_bad_braille.diff
 interchange_glyphs.patch
 fix-the-appearance-of-the-Slovak-glyphs.patch
+build_python3_syntax.patch

--- End Message ---
--- Begin Message ---
Version: 20120503-10

This should be fixed since this upload:

> +fonts-freefont (20120503-10) unstable; urgency=medium
> +
> +  * debian/patches/build_python3_syntax.patch:
> +    - updated the build scripts syntax to be compatible with python3,
> +      fixed the build on Ubuntu focal
> +
> + -- Sebastien Bacher <seb...@ubuntu.com>  Wed, 15 Jan 2020 12:50:26 +0100

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply via email to