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

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

    <bug>
          <bug_id>18401</bug_id>
          
          <creation_ts>2008-12-30 03:42:21 +0300</creation_ts>
          <short_desc>should require the new chrooted</short_desc>
          <delta_ts>2009-10-15 17:37:28 +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>libnss-mdns</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>
          
          <blocked>18407</blocked>
    
    <blocked>21949</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Fr. Br. George">george</assigned_to>
          <cc>george</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83647</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-12-30 03:42:21 +0300</bug_when>
    <thetext>libnss-mdns-0.10-alt2

libnss-mdns makes use of update_chrooted in install-time scripts:

$ rpm -q libnss-mdns --scripts 
postinstall scriptlet (through /bin/sh):
grep -q &apos;^hosts:[[:blank:]].\+mdns&apos; /etc/nsswitch.conf || \
sed -i.rpmorig &apos;s/^\(hosts:[[:blank:]].\+\)\(dns\)$/\1mdns4_minimal [NOTFOUND=return] \2 mdns4/&apos; /etc/nsswitch.conf
update_chrooted all
postuninstall scriptlet (through /bin/sh):
sed -i -e &apos;s/ mdns4_minimal \[NOTFOUND=return\]//&apos; -e &apos;s/ mdns4//&apos; /etc/nsswitch.conf
update_chrooted all
$ 

but will not be effective:

[ivan@dell ~]$ resolve dell.local 
IP address of dell.local: 169.254.178.30
[ivan@dell ~]$ ping dell.local 
ping: unknown host dell.local
[ivan@dell ~]$ rpm -qf /sbin/update_chrooted 
chrooted-0.3.4-alt1
[ivan@dell ~]$ 

unless a new version of chrooted is there:

* Fri Aug 24 2007 Sergey Bolshakov &lt;sbolshakov@altlinux.ru&gt; 0.3.5-alt1
- updated to play well with nss_mdns

This is not reflected in the formal deps of the package:

$ rpm -q libnss-mdns --requires 
avahi-daemon  
/bin/sh  
/bin/sh  
rpmlib(PayloadFilesHavePrefix) &lt;= 4.0-1
rpmlib(CompressedFileNames) &lt;= 3.0.4-1
libc.so.6(GLIBC_2.0)  
libc.so.6(GLIBC_2.1)  
libc.so.6(GLIBC_2.1.3)  
libc.so.6(GLIBC_2.3.4)  
libc.so.6(GLIBC_2.4)  
rtld(GNU_HASH)  
grep  
sed  
chrooted  
sed  
chrooted  
rpmlib(PayloadIsLzma) &lt;= 4.4.2-1
$ 

Please &gt;= 0.3.5-alt1 dependency to allow smooth apt-get-install&apos;s.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83656</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2008-12-30 13:29:11 +0300</bug_when>
    <thetext>well, libnss-mdns contains Requires(pre): chrooted &gt;= 0.3.5-alt1,
same for (postun). Should be enough, isn&apos;t ?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83669</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-12-30 19:17:31 +0300</bug_when>
    <thetext>(In reply to comment #1)
&gt; well, libnss-mdns contains Requires(pre): chrooted &gt;= 0.3.5-alt1,
&gt; same for (postun). Should be enough, isn&apos;t ?

Yes, I would also think so! It&apos;s strange that &quot;rpm -q&quot; (and &quot;rpm -i&quot; obviously) don&apos;t see/understand this: I installed it on a system with an old chrooted without any warnings. 

I&apos;ll invistigate it more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83672</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-12-30 19:41:29 +0300</bug_when>
    <thetext>(In reply to comment #1)
&gt; well, libnss-mdns contains Requires(pre): chrooted &gt;= 0.3.5-alt1,
&gt; same for (postun). Should be enough, isn&apos;t ?
 
The mistake is that these Requires are not in the subsection for the lib* subpackage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83674</commentid>
    <comment_count>4</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2008-12-30 20:07:33 +0300</bug_when>
    <thetext>OH SHI~
indeed
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83681</commentid>
    <comment_count>5</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2008-12-30 22:43:13 +0300</bug_when>
    <thetext>fixed in libnss-mdns-0.10-alt3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>