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

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

    <bug>
          <bug_id>2603</bug_id>
          
          <creation_ts>2003-05-21 20:54:39 +0400</creation_ts>
          <short_desc>should detect dependency on new install_info</short_desc>
          <delta_ts>2008-05-18 19:45:51 +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>rpm-build</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>P5</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>7409</dependson>
    
    <dependson>7410</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="imz">vanyaz</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>arseny</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2376</commentid>
    <comment_count>0</comment_count>
    <who name="imz">vanyaz</who>
    <bug_when>2003-05-21 20:54:39 +0400</bug_when>
    <thetext>Packages built with new rpm use a new command; install_info. But they do not declare a dependency on a corresponding version, so the installation of packages built this way may fail.

---
# rpm -q rpm
rpm-4.0.4-alt16
# apt-get install emacs-tramp
Reading Package Lists... Done
Building Dependency Tree... Done
Starting
Starting 2
Done
The following packages will be upgraded
  emacs-tramp
1 packages upgraded, 0 newly installed, 0 removed and 242 not upgraded.
Need to get 0B/136kB of archives.
After unpacking 97.0kB of additional disk space will be used.
Executing RPM (/bin/rpm -Uvh --fancypercent --oldpackage)...
Preparing...                 ########################################### [100%]
1: emacs-tramp               ########################################### [100%]
/root/tmp/rpm-tmp.29189: line 1: /usr/sbin/install_info: No such file or directo                                                                                                 
ry
error: execution of %post scriptlet from emacs-tramp-2.0.33-alt1 failed, exit st                                                                                                 
atus 127
E: Sub-process /bin/rpm returned an error code (1)
# rpm -q emacs-tramp
emacs-tramp-2.0.22-alt5
emacs-tramp-2.0.33-alt1
# rpm -q emacs-tramp --scripts
postinstall scriptlet (through /bin/sh):

if [ $1 = 0 ]; then     
        for f in  tramp.info; do        
                if [ \&amp;quot;$f\&amp;quot; = \&amp;quot;${f##*/}\&amp;quot; ]; then  
                        f=\&amp;quot;/usr/share/info/$f\&amp;quot;  
                fi      
                /sbin/install-info --delete --dir-file=\&amp;quot;${f%/*}/dir\&amp;quot; --info-file                                                                                                 
=\&amp;quot;$f\&amp;quot;   
        done    
fi
preuninstall scriptlet (through /bin/sh):

if [ $1 = 0 ]; then     
        for f in  tramp.info; do        
                if [ \&amp;quot;$f\&amp;quot; = \&amp;quot;${f##*/}\&amp;quot; ]; then  
                        f=\&amp;quot;/usr/share/info/$f\&amp;quot;  
                fi      
                /sbin/install-info --delete --dir-file=\&amp;quot;${f%/*}/dir\&amp;quot; --info-file                                                                                                 
=\&amp;quot;$f\&amp;quot;   
        done    
fi
postinstall scriptlet (through /bin/sh):
/usr/sbin/install_info tramp.info
preuninstall scriptlet (through /bin/sh):
/usr/sbin/uninstall_info tramp.info
# rpm -q emacs-tramp --qf=\&apos;%{BUILDHOST}\\n\&apos;
mash.office.altlinux.ru
mash.office.altlinux.ru
# 

---

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64610</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-02-26 00:20:18 +0300</bug_when>
    <thetext>Fixed in rpm-build-4.0.4-alt87.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70187</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-05-18 19:45:50 +0400</bug_when>
    <thetext>Thanks! Have tested rpm-build-4.0.4-alt92 -- it would detect that dependency (on
rsync://rsync.altlinux.org::archive/Sisyphus/2006/01/15/files/SRPMS/emacs-tramp\*).
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>