This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[wishlist, patch] ldd: let it find files in ordinary shell style


----- Forwarded Debian BTS bug #407880 -----

From: Oleg Verych <olecom@flower.upol.cz>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ldd: let it find files in ordinary shell style
X-Mailer: reportbug 3.30
Date: Mon, 22 Jan 2007 03:15:36 +0000

Package: libc6
Version: 2.3.6.ds1-8
Severity: wishlist
Tags: patch

It seems to be better, than what it is now. Any comments are
appreciated. TIA.

,-*- sh -*-
|olecom@deen:/mnt/work/app-src-build/shell/ldd$ ./ldd.orig as arch /bin/true
|as:
|ldd: ./as: No such file or directory
|arch:
|ldd: ./arch: No such file or directory
|/bin/true:
|        libc.so.6 => /lib/libc.so.6 (0x00002b719248c000)
|        /lib64/ld-linux-x86-64.so.2 (0x00002b7192374000)
|olecom@deen:/mnt/work/app-src-build/shell/ldd$ ./ldd as arch /bin/true
|/usr/bin/as:
|        libbfd-2.17.so => /usr/lib/libbfd-2.17.so (0x00002b1f32513000)
|        libc.so.6 => /lib/libc.so.6 (0x00002b1f326bb000)
|        /lib64/ld-linux-x86-64.so.2 (0x00002b1f323fb000)
|/bin/arch:
|        libc.so.6 => /lib/libc.so.6 (0x00002b9f92a4f000)
|        /lib64/ld-linux-x86-64.so.2 (0x00002b9f92937000)
|/bin/true:
|        libc.so.6 => /lib/libc.so.6 (0x00002ae6fe09a000)
|        /lib64/ld-linux-x86-64.so.2 (0x00002ae6fdf82000)
|olecom@deen:/mnt/work/app-src-build/shell/ldd$
|olecom@deen:/mnt/work/app-src-build/shell/ldd$
`-*-

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libc6 depends on:
ii  tzdata                        2006l-1    Time Zone and Daylight Saving Time

libc6 recommends no packages.

-- no debconf information

Patch: ldd.bash.in-search_files.patch

--- glibc-2.3.6/elf/ldd.bash.in~orig	2007-01-22 02:36:38.329767000 +0100
+++ glibc-2.3.6/elf/ldd.bash.in	2007-01-22 02:38:33.200946000 +0100
@@ -139,10 +139,10 @@
 for file do
-  # We don't list the file name when there is only one.
-  test $single_file = t || echo "${file}:"
   case $file in
   */*) :
-       ;;
-  *) file=./$file
-     ;;
+    ;;
+  *) file=`which $file`
+    ;;
   esac
+  # We don't list the file name when there is only one.
+  test $single_file = t || echo "${file}:"
   if test ! -f "$file"; then

----- End forwarded message -----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]