<div class="gmail_quote">On Mon, Mar 21, 2011 at 8:45 PM, Ian Lake <span dir="ltr"><<a href="mailto:ian.lake@rocketmail.com">ian.lake@rocketmail.com</a>></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 <<a href="mailto:pmatilai@redhat.com" target="_blank">pmatilai@redhat.com</a>><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>> So if I want to address the underlying problem as you all suggested, I need some<br>> help.<br>><br>> I am not in control of the system I am building on. I have been told everything<br>
> on it was installed via RPMs.<br>><br>> I'm guessing the dependencies I see, are caused by executable files with a #!<br>> /usr/local/bin/mypython but I don't know how to fix it....here is some of my<br>
> reasoning<br>><br>> /usr/local/bin/mypython is a soft link to the executable /usr/bin/python2.6<br>><br>> when I build an RPM, I see these dependencies get generated.<br>> Requires(pre): /bin/sh<br>> Requires(post): /bin/sh<br>
> Requires: /bin/bash /usr/bin/env /usr/local/bin/mypython <a href="http://libc.so" target="_blank">libc.so</a>.6<br>> 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>
> libdl. so.2(GLIBC_2.0) <a href="http://libm.so" target="_blank">libm.so</a>.6 libm.so.6(GLIBC_2.0)<br>><br>> My guess is the dependencies come from python because of the results of the ldd<br>> command<br>> [x@x]$ ldd /usr/local/bin/mypython<br>
> <a href="http://linux-vdso.so" target="_blank">linux-vdso.so</a>.1 => (0x00007fff84181000)<br>> <a href="http://libpython2.6.so" target="_blank">libpython2.6.so</a>.1.0 => /usr/lib64/libpython2.6.so.1.0<br>
> (0x0000003340000000)<br>> <a href="http://libpthread.so" target="_blank">libpthread.so</a>.0 => /lib64/libpthread.so.0 (0x0000003d0ca00000)<br>> libdl.so.2 => /lib64/libdl.so.2 (0x0000003d0c200000)<br>
> <a href="http://libutil.so" target="_blank">libutil.so</a>.1 => /lib64/libutil.so.1 (0x0000003d17e00000)<br>> libm.so.6 => /lib64/libm.so.6 (0x0000003d0d200000)<br>> libc.so.6 => /lib64/libc.so.6 (0x0000003d0c600000)<br>
> /lib64/ld-linux-x86-64.so.2 (0x0000003d0be00000)<br>><br>><br>> The files do exist on the system:<br>> [x@x]$ locate libm.so.6<br>> /lib64/libm.so.6<br>> [x@x]$ locate libc.so.6<br>> /lib64/libc.so.6<br>
> [x@x]$ locate libdl.so.2<br>> /lib64/libdl.so.2<br>><br>> They must have been installed via an RPM, because I can do a --whatprovides<br>> command on them. Any significance that I have to call out the exact path?<br>
><br>> [x@x]$ rpm -q --whatprovides libdl.so.2<br>> no package provides libdl.so.2<br>> [x@x$ rpm -q --whatprovides /lib64/libdl.so.2<br>>
glibc-2.12-1.7.el6_0.3.x86_64<br>><br>> 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'll want to rebuild it separately for x86_64. If you'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 ("yum install <br><yourpackage.rpm>" would'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>