Summary: | service dictd condreload would be more appropriate than condrestart | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | imz <vanyaz> |
Component: | dict-jargon | Assignee: | Alexey Dyachenko <alexd> |
Status: | CLOSED WORKSFORME | QA Contact: | |
Severity: | enhancement | ||
Priority: | P5 | CC: | mike, viy |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
imz
2002-12-12 15:40:57 MSK
fixed in dict-jargon-4.3.1-alt2 fixed in dict-jargon-4.3.1-alt2 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 >= 1.9.1-alt1 (according to #0001704) or: Requires(post,postun): dictd >= 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 \'dict*\' 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 \'dict-eng-deu\' installed in your system, which is a situation APT can\'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 # 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 >= 1.9.1-alt1 (according to #0001704) or: Requires(post,postun): dictd >= 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 \'dict*\' 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 \'dict-eng-deu\' installed in your system, which is a situation APT can\'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 # I think it'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. |