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

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

    <bug>
          <bug_id>41571</bug_id>
          
          <creation_ts>2021-12-14 16:59:57 +0300</creation_ts>
          <short_desc>libexpat-devel: упакованы битые конфиги для cmake</short_desc>
          <delta_ts>2021-12-15 10:29:16 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>libexpat-devel</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://git.altlinux.org/beehive/logs/Sisyphus-x86_64/latest/error/libopencolorio2.0-2.0.2-alt2</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="Aleksei Nikiforov">darktemplaralt</reporter>
          <assigned_to name="Grigory Ustinov">grenka</assigned_to>
          <cc>grenka</cc>
    
    <cc>ldv</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>206058</commentid>
    <comment_count>0</comment_count>
    <who name="Aleksei Nikiforov">darktemplaralt</who>
    <bug_when>2021-12-14 16:59:57 +0300</bug_when>
    <thetext>В новой версии libexpat-devel упакованы конфиги для cmake, в которых указаны неправильные пути к библиотекам. Если точнее, из указанных там путей библиотеки явно перемещают в другую директорию:

https://git.altlinux.org/gears/e/expat.git?p=expat.git;a=blob;f=expat.spec;h=b4638d008f87d880baf39441d9615426af21d5dd;hb=3e57012cc4da61a22a64bb711b50882569df9409#l66

# Relocate shared library from /usr/lib to /lib.
mkdir -p %buildroot/%_lib
mv %buildroot%_libdir/libexpat.so.1* %buildroot/%_lib
rm %buildroot%_libdir/libexpat.so
ln -s ../../%_lib/libexpat.so.1 %buildroot%_libdir/libexpat.so

В связи с этим при использовании данных конфигов cmake сборка завершается с ошибкой. На примере libopencolorio2.0:

CMake Error at /usr/lib64/cmake/expat-2.4.1/expat.cmake:74 (message):
  The imported target &quot;expat::expat&quot; references the file

     &quot;/usr/lib64/libexpat.so.1.8.1&quot;

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     &quot;/usr/lib64/cmake/expat-2.4.1/expat.cmake&quot;

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib64/cmake/expat-2.4.1/expat-config.cmake:35 (include)
  share/cmake/modules/Findexpat.cmake:33 (find_package)
  share/cmake/modules/FindExtPackages.cmake:29 (find_package)
  CMakeLists.txt:241 (include)


Воспроизведение:
1. пересобрать libopencolorio2.0 в hasher для Сизифа.

Результат:
Указанная выше ошибка: cmake не может найти указанные в конфиге файлы библиотеки expat.

Ожидаемый результат:
Указанная выше ошибка отсутствует. Возможны другие ошибки, не связанные с expat.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>206064</commentid>
    <comment_count>1</comment_count>
    <who name="Vladimir D. Seleznev">vseleznv</who>
    <bug_when>2021-12-15 09:46:12 +0300</bug_when>
    <thetext>https://git.altlinux.org/tasks/archive/done/_285/291954/logs/events.4.1.log</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>206065</commentid>
    <comment_count>2</comment_count>
    <who name="Aleksei Nikiforov">darktemplaralt</who>
    <bug_when>2021-12-15 10:29:16 +0300</bug_when>
    <thetext>Спасибо!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>