[devel] I: freetype2-devel-2.1.9-alt1 is broken?

Valery V. Inozemtsev =?iso-8859-1?q?shrek_=CE=C1_freesource=2Einfo?=
Ср Окт 27 18:07:14 MSD 2004


В сообщении от 27 Октябрь 2004 17:59 Dmitry V. Levin написал(a):
> On Wed, Oct 27, 2004 at 03:02:52PM +0400, Dmitry V. Levin wrote:
> > Похоже, что новый freetype2-devel сломал сборку реально использующих его
> > пакетов; перестали собираться нижеперечисленные пакеты:
> > avifile-0.738-alt0.6
> > bootsplash-3.0.7-alt1
> > camlimages-2.11-alt9.1
> > clanlib-0.6.5-alt1.3
> > gd1-1.8.4-alt7
> > gnome-print-0.36-alt6
> > python-module-imaging-1.1.4-alt8
> > SDL_ttf-2.0.6-alt2.1
> > xpdf-3.00-alt2
> >
> > Вот, например, лог сборки пакета bootsplash:
>
> [...]
>
> > gcc -Os -Wall -I/usr/include/freetype2   -c -o ttf.o ttf.c
> > In file included from ttf.c:13:
> > /usr/include/freetype2/freetype/freetype.h:20:2: #error "`ft2build.h'
> > hasn't been included yet!"
> > /usr/include/freetype2/freetype/freetype.h:21:2: #error "Please always
> > use macros to include FreeType header files."
> > /usr/include/freetype2/freetype/freetype.h:22:2: #error "Example:"
> > /usr/include/freetype2/freetype/freetype.h:23:2: #error "  #include
> > <ft2build.h>" /usr/include/freetype2/freetype/freetype.h:24:2: #error " 
> > #include FT_FREETYPE_H" make: *** [ttf.o] Error 1
>
> RTFM (/usr/share/doc/freetype2-2.1.9/docs/CHANGES):
> [...]
> LATEST CHANGES BETWEEN 2.1.6 and 2.1.5
> [...]
>   III. MISCELLANEOUS
>
>     - There  is now  a guard  in the  public header  files  to protect
>       against inclusion of freetype.h from FreeType 1.
>
>     - Direct inclusion of freetype.h  and other public header files no
>       longer works.  You have to use the documented scheme
>
>         #include <ft2build.h>
>         #include FT_FREETYPE_H
>
>       to load freetype.h with  a symbolic name.  This protects against
>       renaming  of public  header  files (which  shouldn't happen  but
>       actually  has, avoiding two  public header  files with  the same
>       name).
>
>
> P.S. Кто так сильно хотел новый freetype2?

не я. можно сделать вот так

--- include/freetype/freetype.h.orig    2004-06-20 00:50:08 +0400
+++ include/freetype/freetype.h 2004-10-27 17:51:32 +0400
@@ -16,15 +16,6 @@
 /***************************************************************************/


-#ifndef FT_FREETYPE_H
-#error "`ft2build.h' hasn't been included yet!"
-#error "Please always use macros to include FreeType header files."
-#error "Example:"
-#error "  #include <ft2build.h>"
-#error "  #include FT_FREETYPE_H"
-#endif
-
-
 #ifndef __FREETYPE_H__
 #define __FREETYPE_H__

но тогда отвалятся те кто заточен под новый freetype

-- 
Valery V. Inozemtsev

Powered by ALT Linux Sisyphus (20041021)
ftp://ftp.altlinux.ru/pub/people/shrek/
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: signature
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20041027/65374a87/attachment-0001.bin>


Подробная информация о списке рассылки Devel