Hi everyone,

I intend to do a mass bug filing against all packages that use freetype-config 
and/or freetype.m4, 
as these APIs will be removed from libfreetype6-dev in the next maintainer 
release. This is a 
Debian-specific change.

Freetype-config has been considered deprecated for several years [1]. Although 
it is suitable 
for compiling for the native architecture (i.e. host = build), it cannot handle 
cross-compiling.
See, for example [1], [2] and [3].

Freetype-config also acts as a wrapper for pkg-config, if that package is 
installed. However, 
as explained in [2] and [3], this does not help with cross-compiling, because 
"pkg-config 
must be qualified with the GNU triplet of the package architecture" in order to 
output 
the correct library paths.

I asked for freetype-config to be removed in [4] to allow libfreetype6-dev to 
become 
Multi-Arch: same. Five months later, I compromised and patched freetype-config 
to 
remove the hard-coded libdir paths causing the multi-arch file conflict.

A separate change (build-depending on pkg-config) fixed [5], but caused 
additional 
bugs when libfreetype6-dev is installed for foreign architectures only (see [2] 
and [3]).
In these bugs, freetype-config was calling pkg-config for the native 
architecture.

Following discussions in [3] and further investigation, the decision was made 
to 
remove freetype-config and freetype.m4 to better support multi-arch usage.

With this in mind, I removed freetype-config and built all reverse 
build-dependencies. I have also searched codesearch.debian.net for use of 
AC_CHECK_FT2 in configure.ac and configure.in. (Thanks to Simon McVittie 
for the suggestion.)

A list of affected source packages is attached. 36 packages FTBFS without 
freetype-config. Another 25 compile, but warn that freetype was not detected.

26 of the 61 packages already use pkg-config to detect other libraries, 
so updating those packages to detect freetype2 using pkg-config is 
straightforward. 

The proposed wording for the bug reports reads:
--------
Dear Maintainer,

The next release of libfreetype6-dev will *not* ship freetype-config or 
or freetype2.m4. This is a Debian-specific change.

Please use pkg-config to detect the freetype2 headers and libraries.

If this bug is not resolved prior to the release of the next version of 
libfreetype6-dev, your package may FTBFS.

Thank you
--------

I realise removing freetype-config may not be popular. However, 
the long-term benefits will outweigh any short-term inconvenience.

--
Hugh McMaster

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=642354
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871470
[3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886461
[4] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870618
[5] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=885324
List of packages affected by the removal of freetype-config:

D Haley <[email protected]>
   3depict (U)

Debian Science Maintainers <[email protected]>
   3depict

Barry deFreese <[email protected]>
   adonthell (U)

Debian Games Team <[email protected]>
   adonthell

Robert Luberda <[email protected]>
   afterstep

Barry deFreese <[email protected]>
   asc (U)

Bartosz Fenski <[email protected]>
   asc (U)

Debian Games Team <[email protected]>
   asc

Markus Koschany <[email protected]>
   asc (U)

Sam Hocevar <[email protected]>
   asc (U)

Barry deFreese <[email protected]>
   brutalchess (U)

Debian Games Team <[email protected]>
   brutalchess

Vincent Legout <[email protected]>
   brutalchess (U)

Debian OCaml Maintainers <[email protected]>
   camlimages

Mehdi Dogguy <[email protected]>
   camlimages (U)

Ralf Treinen <[email protected]>
   camlimages (U)

Debian Games Team <[email protected]>
   cube2font

Martin Erik Werner <[email protected]>
   cube2font (U)

Debian QA Group <[email protected]>
   dia

Marc Leeman <[email protected]>
   dvdauthor

OHURA Makoto <[email protected]>
   dvi2ps

Varun Hiremath <[email protected]>
   dvipng

Barry deFreese <[email protected]>
   fenix-plugins (U)

Debian Games Team <[email protected]>
   fenix-plugins

Miriam Ruiz <[email protected]>
   fenix-plugins (U)

Peter Pentchev <[email protected]>
   fenix-plugins (U)

Michele Martone <[email protected]>
   fim

Rafael Laboissiere <[email protected]>
   fim (U)

Aaron M. Ucko <[email protected]>
   fltk1.1

Debian Games Team <[email protected]>
   foobillardplus

Markus Koschany <[email protected]>
   foobillardplus (U)

Sam Hocevar <[email protected]>
   ftgl

Jaimos Skriletz <[email protected]>
   fvwm

Giacomo Catenazzi <[email protected]>
   g15composer

Ari Pollak <[email protected]>
   gimp

Jordi Mallach <[email protected]>
   gimp (U)

Debian GNUstep maintainers <[email protected]>
   gnustep-back

Eric Heintzmann <[email protected]>
   gnustep-back (U)

Gürkan Myczko <[email protected]>
   gnustep-back (U)

Yavor Doganov <[email protected]>
   gnustep-back (U)

Laszlo Boszormenyi (GCS) <[email protected]>
   graphicsmagick

Colin Watson <[email protected]>
   grub2 (U)

Felix Zielcke <[email protected]>
   grub2 (U)

GRUB Maintainers <[email protected]>
   grub2

Ian Campbell <[email protected]>
   grub2 (U)

Jordi Mallach <[email protected]>
   grub2 (U)

Debian Multimedia Maintainers 
<[email protected]>
   inkscape

Matteo F. Vescovi <[email protected]>
   inkscape (U)

Mattia Rizzolo <[email protected]>
   inkscape (U)

Dominique Dumont <[email protected]>
   lcdproc

Giacomo Catenazzi <[email protected]>
   libg15render

Harshula Jayasuriya <[email protected]>
   libotf

Debian SDL packages maintainers <[email protected]>
   libsdl-sge

Manuel A. Fernandez Montecelo <[email protected]>
   libsdl-sge (U)

Debian SDL packages maintainers <[email protected]>
   libsdl2-ttf

Manuel A. Fernandez Montecelo <[email protected]>
   libsdl2-ttf (U)

Debian QA Group <[email protected]>
   libwmf

Debian freesmartphone.org Team <[email protected]>
   literki

Timo Jyrinki <[email protected]>
   literki (U)

Harshula Jayasuriya <[email protected]>
   m17n-lib

Bas Couwenberg <[email protected]>
   mapnik (U)

David Paleino <[email protected]>
   mapnik (U)

Debian GIS Project <[email protected]>
   mapnik

Francesco Paolo Lovergine <[email protected]>
   mapnik (U)

Jérémy Lal <[email protected]>
   mapnik (U)

Debian GNUstep maintainers <[email protected]>
   mknfonts.tool

Yavor Doganov <[email protected]>
   mknfonts.tool (U)

Graham Inggs <[email protected]>
   motif

Paul Gevers <[email protected]>
   motif (U)

A Mennucc1 <[email protected]>
   mplayer (U)

Debian Multimedia Maintainers 
<[email protected]>
   mplayer

Miguel A. Colón Vélez <[email protected]>
   mplayer (U)

Reinhard Tartler <[email protected]>
   mplayer (U)

Aaron M. Ucko <[email protected]>
   ncbi-blast+ (U)

Andreas Tille <[email protected]>
   ncbi-blast+ (U)

Debian Med Packaging Team <[email protected]>
   ncbi-blast+

Olivier Sallou <[email protected]>
   ncbi-blast+ (U)

Bas Wijnen <[email protected]>
   openmsx

Alberto Luaces Fernández <[email protected]>
   openscenegraph (U)

Loic Dachary (OuoU) <[email protected]>
   openscenegraph

Manuel A. Fernandez Montecelo <[email protected]>
   openscenegraph (U)

Ola Lundqvist <[email protected]>
   openscenegraph (U)

Miriam Ruiz <[email protected]>
   otf2bdf

Emfox Zhou <[email protected]>
   pcmanx-gtk2

Debian PHP Maintainers <[email protected]>
   php7.0

Lior Kaplan <[email protected]>
   php7.0 (U)

Ondřej Surý <[email protected]>
   php7.0 (U)

Debian PHP Maintainers <[email protected]>
   php7.1

Lior Kaplan <[email protected]>
   php7.1 (U)

Ondřej Surý <[email protected]>
   php7.1 (U)

A Mennucc1 <[email protected]>
   pygame (U)

Debian Python Modules Team <[email protected]>
   pygame

Dominik George <[email protected]>
   pygame (U)

Ed Boraas <[email protected]>
   pygame (U)

Vincent Cheng <[email protected]>
   pygame (U)

Dirk Eddelbuettel <[email protected]>
   rgl

Ying-Chun Liu (PaulLiu) <[email protected]>
   rlvm

Debian Science Team <[email protected]>
   sagemath

Jerome Benoit <[email protected]>
   sagemath (U)

Julien Puydt <[email protected]>
   sagemath (U)

Tobias Hansen <[email protected]>
   sagemath (U)

Ximin Luo <[email protected]>
   sagemath (U)

Bruno "Fuddl" Kleinert <[email protected]>
   scorched3d (U)

Debian Games Team <[email protected]>
   scorched3d

Phil Morrell <[email protected]>
   scorched3d (U)

Reinhard Tartler <[email protected]>
   scorched3d (U)

Stephen M. Webb <[email protected]>
   scorched3d (U)

David Weinehall <[email protected]>
   scummvm (U)

Debian Games Team <[email protected]>
   scummvm

Dmitry Smirnov <[email protected]>
   scummvm (U)

Moritz Muehlenhoff <[email protected]>
   scummvm (U)

Debian Games Team <[email protected]>
   scummvm-tools

Stephen Kitt <[email protected]>
   scummvm-tools (U)

Debian SDL packages maintainers <[email protected]>
   sdl-ttf2.0

Manuel A. Fernandez Montecelo <[email protected]>
   sdl-ttf2.0 (U)

Debian Games Team <[email protected]>
   teeworlds

Felix Geyer <[email protected]>
   teeworlds (U)

Jack Coulter <[email protected]>
   teeworlds (U)

Debian TeX Maintainers <[email protected]>
   texlive-bin

Norbert Preining <[email protected]>
   texlive-bin (U)

Olly Betts <[email protected]>
   therion (U)

Wookey <[email protected]>
   therion

Debian Fonts Task Force <[email protected]>
   ttfautohint (U)

Gürkan Myczko <[email protected]>
   ttfautohint

Debian Games Team <[email protected]>
   tuxpuck

Markus Koschany <[email protected]>
   tuxpuck (U)

Debian QA Group <[email protected]>
   tvtime

Youhei SASAKI <[email protected]>
   xdvik-ja

Joachim Wiedorn <[email protected]>
   xfe

Daniel Leidert (dale) <[email protected]>
   xmlroff (U)

Debian XML/SGML Group <[email protected]>
   xmlroff

W. Martin Borgert <[email protected]>
   xmlroff (U)

Steve McIntyre <[email protected]>
   xplanet

Ying-Chun Liu (PaulLiu) <[email protected]>
   xsystem35

Reply via email to