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

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

    <bug>
          <bug_id>49709</bug_id>
          
          <creation_ts>2024-03-15 11:32:31 +0300</creation_ts>
          <short_desc>Не отключается обновление базы man</short_desc>
          <delta_ts>2025-03-20 17:16: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>man-db</component>
          <version>unstable</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=48430</see_also>
    
    <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=52882</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="Sergey V Turchin">zerg</reporter>
          <assigned_to name="Ivan A. Melnikov">iv</assigned_to>
          <cc>glebfm</cc>
    
    <cc>iv</cc>
    
    <cc>lav</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>placeholder</cc>
    
    <cc>sin</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>243023</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey V Turchin">zerg</who>
    <bug_when>2024-03-15 11:32:31 +0300</bug_when>
    <thetext>Есть несколько систем, на которых я совершенно не собираюсь читать man, а долгая генерация mandb каждый раз подбешивает при обновлении системы.

Хотелось бы иметь возможность отключить её более-менее штатным способом.
При этом отключать установку всей документации не хочется.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257913</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2025-01-23 12:23:25 +0300</bug_when>
    <thetext>Посмотрел, что на Fedora индексацию запускают асинхронно. Подходит ли тут такое решение?
Или если делать ручку, то через /etc/sysconfig/man-db ?

$ rpm -q --filetriggers man-db
transfiletriggerin scriptlet (using /bin/sh) -- /usr/share/man
# update cache
if [ -x /usr/bin/systemd-run -a -x /usr/bin/systemctl ]; then
    /usr/bin/systemd-run /usr/bin/systemctl start man-db-cache-update &gt;/dev/null 2&gt;&amp;1 || :
fi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257916</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2025-01-23 13:01:49 +0300</bug_when>
    <thetext>В пакете man-db-cron есть /etc/sysconfig/man-db,
в котором CRON=no отключает обновление по cron.

В Fedora man-db более правильно лежит в самом пакете man-db и имеет ручку для выключения обновления баз по триггеру. Предлагаю так же сделать:

$ cat /etc/sysconfig/man-db
# Set this to &quot;no&quot; to disable man-db update triggered by installation
# of any package containing manual pages
SERVICE=&quot;yes&quot;

# Set this to &quot;no&quot; to disable daily man-db update run by
# /etc/cron.daily/man-db.cron
CRON=&quot;yes&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260451</commentid>
    <comment_count>3</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2025-03-05 16:55:42 +0300</bug_when>
    <thetext>Обсуждение в апстриме:
https://gitlab.com/man-db/man-db/-/issues/4

Итоги обсуждения - сложная история, нужно разбираться.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260657</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2025-03-08 19:24:42 +0300</bug_when>
    <thetext>(Ответ для Evgeny Sinelnikov на комментарий #3)
&gt; Обсуждение в апстриме:
&gt; https://gitlab.com/man-db/man-db/-/issues/4
&gt; 
&gt; Итоги обсуждения - сложная история, нужно разбираться.

В апстриме обсуждалась скорее вот эта бага
https://bugzilla.altlinux.ru/48430

а здесь просто недостатки упаковки.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260665</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2025-03-09 01:10:09 +0300</bug_when>
    <thetext>(Ответ для Vitaly Lipatov на комментарий #2)
...
 
&gt; $ cat /etc/sysconfig/man-db
&gt; # Set this to &quot;no&quot; to disable man-db update triggered by installation
&gt; # of any package containing manual pages
&gt; SERVICE=&quot;yes&quot;
добавил этот параметр и его обработку
https://git.altlinux.org/tasks/377411/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261017</commentid>
    <comment_count>6</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2025-03-13 23:18:09 +0300</bug_when>
    <thetext>&gt; добавил этот параметр и его обработку
&gt; https://git.altlinux.org/tasks/377411/

Спасибо, мне оно тоже нужно.

Но я пока собрал свой tried and tested alt2. На следующей неделе хочу сделать подход к последней апстримной версии и Ваше изменение туда приложить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261018</commentid>
    <comment_count>7</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2025-03-14 00:19:07 +0300</bug_when>
    <thetext>(Ответ для Ivan A. Melnikov на комментарий #6)
&gt; &gt; добавил этот параметр и его обработку
&gt; &gt; https://git.altlinux.org/tasks/377411/
&gt; 
&gt; Спасибо, мне оно тоже нужно.
&gt; 
&gt; Но я пока собрал свой tried and tested alt2. На следующей неделе хочу
&gt; сделать подход к последней апстримной версии и Ваше изменение туда приложить.
Отлично, очень ждём!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261223</commentid>
    <comment_count>8</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2025-03-18 01:44:04 +0300</bug_when>
    <thetext>отправил обновлённое задание
https://git.altlinux.org/tasks/377411/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261523</commentid>
    <comment_count>9</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-03-20 17:16:16 +0300</bug_when>
    <thetext>man-db-2.13.0-alt1 -&gt; sisyphus:

 Wed Mar 19 2025 Ivan A. Melnikov &lt;iv@altlinux&gt; 2.13.0-alt1
 - New version (2.13.0).
 - Make it possible to switch the filetrigger off (ALT#49709), by lav@:
   + move sysconfig/man-db to the main package;
   + skip man-db update when SERVICE != yes.
 - Use OPTS from sysconfig/man-db in the filetrigger.
 - Build and package translated man pages.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>