From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11810 invoked by alias); 29 Mar 2005 10:49:07 -0000 Mailing-List: contact glibc-bugs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sources.redhat.com Received: (qmail 11080 invoked by uid 48); 29 Mar 2005 10:47:33 -0000 Date: Tue, 29 Mar 2005 10:49:00 -0000 From: "han at mijncomputer dot nl" To: glibc-bugs@sources.redhat.com Message-ID: <20050329104722.807.han@mijncomputer.nl> Reply-To: sourceware-bugzilla@sources.redhat.com Subject: [Bug libc/807] New: /usr/bin/ldd depends on bash. X-Bugzilla-Reason: CC X-SW-Source: 2005-03/txt/msg00139.txt.bz2 List-Id: /usr/bin/ldd contains a bash shebang. Since I don't use bash ldd won't work. Furthermore the shell I do use trips over the set -o pipefail. This is easily fixed with the included patch: --- ldd.orig 2005-03-29 12:35:17.820676992 +0200 +++ ldd 2005-03-29 12:34:36.324985296 +0200 @@ -1,4 +1,4 @@ -#! /bin/bash +#! /bin/sh # Copyright (C) 1996-2001, 2002, 2003, 2004 Free Software Foundation, Inc. # This file is part of the GNU C Library. @@ -116,10 +116,12 @@ fi # The following use of cat is needed to make ldd work in SELinux -# environments where the executed program might not have permissions -# to write to the console/tty. But only bash 3.x supports the pipefail -# option, and we don't bother to handle the case for older bash versions. -if set -o pipefail 2> /dev/null; then +# environments where the executed program might not have +# permissions to write to the console/tty. But only bash 3.x +# supports the pipefail option, and we don't bother to handle the +# case for older bash versions. +if [ "${BASH_VERSION%%.*}" -ge 3 ]; then + set -o pipefail try_trace() { eval $add_env '"$@"' | cat } -- Summary: /usr/bin/ldd depends on bash. Product: glibc Version: 2.3.4 Status: NEW Severity: enhancement Priority: P2 Component: libc AssignedTo: gotom at debian dot or dot jp ReportedBy: han at mijncomputer dot nl CC: glibc-bugs at sources dot redhat dot com http://sources.redhat.com/bugzilla/show_bug.cgi?id=807 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.