<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>55642</bug_id>
          
          <creation_ts>2025-08-18 18:16:21 +0300</creation_ts>
          <short_desc>libwmf-devel: Не хватает зависимостей на zlib-devel libfreetype-devel</short_desc>
          <delta_ts>2025-09-03 13:08:24 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p11</product>
          <component>libwmf</component>
          <version>unspecified</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=55641</see_also>
    
    <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=9448</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>glinkinvd</cc>
    
    <cc>rider</cc>
          
          <qa_contact name="qa-p11@altlinux.org">qa-p11</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>271042</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-08-18 18:16:21 +0300</bug_when>
    <thetext>Шаги
====

1. # apt-get install -y gcc libwmf libwmf-devel

2. $ cat &gt; dependencies.c &lt;&lt; &apos;EOF&apos;
#include &lt;libwmf/api.h&gt;
#include &lt;libwmf/gd.h&gt;

int main(int argc, char* argv[]) {
    return 0;
}
EOF

3. $ gcc dependencies.c -o dependencies -lwmf -lwmflite -I/usr/include/freetype2

(`-I/usr/include/freetype2` - workaround для ошибки https://bugzilla.altlinux.org/55641)


Фактический результат
=====================

&gt; In file included from dependencies.c:3:
&gt; /usr/include/libwmf/api.h:23:10: fatal error: zlib.h: Нет такого файла или каталога
&gt;    23 | #include &lt;zlib.h&gt;
&gt;       |          ^~~~~~~~
&gt; compilation terminated.

# apt-get install -y zlib-devel

&gt; In file included from /usr/include/libwmf/api.h:25,
&gt;                  from dependencies.c:1:
&gt; /usr/include/libwmf/types.h:26:10: fatal error: ft2build.h: Нет такого файла или каталога
&gt;    26 | #include &lt;ft2build.h&gt;
&gt;       |          ^~~~~~~~~~~~
&gt; compilation terminated.

# apt-get install -y libfreetype-devel

&gt; &lt;успешно&gt;


Ожидаемый результат
===================

Успешная компиляция без установки дополнительных зависимостей.


Воспроизводимость
=================

Воспроизводится на виртуальной машине:

[p11] ALT Server 11.0 x86_64
libwmf-0.2.8.4-alt13.x86_64


Не воспроизводится на виртуальной машине:

[sisyphus] ALT Server 11.0 x86_64
libwmf-0.2.13-alt1.x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271527</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2025-08-28 12:10:37 +0300</bug_when>
    <thetext> rpm -qR libwmf-devel
/bin/sh
/usr/lib64/pkgconfig
coreutils
libX11-devel
libfreetype-devel
libjpeg-devel
libpng-devel
libxml2-devel
pkg-config
xorg-proto-devel
zlib-devel
libwmf = 0.2.13-alt1:sisyphus+380613.100.1.1
rpmlib(PayloadIsLzma)

$ pkg-config --cflags libwmf
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271536</commentid>
    <comment_count>2</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-08-28 12:38:43 +0300</bug_when>
    <thetext>&gt; libwmf = 0.2.13-alt1:sisyphus+380613.100.1.1

Ошибка на p11, где версия, согласно описанию ошибки, libwmf-0.2.8.4-alt13.x86_64. Там зависимостей ещё не хватает.

В sisyphus действительно не воспроизводится, как указано в описании.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271548</commentid>
    <comment_count>3</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2025-08-28 14:37:13 +0300</bug_when>
    <thetext>https://packages.altlinux.org/tasks/393440</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>271916</commentid>
    <comment_count>4</comment_count>
    <who name="Vladislav Glinkin">glinkinvd</who>
    <bug_when>2025-09-03 13:08:24 +0300</bug_when>
    <thetext>(Ответ для Anton Farygin на комментарий #3)
&gt; https://packages.altlinux.org/tasks/393440

Исправлено.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>