[Pkg-fonts-devel] Bug#649981: ttf-alee: please transition away from defoma
Package: ttf-alee
Version: 12
Severity: important
Tags: patch
User: pabs@debian.org
Usertags: defoma-removal
Your package ships a defoma hint file or depends on or uses defoma or
x-ttcidfont-conf. defoma is in the process of being removed from Debian:
http://wiki.debian.org/OldPkgRemovals#defoma
If you have any questions about this transition, please contact the
Debian Fonts Task Force on our mailing list. We are also interested in
new people if you want to help us maintain, check and discuss fonts.
pkg-fonts-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-fonts-devel
http://pkg-fonts.alioth.debian.org/
http://wiki.debian.org/Fonts
To help us complete the transition from defoma to fontconfig, please
remove any use of defoma or x-ttcidfont-conf from your package. Here are
some things that you might want to check in your package:
If installing your package causes defoma to modify the defoma
configuration file for fontconfig (/etc/fonts/conf.d/30-defoma.conf),
then you need to migrate those changes to a file in the fontconfig
directory /etc/fonts/conf.avail with a symlink in /etc/fonts/conf.d. In
some cases the config produced by defoma was not appropriate in the
first place and should be dropped.
Remove any mentions of defoma, defoma-doc, psfontmgr or x-ttcidfont-conf
from your debian/control file.
If you are running dh_installdefoma in your debian/rules file, simply
remove that call.
If you were shipping a defoma hint file and processing the hints file
using defoma in your maintainer scripts (postrm, postinst etc,
dh_installdefoma usually handles them) then on upgrade from a version
before the one that dropped you need to `defoma-font
purge-all /etc/defoma/hints/$PACKAGE.hints`, but only if the defoma-font
binary is available and executable.
If you are shipping a defoma hint file, then you will need to remove it
on upgrade. You can do so by adding this snippet to your postinst,
postrm and preinst maintainer scripts. You should replace $PACKAGE with
the name of the package and $VERSION with the version where you are
making the defoma hint conffile obsolete and removable:
if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
dpkg-maintscript-helper rm_conffile /etc/defoma/hints/$PACKAGE.hints $VERSION -- "$@"
fi
If you were shipping a defoma backend then on upgrade from a version
before the one that dropped you need to run `defoma-app purge $PACKAGE`,
but only if the defoma-app binary is available and executable. If
defoma-app is not available then you could remove the relevant directory
in /var/lib/defoma/.
A proposed patch is attached to this bug report.
diff -Nru ttf-alee-13.old/debian/changelog ttf-alee-13/debian/changelog
--- ttf-alee-13.old/debian/changelog 2011-11-18 07:47:31.109762605 +0100
+++ ttf-alee-13/debian/changelog 2011-11-18 07:48:45.134509866 +0100
@@ -1,3 +1,10 @@
+ttf-alee (13) UNRELEASED; urgency=low
+
+ * Drop defoma support
+ * Stop recommending obsolete fontconfig and x-ttcid-fontconf
+
+ -- Christian Perrier <bubulle@debian.org> Fri, 18 Nov 2011 07:47:39 +0100
+
ttf-alee (12) unstable; urgency=low
* Change to The Artistic license 1.0 or any later version.
diff -Nru ttf-alee-13.old/debian/control ttf-alee-13/debian/control
--- ttf-alee-13.old/debian/control 2011-11-18 07:47:31.113762644 +0100
+++ ttf-alee-13/debian/control 2011-11-18 07:48:24.114297664 +0100
@@ -2,13 +2,11 @@
Section: x11
Priority: optional
Maintainer: A Lee <alee@debian.org>
-Build-Depends: debhelper (>= 5.0.31), defoma (>= 0.7.0)
+Build-Depends: debhelper (>= 5.0.31)
Standards-Version: 3.8.0
Package: ttf-alee
Architecture: all
-Depends: defoma
-Recommends: fontconfig, x-ttcidfont-conf
Description: A Lee's free Hangul truetype fonts
This package contains free Hangul truetype fonts made by A Lee.
.
diff -Nru ttf-alee-13.old/debian/postinst ttf-alee-13/debian/postinst
--- ttf-alee-13.old/debian/postinst 2011-11-18 07:47:31.113762644 +0100
+++ ttf-alee-13/debian/postinst 2011-11-25 07:37:17.055142755 +0100
@@ -1,20 +1,7 @@
-#!/bin/sh
+#! /bin/sh
-#DEBHELPER#
+set -e
-if [ "$1" = "configure" ]; then
- if [ -x "/usr/bin/mkfontdir" -o -x "/usr/bin/X11/mkfontdir" ]; then
- if [ -d "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" ]; then
- mkfontdir /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
- fi
- fi
- if [ -x "/usr/bin/fc-cache" ]; then
- echo -n "Regenerating fonts cache... "
- if (fc-cache -f -v 1>/var/log/fontconfig.log 2>&1); then
- echo "done."
- else
- echo "failed; see /var/log/fontconfig.log for more information."
- exit 1
- fi
- fi
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
+ dpkg-maintscript-helper rm_conffile /etc/defoma/hints/ttf-alee.hints 13 -- "$@"
fi
diff -Nru ttf-alee-13.old/debian/postrm ttf-alee-13/debian/postrm
--- ttf-alee-13.old/debian/postrm 1970-01-01 01:00:00.000000000 +0100
+++ ttf-alee-13/debian/postrm 2011-11-25 07:36:37.634359893 +0100
@@ -0,0 +1,7 @@
+#! /bin/sh
+
+set -e
+
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
+ dpkg-maintscript-helper rm_conffile /etc/defoma/hints/ttf-alee.hints 13 -- "$@"
+fi
diff -Nru ttf-alee-13.old/debian/preinst ttf-alee-13/debian/preinst
--- ttf-alee-13.old/debian/preinst 1970-01-01 01:00:00.000000000 +0100
+++ ttf-alee-13/debian/preinst 2011-11-25 07:38:00.580007027 +0100
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+set -e
+
+if dpkg --compare-versions "$2" lt 13; then
+ if [ -x "which defoma-font 2>/dev/null" ]; then
+ defoma-font purge /etc/defoma/hints/ttf-alee.hints
+ fi
+fi
+
+
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
+ dpkg-maintscript-helper rm_conffile /etc/defoma/hints/ttf-mscorefonts-alee.hints 13 -- "$@"
+fi
Reply to: