[X2Go-Dev] Bug#731015: Header files in new location break third-party projects
Clemens Lang
neverpanic at gmail.com
Sun Dec 1 01:38:12 CET 2013
On Sun, Dec 01, 2013 at 01:03:55AM +0100, Mike Gabriel wrote:
> Old: /usr/include/freetype2/freetype/*.h (2.4.9 and before)
> New: /usr/include/freetype2/*.h
>
> Please work around this by placing im freetype symlink into /usr/include/freetype2 pointing to ../ (or restore the former installation path for 2.5.x-y).
Note that freetype isn't to blame here – including the freetype headers
in the way that was removed from freetype 2.5.1 has been deprecated for
a long time.
>From the freetype CHANGES file:
CHANGES BETWEEN 2.5 and 2.5.1
[...]
II. IMPORTANT CHANGES
[...]
- The header file layout has been changed. After installation,
all files are now located in `<prefix>/include/freetype2'.
Applications that use (a) `freetype-config' or FreeType's
`pkg-config' file to get the include directory for the compiler,
and (b) the documented way for header inclusion like
#include <ft2build.h>
#include FT_FREETYPE_H
...
don't need any change to the source code.
The projects that are broken now should rather fix their code to
correctly include the freetype headers using
#include <ft2build.h>
#include FT_FREETYPE_H
For reference, see the same bug in MacPorts: http://trac.macports.org/ticket/41593
--
Clemens Lang
MacPorts Developer
More information about the x2go-dev
mailing list