<div class="gmail_quote">On Mon, Mar 21, 2011 at 8:45 PM, Ian Lake <span dir="ltr">&lt;<a href="mailto:ian.lake@rocketmail.com">ian.lake@rocketmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Is there a way to tell what files in my packages are requiring the 32bit glibc?<br><br></div></div></div></blockquote><div>Perhaps this this toy script  on the rpm buildroot directory can help : <a href="https://github.com/yersinia/junkcode/raw/master/rpm/rpm-find-deps/rpm-find-deps.sh">https://github.com/yersinia/junkcode/raw/master/rpm/rpm-find-deps/rpm-find-deps.sh</a>. <br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div>What exactly does it mean to rebuild it separately for x86_64?<br></div></div></div></blockquote><div>IMHO already answered. BTW,<div id="gt-res-content" class="almost_half_cell" style=""><div dir="ltr" style=""><span id="result_box" class="" lang="en"><span title="Fai clic per visualizzare le traduzioni alternative" class="hps">it</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps"></span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">means</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">to remake a rpmrebuild for that</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">architecture</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps"></span><span title="Fai clic per visualizzare le traduzioni alternative" class="hps"></span><span title="Fai clic per visualizzare le traduzioni alternative" class="hps"></span><span title="Fai clic per visualizzare le traduzioni alternative" class="hps"></span><span title="Fai clic per visualizzare le traduzioni alternative" class="hps">directly (on a x86_64 machine) or</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">in</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">a</span> <span title="Fai clic per visualizzare le traduzioni alternative" class="hps">chroot environment</span><span class="" title="Fai clic per visualizzare le traduzioni alternative">, using, for example, some build environment for this : </span><span class="" title="Fai clic per visualizzare le traduzioni alternative"><a href="http://ldn.linuxfoundation.org/article/opensuse-build-system-building-binary-packages-many-linux-distributions-once">http://ldn.linuxfoundation.org/article/opensuse-build-system-building-binary-packages-many-linux-distributions-once</a>, just for an example.<br>
hth<br></span></span></div></div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Panu Matilainen &lt;<a href="mailto:pmatilai@redhat.com" target="_blank">pmatilai@redhat.com</a>&gt;<div class="im">
<br><b><span style="font-weight: bold;">To:</span></b> <a href="mailto:rpm-list@lists.rpm.org" target="_blank">rpm-list@lists.rpm.org</a><br></div><b><span style="font-weight: bold;">Sent:</span></b> Mon, March 21, 2011 10:12:12 AM<div class="im">
<br><b><span style="font-weight: bold;">Subject:</span></b> Re: Ignore RPM Dependencies<br></div></font><div><div></div><div class="h5"><br>
On 03/21/2011 04:52 PM, Ian Lake wrote:<br>&gt; So if I want to address the underlying problem as you all suggested, I need some<br>&gt; help.<br>&gt;<br>&gt; I am not in control of the system I am building on.  I have been told everything<br>
&gt; on it was installed via RPMs.<br>&gt;<br>&gt; I&#39;m guessing the dependencies I see, are caused by executable files with a #!<br>&gt; /usr/local/bin/mypython but I don&#39;t know how to fix it....here is some of my<br>
&gt; reasoning<br>&gt;<br>&gt; /usr/local/bin/mypython is a soft link to the executable /usr/bin/python2.6<br>&gt;<br>&gt; when I build an RPM, I see these dependencies get generated.<br>&gt; Requires(pre): /bin/sh<br>&gt; Requires(post): /bin/sh<br>
&gt; Requires: /bin/bash /usr/bin/env /usr/local/bin/mypython <a href="http://libc.so" target="_blank">libc.so</a>.6<br>&gt; libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.1.3) <a href="http://libdl.so" target="_blank">libdl.so</a>.2<br>
&gt; libdl. so.2(GLIBC_2.0) <a href="http://libm.so" target="_blank">libm.so</a>.6 libm.so.6(GLIBC_2.0)<br>&gt;<br>&gt; My guess is the dependencies come from python because of the results of the ldd<br>&gt; command<br>&gt; [x@x]$ ldd /usr/local/bin/mypython<br>
&gt;          <a href="http://linux-vdso.so" target="_blank">linux-vdso.so</a>.1 =&gt;   (0x00007fff84181000)<br>&gt;          <a href="http://libpython2.6.so" target="_blank">libpython2.6.so</a>.1.0 =&gt;  /usr/lib64/libpython2.6.so.1.0<br>
&gt; (0x0000003340000000)<br>&gt;          <a href="http://libpthread.so" target="_blank">libpthread.so</a>.0 =&gt;  /lib64/libpthread.so.0 (0x0000003d0ca00000)<br>&gt;          libdl.so.2 =&gt;  /lib64/libdl.so.2 (0x0000003d0c200000)<br>
&gt;          <a href="http://libutil.so" target="_blank">libutil.so</a>.1 =&gt;  /lib64/libutil.so.1 (0x0000003d17e00000)<br>&gt;          libm.so.6 =&gt;  /lib64/libm.so.6 (0x0000003d0d200000)<br>&gt;          libc.so.6 =&gt;  /lib64/libc.so.6 (0x0000003d0c600000)<br>
&gt;          /lib64/ld-linux-x86-64.so.2 (0x0000003d0be00000)<br>&gt;<br>&gt;<br>&gt; The files do exist on the system:<br>&gt; [x@x]$ locate libm.so.6<br>&gt; /lib64/libm.so.6<br>&gt; [x@x]$ locate libc.so.6<br>&gt; /lib64/libc.so.6<br>
&gt; [x@x]$ locate libdl.so.2<br>&gt; /lib64/libdl.so.2<br>&gt;<br>&gt; They must have been installed via an RPM, because I can do a --whatprovides<br>&gt; command on them.  Any significance that I have to call out the exact path?<br>
&gt;<br>&gt; [x@x]$ rpm -q --whatprovides libdl.so.2<br>&gt; no package provides libdl.so.2<br>&gt; [x@x$ rpm -q --whatprovides /lib64/libdl.so.2<br>&gt;
 glibc-2.12-1.7.el6_0.3.x86_64<br>&gt;<br>&gt; Any thoughts on where to go from here?<br><br>Rpm is correct here - the dependencies /are/ really missing. You have a <br>64bit glibc but your package depends on 32bit glibc. Note the difference <br>
in provides:<br><br>[pmatilai@localhost]$ rpm -q --provides glibc.i686|grep libdl|head -1<br>libdl.so.2<br>[pmatilai@localhost]$ rpm -q --provides glibc.x86_64|grep libdl|head -1<br>libdl.so.2()(64bit)<br><br>Where to go from here depends on your package: if you have a source for <br>
it, you&#39;ll want to rebuild it separately for x86_64. If you&#39;re <br>(re)packaging some 3rd party binary so recompiling is not an option, <br>then you need to install a 32bit glibc for it (&quot;yum install <br>&lt;yourpackage.rpm&gt;&quot; would&#39;ve figured this out for you automatically)<br>
<br>    - Panu -<br>_______________________________________________<br>Rpm-list mailing list<br><a href="mailto:Rpm-list@lists.rpm.org" target="_blank">Rpm-list@lists.rpm.org</a><br><span><a href="http://lists.rpm.org/mailman/listinfo/rpm-list" target="_blank">http://lists.rpm.org/mailman/listinfo/rpm-list</a></span><br>
</div></div></div></div>
</div><br>

      </div><br>_______________________________________________<br>
Rpm-list mailing list<br>
<a href="mailto:Rpm-list@lists.rpm.org">Rpm-list@lists.rpm.org</a><br>
<a href="http://lists.rpm.org/mailman/listinfo/rpm-list" target="_blank">http://lists.rpm.org/mailman/listinfo/rpm-list</a><br>
<br></blockquote></div><br>