On Thu, May 16, 2013 at 4:58 AM, Theodore Ts'o <ty...@mit.edu> wrote:

> On Wed, May 15, 2013 at 01:57:25AM +0200, Thibaut VARENE wrote:
> > Package: e2fsprogs
> > Version: 1.42.5-1.1
> > Severity: grave
> > Justification: renders package unusable
>
> #1) This looks to be ia64 specific.  This is the output of ldd
>     /sbin/fsck.ext3 on an x86-64 platform:
>

Indeed. I've also checked PPC and fsck.ext3 is good as well there.
But a little more digging shows something rather frightening: this bug (of
linking from /usr) is quite widespread.
I've run a quick check on some of my machines (they have different sets of
package installed):

$ for b in /bin/* /sbin/* ; do ldd $b | grep -q /usr/ && echo $b ; done

on amd64:
/bin/ping6
/sbin/crda
/sbin/discover
/sbin/nfnl_osf
/sbin/regdbdump
/sbin/umount.udisks
/sbin/wpa_supplicant

on ppc:
/sbin/fsck.cramfs
/sbin/mkfs.cramfs

on ia64:
/bin/ping6
/sbin/dhclient
/sbin/dhclient3
/sbin/e2fsck
/sbin/fsck.ext2
/sbin/fsck.ext3
/sbin/fsck.ext4
/sbin/fsck.ext4dev
/sbin/parted
/sbin/partprobe

on kfreebsd_amd64:
/sbin/camcontrol
/sbin/ccdconfig
/sbin/devd
/sbin/fsck.cramfs
/sbin/fsdb.ufs
/sbin/ifconfig
/sbin/mdconfig
/sbin/mkfs.cramfs
/sbin/mount_cd9660
/sbin/mount_msdosfs
/sbin/mount_ntfs
/sbin/mount_udf

I'm quite surprised, I'd have expected lintian to catch these types of
problems.

#2)  We need to determine whether it's /sbin/fsck.ext3 or one of its
>      shared libraries which is depending upon which is pulling in
>      libunwind.
>
>      Can you run the command "objdump -p /sbin/fsck.ext3 | grep
>      NEEDED"?  On my x86-64 system, this is what I see:
>
>           NEEDED               libext2fs.so.2
>           NEEDED               libcom_err.so.2
>           NEEDED               libblkid.so.1
>           NEEDED               libuuid.so.1
>           NEEDED               libe2p.so.2
>           NEEDED               libc.so.6
>
>      Then do a recursive expansion of each of the libraries which you
>      see, i.e. replace /sbin/fsck.ext3 with /lib/*/libblkid.so.1, etc.
>

Didn't have to recurse very far:

$ objdump -p /sbin/fsck.ext3 | grep NEEDED
  NEEDED               libext2fs.so.2
  NEEDED               libcom_err.so.2
  NEEDED               libblkid.so.1
  NEEDED               libuuid.so.1
  NEEDED               libe2p.so.2
  NEEDED               libunwind.so.7
  NEEDED               libc.so.6.1

none of the other NEEDED libraries pull in libunwind or anything suspicious.

HTH
T-Bone

-- 
Thibaut VARENE
http://hacks.slashdirt.org/

Reply via email to