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

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

    <bug>
          <bug_id>18408</bug_id>
          
          <creation_ts>2008-12-30 19:37:31 +0300</creation_ts>
          <short_desc>doesn&apos;t understand the versioned Requires(pre,post)</short_desc>
          <delta_ts>2008-12-30 19:42:23 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch 4.1</product>
          <component>apt</component>
          <version>unspecified</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>18407</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          
          
          <qa_contact name="qa-4.1@altlinux.org">qa-4.1</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83671</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-12-30 19:37:31 +0300</bug_when>
    <thetext>As described in https://bugzilla.altlinux.org/show_bug.cgi?id=18407 and https://bugzilla.altlinux.org/show_bug.cgi?id=18401#c1 , the specfile of libnss-mdns contains the correct dependencies of the install-time scripts of the package (see http://sisyphus.ru/srpm/Branch41/nss-mdns/spec :

Requires(pre): chrooted &gt;= 0.3.5-alt1 chrooted-resolv sed
Requires(postun): chrooted &gt;= 0.3.5-alt1 sed

)

but this is not understood by apt-get install: chrooted update is not forced:

$ rpm -q rpm apt
rpm-4.0.4-alt95.M41.11
apt-0.5.15lorg2-alt20.M41.1
$ 

apt&gt; install libnss-mdns 
Чтобы выполнить эту операцию необходимы изменения, которые не были запрошены.
Следующие НОВЫЕ пакеты будут установлены:
  avahi-daemon libdaemon libnss-mdns
0 будет обновлено, 3 новых установлено, 0 пакетов будет удалено и 0 будет сохранено.
Понадобится получить более 488kB архивов.
После распаковки понадобится более 1433kB дискового пространства.
Продолжить? [Y/n] n
Прервано.
apt&gt; showpkg libnss-mdns
Package: libnss-mdns
Versions: 
0.10-alt1(/var/lib/apt/lists/ftp.altlinux.org_pub_distributions_ALTLinux_4.1_branch_i586_base_pkglist.classic)

Reverse Depends: 
  kdenetwork-kdnssd,libnss-mdns
Dependencies: 
0.10-alt1 - avahi-daemon (0 (null)) /bin/sh (0 (null)) /bin/sh (0 (null)) libc.so.6(GLIBC_2.0) (0 (null)) libc.so.6(GLIBC_2.1) (0 (null)) libc.so.6(GLIBC_2.1.3) (0 (null)) libc.so.6(GLIBC_2.3.4) (0 (null)) libc.so.6(GLIBC_2.4) (0 (null)) rtld(GNU_HASH) (0 (null)) 
Provides: 
0.10-alt1 - libnss-mdns libnss_mdns_minimal.so.2(NSSMDNS_0) libnss_mdns_minimal.so.2 libnss_mdns6_minimal.so.2(NSSMDNS_0) libnss_mdns6_minimal.so.2 libnss_mdns6.so.2(NSSMDNS_0) libnss_mdns6.so.2 libnss_mdns4_minimal.so.2(NSSMDNS_0) libnss_mdns4_minimal.so.2 libnss_mdns4.so.2(NSSMDNS_0) libnss_mdns4.so.2 libnss_mdns.so.2(NSSMDNS_0) libnss_mdns.so.2 
Reverse Provides: 
libnss-mdns 0.10-alt1
apt&gt; 


APT sees no dependencies on chrooted at all!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83673</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-12-30 19:42:23 +0300</bug_when>
    <thetext>The problem is in the specfile:
https://bugzilla.altlinux.org/show_bug.cgi?id=18401#c3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>