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

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

    <bug>
          <bug_id>18951</bug_id>
          
          <creation_ts>2009-02-23 19:29:08 +0300</creation_ts>
          <short_desc>problematic %post</short_desc>
          <delta_ts>2009-06-18 22:28:50 +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>ltsp-server</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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Michael Shigorin">mike</assigned_to>
          
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86355</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2009-02-23 19:29:08 +0300</bug_when>
    <thetext>Поймано при сборке профиля на 5.0/branch:
error: execution of %post scriptlet from ltsp-server-5.1.21-alt0.1 failed, exit status 1

Скрипт сейчас такой:
[ -f /usr/share/alsa/alsa.conf ] &amp;&amp; 
for n in null pulse xaudio; do 
    [ -f /etc/ltsp/asound-$n.conf ] &amp;&amp; 
    sed -e &apos;s|&quot;/etc/asound.conf&quot;|&quot;/etc/ltsp/asound-&apos;$n&apos;.conf&quot;|g&apos; \
        -e &apos;/asoundrc/d&apos; /usr/share/alsa/alsa.conf &gt; /usr/share/ltsp/alsa-$n.conf ||: 
done

Боюсь, в нём не хватает финального &quot;||:&quot; (или [ ! -f ... ] || ...).

PS до кучи:
warning: file /usr/share/ltsp/ltsp-common-functions is packaged into both ltsp-server and ltsp-client
warning: file /usr/share/ltsp/ltsp-vendor-functions is packaged into both ltsp-server and ltsp-client</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86356</commentid>
    <comment_count>1</comment_count>
    <who name="">led</who>
    <bug_when>2009-02-23 19:40:50 +0300</bug_when>
    <thetext>(В ответ на комментарий №0)
&gt; Скрипт сейчас такой:
&gt; [ -f /usr/share/alsa/alsa.conf ] &amp;&amp; 
&gt; for n in null pulse xaudio; do 
&gt;     [ -f /etc/ltsp/asound-$n.conf ] &amp;&amp; 
&gt;     sed -e &apos;s|&quot;/etc/asound.conf&quot;|&quot;/etc/ltsp/asound-&apos;$n&apos;.conf&quot;|g&apos; \
&gt;         -e &apos;/asoundrc/d&apos; /usr/share/alsa/alsa.conf &gt;
&gt; /usr/share/ltsp/alsa-$n.conf ||: 
&gt; done
&gt; 
&gt; Боюсь, в нём не хватает финального &quot;||:&quot; (или [ ! -f ... ] || ...).

Лучше:
if [ -f /usr/share/alsa/alsa.conf ]; then
....
fi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86357</commentid>
    <comment_count>2</comment_count>
    <who name="">led</who>
    <bug_when>2009-02-23 19:43:07 +0300</bug_when>
    <thetext>(В ответ на комментарий №0)
&gt; PS до кучи:
&gt; warning: file /usr/share/ltsp/ltsp-common-functions is packaged into both
&gt; ltsp-server and ltsp-client
&gt; warning: file /usr/share/ltsp/ltsp-vendor-functions is packaged into both
&gt; ltsp-server and ltsp-client

Не надо &quot;до кучи&quot; - эти файлы нужны в обоих субпакетах (в спеке это прокоментированно).
Ну, или возвращаемся к теме о том, как изготовить полноценный common-субпакет, ничего не сломав.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86364</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2009-02-23 22:24:08 +0300</bug_when>
    <thetext>А, ну как тебе видней.  Мне бы чтоб ltsp-server{,-basic} и ltsp-client{,-full} точно устанавливались в сизифе/M50 :-)  Вчера-сегодня вот ищу грабли с этим...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93280</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2009-06-18 22:28:38 +0400</bug_when>
    <thetext>По факту исправлено (глядя в 5.1.21-alt0.4).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>