mkinitrd unification across distributions
 help / color / mirror / Atom feed
* Debian multiarch support
@ 2012-04-06 10:45 Jon Ander Hernandez
       [not found] ` <CAGEveXprJz33cnna8PDQE7eyNUw1S-RDYtyZY405STOH7FfswA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Ander Hernandez @ 2012-04-06 10:45 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Thomas Lange

Hello,

I have discovered that some modules fail on Ubunty Natty+ and Debian
Wheezy+ because of their new new multiarch capability. Now they are
migrating libraries to subdirectories that include the architecture
triplet as part of the path:
   /lib/i386-linux-gnu
   /lib/x86_64-linux-gnu
   /usr/lib/i386-linux-gnu
   /usr/lib/x86_64-linux-gnu

http://wiki.debian.org/Multiarch

The problem is that actually some modules try to look for some
libraries only at $libdir and $usrlibdir, like the nfs module which
tries to install libnss3* files.

I also have been told that they will allow to mix different binaries
and libraries in the future, for example allowing to install an i386
mount.nfs along with other amd64 binaries.

So I've been trying with something like this:

function multiarchtriplet() {
  ldd $(which $1) | sed -n '/libc/s#.*/lib/\(.*\)/libc.*#\1#p';
}

_libdir=$libdir/$(multiarchtriplet mount.nfs)

for _i in {/usr,}$_libdir/libnss*.so; do
        [[ -e $_i ]] || continue
        [[ "$_i" =~ $_nsslibs ]] || continue
        dracut_install "$_i"
done

Do you like this approach? Or is too Debian specific and should be
fixed at Debian packages?

Regards,

JonAn.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-19 10:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-06 10:45 Debian multiarch support Jon Ander Hernandez
     [not found] ` <CAGEveXprJz33cnna8PDQE7eyNUw1S-RDYtyZY405STOH7FfswA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-10 13:14   ` Jon Ander Hernandez
     [not found]     ` <CAGEveXr7G+5_rcuHUWBrg-rAQ1y6wU2ozVy2yBbQuo3PYdx3Mw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-16  9:34       ` Jon Ander Hernandez
     [not found]         ` <CAGEveXqScm9T-cto8jRYh2_dM6Md+grqppXs0nWTjB_Vo69zMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-04-19 10:15           ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox