Your message dated Fri, 13 May 2011 12:32:35 +0000
with message-id <e1qkrxn-0000uk...@franck.debian.org>
and subject line Bug#619670: fixed in initramfs-tools 0.99
has caused the Debian Bug report #619670,
regarding initramfs-tools: make robust against libraries only runtime-linkable 
due to /etc/ld.so.conf*
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
619670: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619670
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: initramfs-tools
Version: 0.98.8
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch natty

We had a rather obscure Ubuntu bug
(https://bugs.launchpad.net/bugs/728611) which presented as Plymouth not
being able to display text at boot time, which of course is nasty in
cases where the user needs to answer a prompt in order for boot to
complete.  This turned out to be restricted to configurations where
Plymouth is built into the initramfs, so I chased this down.

The problem is that /lib/plymouth/label.so now transitively links to
libGL, which (on Ubuntu, at least) lives in /usr/lib/mesa/libGL.so.1 or
some other subdirectory of /usr/lib depending on the GL implementation
in use (fglrx, nvidia, etc.).  This directory isn't on the linker's
default search path; instead, it relies on /etc/ld.so.cache having been
built appropriately from a configuration including
/etc/ld.so.conf.d/GL.conf, which is managed by update-alternatives.  The
thing that's going wrong here is that /usr/lib/mesa/libGL.so.1 is copied
into the initramfs, but it isn't on the linker's search path so
/lib/plymouth/label.so fails to load.

I looked at fixing this by copying in /etc/ld.so.conf* and running
ldconfig, but this turned out to be very difficult due to the way
mkinitramfs symlinks libraries during initramfs creation, and I ended up
giving this up as infeasible for the time being.  I think it's better to
have copy_exec check whether the target directory name is only on the
linker search path by virtue of /etc/ld.so.conf*, and if so, install to
/lib or /usr/lib as appropriate instead.

I don't know whether you'll want to take this patch exactly, or refine
it, or do something else entirely; but I've tried to make it relatively
safe and it may be worth it for robustness even if you aren't running
into this problem in Debian right now.

  * If copy_exec finds libraries to copy which are only accessible to the
    runtime linker by virtue of being listed in /etc/ld.so.conf*, then
    install those libraries to /lib or /usr/lib as appropriate instead
    (LP: #728611).

=== modified file 'hook-functions'
--- hook-functions      2011-02-09 18:05:28 +0000
+++ hook-functions      2011-03-26 00:44:38 +0000
@@ -151,6 +151,21 @@ copy_exec() {
                libname=$(basename "${x}")
                dirname=$(dirname "${x}")
 
+               # Avoid installing to directories which require ld.so.conf
+               # in order to work.  (Running ldconfig over the initramfs
+               # would be better, but the way we symlink libraries during
+               # creation stymies that.)
+               if grep -qsx "${dirname}" /etc/ld.so.conf /etc/ld.so.conf.d/*; 
then
+                       case ${dirname} in
+                       /usr/lib/*)
+                               dirname=/usr/lib
+                       ;;
+                       /lib/*)
+                               dirname=/lib
+                       ;;
+                       esac
+               fi
+
                # FIXME inst_lib
                mkdir -p "${DESTDIR}/${dirname}"
                if [ ! -e "${DESTDIR}/${dirname}/${libname}" ]; then

Thanks,

-- 
Colin Watson                                       [cjwat...@ubuntu.com]



--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.99

We believe that the bug you reported is fixed in the latest version of
initramfs-tools, which is due to be installed in the Debian FTP archive:

initramfs-tools_0.99.dsc
  to main/i/initramfs-tools/initramfs-tools_0.99.dsc
initramfs-tools_0.99.tar.gz
  to main/i/initramfs-tools/initramfs-tools_0.99.tar.gz
initramfs-tools_0.99_all.deb
  to main/i/initramfs-tools/initramfs-tools_0.99_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 619...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
maximilian attems <m...@debian.org> (supplier of updated initramfs-tools 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 11 May 2011 23:38:18 +0200
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.99
Distribution: unstable
Urgency: low
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <m...@debian.org>
Description: 
 initramfs-tools - tools for generating an initramfs
Closes: 338405 454934 501969 502792 506540 594189 596742 603858 603903 606806 
609964 611046 612633 619670 620924 621803 625224 626446
Changes: 
 initramfs-tools (0.99) unstable; urgency=low
 .
   Release "scarpe rotte e pur bisogna andar"
 .
   [ maximilian attems ]
   * [ce45cd0] update-initramfs: Show the mkinitramfs on error message.
   * [5b84e5b] maintainer-notes.html: Fix email to send patches to.
   * [ec6a77f] doc: s/ressources/resources/
   * [3c717fa] initramfs-tools: preinst use blkid for uuid generation if around.
     (Closes: #609964)
   * [8e2ffcd] postinst cleanup very old dpkg trigger comparison.
   * [78cdb26] mkinitramfs: Add support for xz compression. (closes: #626446)
   * [f5b8347] hook-functions: Cleanup ref to ide-disk.
   * [6cab0ec] initramfs-tools: cleanup any usplash traces. (closes: #620924)
   * [08d4895] initramfs-tools: Remove mkinitramfs-kpkg.
     (Closes: #454934, #502792)
   * [0ed6376] initramfs-tools: add hid_sunplus to listed keyboard drivers.
   * [5f53d3b] init: load netconsole after loading network drivers.
     Thanks Ferenc Wagner <wf...@niif.hu> (Closes: #596742)
   * [7ff2998] debian/copyright: Update authorlist and year attribution.
   * [e789cdd] maintainer-notes: Use git dch --multimaint-merge on examples.
   * [17296ff] dep_add_modules: Use hidden_dep_add_modules for ubifs.
   * [3d44bfb] hidden_dep_add: Use mika's variadic function from $2 on.
   * [8f8299d] mkinitramfs: copy over on build instead of using symlink tree.
     (Closes: #338405, #506540)
   * [f5afa6a] mkinitramfs: Add lib search path + run full ldconfig in
     initramfs. (Closes: #612633, #619670)
   * [259ad09] mkinitramfs: creat /run initramfs directory.
   * [5add333] initramfs-tools: init mount /run tmpfs.
   * [74109b9] init: No need to touch /dev/.initramfs.
   * [8e7620a] hook-functions: xhci-hcd got renamed. (Closes: #625224)
     Thanks to Matthew Wilcox <wi...@linux.intel.com>
 .
   [ Tim Small ]
   * [1fe9f78] Add Documentation for modules=list in initramfs.conf(5).
     (Closes: #603903)
 .
   [ Ben Hutchings ]
   * [c018886] kernel hooks: Treat missing version argument as an error.
   * [58ee42c] kernel hooks: Enable error-exit (sh -e).
   * [7866542] update-initramfs: Depend on kernel hook scripts rather than
     $ramdisk invocation.
   * [43fe8e6] update-initramfs: Remove support for 'do_bootloader' and
     specific boot loaders. (closes: #594189)
 .
   [ Gianluigi Tiesi ]
   * [9c25269] mkinitramfs: misleading message in verbose mode.
     (Closes: #611046)
 .
   [ Timo Juhani Lindfors ]
   * [871ffe7] initramfs-tools: Make panic message visible even if panic=
     is used.
   * [2525b00] initramfs-tools: Inform the user about reboot on panic=.
 .
   [ Michael Prokop ]
   * [465a5f1] hidden_dep_add_modules(): make it dynamically to support more
     than 3 arguments as well.
   * [3323930] Use --check=crc32 option for xz compression.
     Thanks to Ulrich Dangel <m...@grml.org>
   * [bedf1e3] Use -8 for compression with xz.
   * [adce374] docs: fix wording ("allows *one* to") to make lintian happy.
   * [ecbc54a] Bump Standards-Version to 3.9.2.
 .
   [ Evan Broder ]
   * [ad1a594] initramfs-tools: Fix handling of numeric root= arguments to be
      udev-friendly. (Closes: #501969, #606806)
 .
   [ Christian Hofstaedtler ]
   * [e34eca4] init: move /proc after moving other filesystems.
 .
   [ Roger Leigh ]
   * [10990ab] init: Preserve state on old boxes without /run on rootfs.
   * [4d08c2e] init: sync mount options with the defaults in initscripts.
     (Closes: #621803)
   * [20c43ce] init: Don't use "none" as a mount fsname (Closes: #603858)
 .
   [ Michael Tokarev ]
   * [ec83abd] mkinitramfs: No need to warn about md-root busybox dep.
Checksums-Sha1: 
 bfe072cb51cc028aba1e7fefbd067690dba4ce22 965 initramfs-tools_0.99.dsc
 3efd8d3f5ddeed373af53f029a60e5a169cf7fe8 83627 initramfs-tools_0.99.tar.gz
 c18db8de2b3413bf49fc42dc0c05188f4c7e45b6 89558 initramfs-tools_0.99_all.deb
Checksums-Sha256: 
 e86ca92ea5febebc0eae4d2ced831c3bca787de30e01614973f0d81d4112d659 965 
initramfs-tools_0.99.dsc
 8db379fcbbc4dd81c2f22c955b1c1ff4883a9f7b9187d037f7b19752b0c56226 83627 
initramfs-tools_0.99.tar.gz
 83e6ebc00d318f5d2a1c7da01b70d3196c0067dc9aa74142bfddd7959931871e 89558 
initramfs-tools_0.99_all.deb
Files: 
 524ea435f52c3ed4d5769e6a567983bb 965 utils optional initramfs-tools_0.99.dsc
 d8b2711f25f287724d954f8c495de5f2 83627 utils optional 
initramfs-tools_0.99.tar.gz
 06201e844ab0d57325274df01c306b62 89558 utils optional 
initramfs-tools_0.99_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk3NIWUACgkQeW7Lc5tEHqj8+gCfcJQgxk9b6fK5aPfqfA4t7Ws1
zzYAn08PN8VceR+cAalWwL50zvuqQER3
=z9JG
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to