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

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

    <bug>
          <bug_id>1946</bug_id>
          
          <creation_ts>2003-01-15 12:55:18 +0300</creation_ts>
          <short_desc>Yelp отказывается показывать что-либо из \&apos;Дополнительных документов\&apos; (руководства, info)</short_desc>
          <delta_ts>2026-08-30 09:21:25 +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>yelp</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="bloodmary">bloodmary</reporter>
          <assigned_to name="Yuri N. Sedunov">aris</assigned_to>
          <cc>aris</cc>
    
    <cc>ildar</cc>
    
    <cc>mike</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1774</commentid>
    <comment_count>0</comment_count>
    <who name="bloodmary">bloodmary</who>
    <bug_when>2003-01-15 12:55:18 +0300</bug_when>
    <thetext>Не загружаются info и man-страницы, несмотря на пристуствие в системе
---

---

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4861</commentid>
    <comment_count>1</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2003-01-15 13:44:42 +0300</bug_when>
    <thetext>fixed in yelp-2.1.5-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8226</commentid>
    <comment_count>2</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2003-01-15 13:44:42 +0300</bug_when>
    <thetext>fixed in yelp-2.1.5-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164834</commentid>
    <comment_count>3</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2017-07-25 07:35:11 +0300</bug_when>
    <thetext>Ошибка вернулась.
1. хотя man:man показывает, но его нет на корневой странице.
2. info вообще не видно.
Переоткроем?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>165105</commentid>
    <comment_count>4</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2017-08-07 10:02:24 +0300</bug_when>
    <thetext>(In reply to comment #3)
&gt; Ошибка вернулась.
&gt; 1. хотя man:man показывает, но его нет на корневой странице.
&gt; 2. info вообще не видно.
&gt; Переоткроем?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185021</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2019-10-20 16:46:46 +0300</bug_when>
    <thetext>Ещё актуально?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185034</commentid>
    <comment_count>6</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2019-10-21 07:16:26 +0300</bug_when>
    <thetext>актуально. Хотелось бы иметь &quot;читалку&quot; для info-файлов, а yelp подвёл.
info:ЧТО-НИБУДЬ перекидывает на man:ОНО_ЖЕ.
К примеру, info:info</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293505</commentid>
    <comment_count>7</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2026-08-30 09:21:25 +0300</bug_when>
    <thetext>Разобрался, почему info: не работает, а перекидывает на man: (симптом из комментария 6).

1) libyelp/yelp-uri.c, infosuffix[]: перечислены .info, .info.gz, .info.bz2, .info.lzma, .gz, .bz2, .lzma — нет .xz. В Сизифе info-страницы сжаты xz (/usr/share/info/*.info.xz), поэтому resolve_info_uri() не находит файл никогда и уходит в fallback &quot;не нашли info — переписываем URI в man:&quot; (yelp-uri.c, ветка else после цикла поиска).

2) libyelp/yelp-magic-decompressor.c, yelp_magic_decompressor_choose(): декодер выбирается по magic-байтам, известны только BZ (bz2), &apos;]&apos;&apos;\0&apos; (legacy lzma) и 1F 8B (gzip). Магия xz (FD &apos;7zXZ&apos;) не распознаётся, хотя сам lzma-декодер (yelp-lzma-decompressor.c) построен на lzma_auto_decoder и xz уже умеет.

Фикс — два хука: добавить &quot;.info.xz&quot;, &quot;.xz&quot; в infosuffix[] и проверку xz-магии (inbuf[0]==0xFD &amp;&amp; inbuf[1]==&apos;7&apos;) с выбором yelp_lzma_decompressor_new() в magic-decompressor. Пригодно и для отправки в апстрим — там та же проблема для любых дистрибутивов с xz-сжатием info.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>