Bug#648873: cm-super: Please drop defoma support
Package: cm-super
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 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 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 run defoma-app purge
$PACKAGE, but only if the defoma-app binary is available and
executable.
A patch implementing this is attached to this bug report.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.0.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru cm-super-0.3.4.old/debian/changelog cm-super-0.3.4/debian/changelog
--- cm-super-0.3.4.old/debian/changelog 2011-11-15 18:30:30.104553591 +0100
+++ cm-super-0.3.4/debian/changelog 2011-11-15 18:45:14.249356878 +0100
@@ -1,3 +1,9 @@
+cm-super (0.3.4-4) UNRELEASED; urgency=low
+
+ * Drop defoma support
+
+ -- Christian Perrier <bubulle@debian.org> Tue, 15 Nov 2011 18:45:02 +0100
+
cm-super (0.3.4-3) unstable; urgency=low
* change section to fonts
diff -Nru cm-super-0.3.4.old/debian/cm-super-x11.defoma-hints cm-super-0.3.4/debian/cm-super-x11.defoma-hints
--- cm-super-0.3.4.old/debian/cm-super-x11.defoma-hints 2011-11-15 18:30:30.104553591 +0100
+++ cm-super-0.3.4/debian/cm-super-x11.defoma-hints 1970-01-01 01:00:00.000000000 +0100
@@ -1,452 +0,0 @@
-category type1
-begin /usr/share/fonts/X11/Type1/sfbbx10.pfb
- FontName = SFBBX10
- Charset = ISO8859-1
- Family = Computer_Modern_Bright
- GeneralFamily = Roman
- Weight = Bold
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfbbx10.afm
-end
-begin /usr/share/fonts/X11/Type1/sfbi1000.pfb
- FontName = SFBI1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Bold
- Width = Variable
- Shape = Normal Italic
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfbi1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfbl1000.pfb
- FontName = SFBL1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Bold
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfbl1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfbm1000.pfb
- FontName = SFBM1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Bold
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfbm1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfbmo10.pfb
- FontName = SFBMO10
- Charset = ISO8859-1
- Family = Computer_Modern_Bright
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Oblique
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfbmo10.afm
-end
-begin /usr/share/fonts/X11/Type1/sfbmr10.pfb
- FontName = SFBMR10
- Charset = ISO8859-1
- Family = Computer_Modern_Bright
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfbmr10.afm
-end
-begin /usr/share/fonts/X11/Type1/sfbso10.pfb
- FontName = SFBSO10
- Charset = ISO8859-1
- Family = Computer_Modern_Bright
- GeneralFamily = Roman
- Weight = Semibold
- Width = Variable
- Shape = Normal Oblique
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfbso10.afm
-end
-begin /usr/share/fonts/X11/Type1/sfbsr10.pfb
- FontName = SFBSR10
- Charset = ISO8859-1
- Family = Computer_Modern_Bright
- GeneralFamily = Roman
- Weight = Semibold
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfbsr10.afm
-end
-begin /usr/share/fonts/X11/Type1/sfbtl10.pfb
- FontName = SFBTL10
- Charset = ISO8859-1
- Family = Computer_Modern_Bright
- GeneralFamily = Roman
- Weight = Light
- Width = Fixed
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfbtl10.afm
-end
-begin /usr/share/fonts/X11/Type1/sfbto10.pfb
- FontName = SFBTO10
- Charset = ISO8859-1
- Family = Computer_Modern_Bright
- GeneralFamily = Roman
- Weight = Light
- Width = Fixed
- Shape = Normal Oblique
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfbto10.afm
-end
-begin /usr/share/fonts/X11/Type1/sfbx1000.pfb
- FontName = SFBX1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Bold
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfbx1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfcc1000.pfb
- FontName = SFCC1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfcc1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfci1000.pfb
- FontName = SFCI1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Italic
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfci1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfdh1000.pfb
- FontName = SFDH1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfdh1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sffb1000.pfb
- FontName = SFFB1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sffb1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfff1000.pfb
- FontName = SFFF1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfff1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sffi1000.pfb
- FontName = SFFI1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Italic
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sffi1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sffs1000.pfb
- FontName = SFFS1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sffs1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfit1000.pfb
- FontName = SFIT1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Fixed
- Shape = Normal Italic
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfit1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfoc1000.pfb
- FontName = SFOC1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Bold
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfoc1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfocc10.pfb
- FontName = SFOCC10
- Charset = ISO8859-1
- Family = Computer_Modern_Concrete
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfocc10.afm
-end
-begin /usr/share/fonts/X11/Type1/sform10.pfb
- FontName = SFORM10
- Charset = ISO8859-1
- Family = Computer_Modern_Concrete
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sform10.afm
-end
-begin /usr/share/fonts/X11/Type1/sfosl10.pfb
- FontName = SFOSL10
- Charset = ISO8859-1
- Family = Computer_Modern_Concrete
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfosl10.afm
-end
-begin /usr/share/fonts/X11/Type1/sfoti10.pfb
- FontName = SFOTI10
- Charset = ISO8859-1
- Family = Computer_Modern_Concrete
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Italic
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfoti10.afm
-end
-begin /usr/share/fonts/X11/Type1/sfrb1000.pfb
- FontName = SFRB1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Bold
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfrb1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfrm1000.pfb
- FontName = SFRM1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfrm1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfsc1000.pfb
- FontName = SFSC1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfsc1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfsi1000.pfb
- FontName = SFSI1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfsi1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfsl1000.pfb
- FontName = SFSL1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfsl1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfso1000.pfb
- FontName = SFSO1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Bold
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfso1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfss1000.pfb
- FontName = SFSS1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfss1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfssdc10.pfb
- FontName = SFSSDC10
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfssdc10.afm
-end
-begin /usr/share/fonts/X11/Type1/sfst1000.pfb
- FontName = SFST1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Fixed
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfst1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfsx1000.pfb
- FontName = SFSX1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Bold
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfsx1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sftc1000.pfb
- FontName = SFTC1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Fixed
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sftc1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfti1000.pfb
- FontName = SFTI1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Italic
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfti1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sftt1000.pfb
- FontName = SFTT1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Fixed
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sftt1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfui1000.pfb
- FontName = SFUI1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Italic
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfui1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfvi1000.pfb
- FontName = SFVI1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Italic
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfvi1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfvt1000.pfb
- FontName = SFVT1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Medium
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfvt1000.afm
-end
-begin /usr/share/fonts/X11/Type1/sfxc1000.pfb
- FontName = SFXC1000
- Charset = ISO8859-1
- Family = Computer_Modern
- GeneralFamily = Roman
- Weight = Bold
- Width = Variable
- Shape = Normal Upright
- Priority = 20
- AFM = /usr/share/fonts/X11/Type1/sfxc1000.afm
-end
diff -Nru cm-super-0.3.4.old/debian/cm-super-x11.postinst cm-super-0.3.4/debian/cm-super-x11.postinst
--- cm-super-0.3.4.old/debian/cm-super-x11.postinst 2011-11-15 18:30:30.104553591 +0100
+++ cm-super-0.3.4/debian/cm-super-x11.postinst 2011-11-15 18:39:01.085767068 +0100
@@ -19,6 +19,10 @@
;;
esac
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
+ dpkg-maintscript-helper rm_conffile /etc/defoma/hints/cm-super-x11.hints 0.3.4-3 -- "$@"
+fi
+
#DEBHELPER#
diff -Nru cm-super-0.3.4.old/debian/cm-super-x11.postrm cm-super-0.3.4/debian/cm-super-x11.postrm
--- cm-super-0.3.4.old/debian/cm-super-x11.postrm 1970-01-01 01:00:00.000000000 +0100
+++ cm-super-0.3.4/debian/cm-super-x11.postrm 2011-11-15 18:38:59.405723658 +0100
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
+ dpkg-maintscript-helper rm_conffile /etc/defoma/hints/cm-super-x11.hints 0.3.4-3 -- "$@"
+fi
+
+#DEBHELPER#
+
+exit 0
diff -Nru cm-super-0.3.4.old/debian/cm-super-x11.preinst cm-super-0.3.4/debian/cm-super-x11.preinst
--- cm-super-0.3.4.old/debian/cm-super-x11.preinst 2011-11-15 18:30:30.100553489 +0100
+++ cm-super-0.3.4/debian/cm-super-x11.preinst 2011-11-15 18:39:00.341747838 +0100
@@ -7,6 +7,10 @@
fi
fi
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
+ dpkg-maintscript-helper rm_conffile /etc/defoma/hints/cm-super-x11.hints 0.3.4-3 -- "$@"
+fi
+
#DEBHELPER#
exit 0
diff -Nru cm-super-0.3.4.old/debian/control cm-super-0.3.4/debian/control
--- cm-super-0.3.4.old/debian/control 2011-11-15 18:30:30.104553591 +0100
+++ cm-super-0.3.4/debian/control 2011-11-15 18:35:17.199977613 +0100
@@ -2,7 +2,7 @@
Section: fonts
Priority: optional
Build-Depends: debhelper (>= 5.0.35)
-Build-Depends-Indep: defoma (>= 0.7.0), tex-common (>= 1.18), pfb2t1c2pfb
+Build-Depends-Indep: tex-common (>= 1.18), pfb2t1c2pfb
Maintainer: Debian TeX maintainers <debian-tex-maint@lists.debian.org>
Uploaders: Norbert Preining <preining@debian.org>
Standards-Version: 3.8.1
@@ -48,7 +48,7 @@
Package: cm-super-x11
Architecture: all
-Depends: cm-super-minimal, defoma (>= 0.5.0), ${misc:Depends}
+Depends: cm-super-minimal, ${misc:Depends}
Description: Make the cm-super fonts available to X11
This package makes the cm-super fonts available to X11. This package
does not contain any fonts itself but allows to reuse the cm-super
diff -Nru cm-super-0.3.4.old/debian/rules cm-super-0.3.4/debian/rules
--- cm-super-0.3.4.old/debian/rules 2011-11-15 18:30:30.100553489 +0100
+++ cm-super-0.3.4/debian/rules 2011-11-15 18:36:08.873313827 +0100
@@ -157,7 +157,6 @@
dh_link -p $(x11package) usr/share/doc/$(minpackage) usr/share/doc/$(x11package)
dh_link -p $(minpackage) usr/share/doc/$(minpackage) usr/share/texmf/doc/fonts/cm-super
dh_installxfonts --package=$(x11package)
- dh_installdefoma --package=$(x11package)
dh_compress
dh_fixperms
dh_installdeb
Reply to: