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

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

    <bug>
          <bug_id>1706</bug_id>
          
          <creation_ts>2002-12-12 15:40:57 +0300</creation_ts>
          <short_desc>service dictd condreload would be more appropriate than condrestart</short_desc>
          <delta_ts>2006-09-27 16:42:46 +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>dict-jargon</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="imz">vanyaz</reporter>
          <assigned_to name="Alexey Dyachenko">alexd</assigned_to>
          <cc>mike</cc>
    
    <cc>viy</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1552</commentid>
    <comment_count>0</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2002-12-12 15:40:57 +0300</bug_when>
    <thetext>When service dictd condreload is available (see #1704), i think, it should be used instead of condrestart command in the install-time scripts of the package.
---
dict-jargon-4.3.1-alt1
---

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4584</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Dyachenko">alexd</who>
    <bug_when>2003-02-04 19:54:46 +0300</bug_when>
    <thetext>fixed in dict-jargon-4.3.1-alt2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7949</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Dyachenko">alexd</who>
    <bug_when>2003-02-04 19:54:46 +0300</bug_when>
    <thetext>fixed in dict-jargon-4.3.1-alt2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4585</commentid>
    <comment_count>3</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2003-02-12 23:22:47 +0300</bug_when>
    <thetext>For smoother update, we need to require that the version of dictd with condreload support is installed when %post and %postun are executed. Thus:

PreReq: dictd &amp;gt;= 1.9.1-alt1 (according to #0001704)

or:

Requires(post,postun): dictd &amp;gt;= 1.9.1-alt1

(the last variant is not tested to work well for APT).

This applies to dict-eng-deu-0.2-alt2, 
dict-deu-eng-0.2-alt2, dict-jargon-4.3.1-alt2, dict-engcom-0.4-alt3, dict-web1913-1.4_0.47pd-ipl5, dict-mueller7-utf8-1.2-alt3.

Here is an example of a broken update because of the wrong order:

# rpm -qa \&apos;dict*\&apos;
dict-tools-1.8.0-alt1
dict-jargon-4.3.1-alt1
dictd-1.8.0-alt1
dict-engcom-0.4-alt2
dict-deu-eng-0.2-alt1
dict-1.8.0-alt1
dict-eng-deu-0.2-alt1
dict-web1913-1.4_0.47pd-ipl4
dict-mueller7-utf8-1.2-alt2
# apt-get install dict-eng-deu
Reading Package Lists... Done
Building Dependency Tree... Done
Starting
Starting 2
Done
The following packages will be upgraded
  dict-eng-deu 
1 packages upgraded, 0 newly installed, 0 removed and 323 not upgraded.
Need to get 0B/2198kB of archives.
After unpacking 0B of additional disk space will be used.
Executing RPM (/bin/rpm -Uvh --fancypercent --oldpackage)...
Preparing...                 ########################################### [100%]
1: dict-eng-deu              ########################################### [100%]
Usage: dictd {start|stop|status|restart|reload|condstart|condstop|condrestart}
error: execution of %post scriptlet from dict-eng-deu-0.2-alt2 failed, exit status 1
E: Sub-process /bin/rpm returned an error code (1)
# apt-get install dictd       
Reading Package Lists... Error!
E: There are two or more versions of the package \&apos;dict-eng-deu\&apos; installed in your system, which is a situation APT can\&apos;t handle cleanly at the moment.
Please do one of the following:
1) Keep at most one version of the package in the system; or
2) If you do want to keep multiple versions of that package, lookup RPM::Allow-Duplicated in the documentation.

E: Error occured while processing dict-eng-deu (UsePackage2)
E: Problem with MergeList /var/lib/rpm/Packages
E: The package lists or status file could not be parsed or opened.
# rpm -e dict-eng-deu-0.2-alt2 dict-eng-deu-0.2-alt1
Usage: dictd {start|stop|status|restart|reload|condstart|condstop|condrestart}
error: execution of %postun scriptlet from dict-eng-deu-0.2-alt2 failed, exit status 1
#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7950</commentid>
    <comment_count>4</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2003-02-12 23:22:47 +0300</bug_when>
    <thetext>For smoother update, we need to require that the version of dictd with condreload support is installed when %post and %postun are executed. Thus:

PreReq: dictd &amp;gt;= 1.9.1-alt1 (according to #0001704)

or:

Requires(post,postun): dictd &amp;gt;= 1.9.1-alt1

(the last variant is not tested to work well for APT).

This applies to dict-eng-deu-0.2-alt2, 
dict-deu-eng-0.2-alt2, dict-jargon-4.3.1-alt2, dict-engcom-0.4-alt3, dict-web1913-1.4_0.47pd-ipl5, dict-mueller7-utf8-1.2-alt3.

Here is an example of a broken update because of the wrong order:

# rpm -qa \&apos;dict*\&apos;
dict-tools-1.8.0-alt1
dict-jargon-4.3.1-alt1
dictd-1.8.0-alt1
dict-engcom-0.4-alt2
dict-deu-eng-0.2-alt1
dict-1.8.0-alt1
dict-eng-deu-0.2-alt1
dict-web1913-1.4_0.47pd-ipl4
dict-mueller7-utf8-1.2-alt2
# apt-get install dict-eng-deu
Reading Package Lists... Done
Building Dependency Tree... Done
Starting
Starting 2
Done
The following packages will be upgraded
  dict-eng-deu 
1 packages upgraded, 0 newly installed, 0 removed and 323 not upgraded.
Need to get 0B/2198kB of archives.
After unpacking 0B of additional disk space will be used.
Executing RPM (/bin/rpm -Uvh --fancypercent --oldpackage)...
Preparing...                 ########################################### [100%]
1: dict-eng-deu              ########################################### [100%]
Usage: dictd {start|stop|status|restart|reload|condstart|condstop|condrestart}
error: execution of %post scriptlet from dict-eng-deu-0.2-alt2 failed, exit status 1
E: Sub-process /bin/rpm returned an error code (1)
# apt-get install dictd       
Reading Package Lists... Error!
E: There are two or more versions of the package \&apos;dict-eng-deu\&apos; installed in your system, which is a situation APT can\&apos;t handle cleanly at the moment.
Please do one of the following:
1) Keep at most one version of the package in the system; or
2) If you do want to keep multiple versions of that package, lookup RPM::Allow-Duplicated in the documentation.

E: Error occured while processing dict-eng-deu (UsePackage2)
E: Problem with MergeList /var/lib/rpm/Packages
E: The package lists or status file could not be parsed or opened.
# rpm -e dict-eng-deu-0.2-alt2 dict-eng-deu-0.2-alt1
Usage: dictd {start|stop|status|restart|reload|condstart|condstop|condrestart}
error: execution of %postun scriptlet from dict-eng-deu-0.2-alt2 failed, exit status 1
#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40590</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2006-09-27 16:42:45 +0400</bug_when>
    <thetext>I think it&apos;s de facto fixed: ALM2.2 already had dictd-1.9.1-alt2, and rebuild
was required anyways (initscript migration).  If someone is pedantic enough,
feel free to actlayy fix this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>