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

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

    <bug>
          <bug_id>27545</bug_id>
          
          <creation_ts>2012-07-16 22:01:37 +0400</creation_ts>
          <short_desc>Отсутствует файл zipconf.h - невозможна сборка с библиотекой libzip</short_desc>
          <delta_ts>2012-07-19 14:40:11 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>libzip-devel</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denis Kirienko">dk</reporter>
          <assigned_to name="Sergey V Turchin">zerg</assigned_to>
          <cc>real.altlinux.org</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>132318</commentid>
    <comment_count>0</comment_count>
    <who name="Denis Kirienko">dk</who>
    <bug_when>2012-07-16 22:01:37 +0400</bug_when>
    <thetext>В файле /usr/include/libzip/zip.h в строке 51 написано:

#include &lt;zipconf.h&gt;

Между тем файл zipconf.h в пакете libzip-devel отсутствует. Из-за этого сборка с использованием библиотеки libzip невозможна. Например, попытка компиляции файла со строкой #include&lt;libzip/zip.h&gt; приводит к ошибке:

In file included from test.cpp:1:0:
/usr/include/libzip/zip.h:51:21: fatal error: zipconf.h: Нет такого файла или каталога
compilation terminated.

Проблема возникает начиная с версии 0.10 библиотеки.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>132321</commentid>
    <comment_count>1</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2012-07-17 06:23:02 +0400</bug_when>
    <thetext>$ rpm -ql libzip-devel |grep include
/usr/include/libzip
/usr/include/libzip/zip.h
/usr/lib64/libzip/include
/usr/lib64/libzip/include/zipconf.h

$ pkg-config libzip --cflags
-I/usr/include/libzip -I/usr/lib64/libzip/include</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>132327</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2012-07-17 14:23:17 +0400</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; /usr/lib64/libzip/include/zipconf.h
&gt; 
&gt; $ pkg-config libzip --cflags
&gt; -I/usr/include/libzip -I/usr/lib64/libzip/include
Ага</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>132342</commentid>
    <comment_count>3</comment_count>
    <who name="Denis Kirienko">dk</who>
    <bug_when>2012-07-19 11:04:28 +0400</bug_when>
    <thetext>Я что-то не понимаю. 
Программа требует zip.h для сборки, ./configure, запущенный rpm, его не находит.
В спеке прописано BuildPreReq: libzip-devel

Должен ли я как-то указать, где он должен его искать, или же rpm должен сам установить необходимое значение CFLAGS для сборки?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>132346</commentid>
    <comment_count>4</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2012-07-19 14:40:11 +0400</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; Должен ли я как-то указать, где он должен его искать, или же rpm должен сам
&gt; установить необходимое значение CFLAGS для сборки?
configure должен. Если он не может, то вы.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>